Skip to content

Commit 6178129

Browse files
pobrnandy-shev
authored andcommitted
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 <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent e339295 commit 6178129

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Documentation/admin-guide/laptops/thinkpad-acpi.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,23 @@ For more details about which buttons will appear depending on the mode, please
14851485
review the laptop's user guide:
14861486
http://www.lenovo.com/shop/americas/content/user_guides/x1carbon_2_ug_en.pdf
14871487

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+
14881505
Multiple Commands, Module Parameters
14891506
------------------------------------
14901507

0 commit comments

Comments
 (0)