Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: thinkpad_acpi: add documentation for battery charge control

Add a section to the Thinkpad ACPI extras driver documentation detailing
the provided features that may be used to modify battery charge related state.
As of yet, only charge_control_{start,end}_threshold attributes are supported
and documented.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

authored by

Barnabás Pőcze and committed by
Andy Shevchenko
61781298 e3392953

+17
+17
Documentation/admin-guide/laptops/thinkpad-acpi.rst
··· 1485 1485 review the laptop's user guide: 1486 1486 http://www.lenovo.com/shop/americas/content/user_guides/x1carbon_2_ug_en.pdf 1487 1487 1488 + Battery charge control 1489 + ---------------------- 1490 + 1491 + sysfs attributes: 1492 + /sys/class/power_supply/BAT*/charge_control_{start,end}_threshold 1493 + 1494 + These two attributes are created for those batteries that are supported by the 1495 + driver. They enable the user to control the battery charge thresholds of the 1496 + given battery. Both values may be read and set. `charge_control_start_threshold` 1497 + accepts an integer between 0 and 99 (inclusive); this value represents a battery 1498 + percentage level, below which charging will begin. `charge_control_end_threshold` 1499 + accepts an integer between 1 and 100 (inclusive); this value represents a battery 1500 + percentage level, above which charging will stop. 1501 + 1502 + The exact semantics of the attributes may be found in 1503 + Documentation/ABI/testing/sysfs-class-power. 1504 + 1488 1505 Multiple Commands, Module Parameters 1489 1506 ------------------------------------ 1490 1507