Skip to content

Commit 919a471

Browse files
dilingersre
authored andcommitted
ABI: testing: sysfs-class-power: clarify charge_type documentation
The existing docs here are a bit vague. This reformats and rewords it, and is based upon the wording originally used by the dell-laptop driver battery documentation and also sysfs-class-power-wilco. The wording for "Long Life" and "Bypass" remain the same, because I'm unfamiliar with hardware that use them. Signed-off-by: Andres Salomon <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/20240820041942.30ed42f3@5400 Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 8400291 commit 919a471

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

Documentation/ABI/testing/sysfs-class-power

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -377,17 +377,33 @@ What: /sys/class/power_supply/<supply_name>/charge_type
377377
Date: July 2009
378378
379379
Description:
380-
Represents the type of charging currently being applied to the
381-
battery. "Trickle", "Fast", and "Standard" all mean different
382-
charging speeds. "Adaptive" means that the charger uses some
383-
algorithm to adjust the charge rate dynamically, without
384-
any user configuration required. "Custom" means that the charger
385-
uses the charge_control_* properties as configuration for some
386-
different algorithm. "Long Life" means the charger reduces its
387-
charging rate in order to prolong the battery health. "Bypass"
388-
means the charger bypasses the charging path around the
389-
integrated converter allowing for a "smart" wall adaptor to
390-
perform the power conversion externally.
380+
Select the charging algorithm to use for a battery.
381+
382+
Standard:
383+
Fully charge the battery at a moderate rate.
384+
Fast:
385+
Quickly charge the battery using fast-charge
386+
technology. This is typically harder on the battery
387+
than standard charging and may lower its lifespan.
388+
Trickle:
389+
Users who primarily operate the system while
390+
plugged into an external power source can extend
391+
battery life with this mode. Vendor tooling may
392+
call this "Primarily AC Use".
393+
Adaptive:
394+
Automatically optimize battery charge rate based
395+
on typical usage pattern.
396+
Custom:
397+
Use the charge_control_* properties to determine
398+
when to start and stop charging. Advanced users
399+
can use this to drastically extend battery life.
400+
Long Life:
401+
The charger reduces its charging rate in order to
402+
prolong the battery health.
403+
Bypass:
404+
The charger bypasses the charging path around the
405+
integrated converter allowing for a "smart" wall
406+
adaptor to perform the power conversion externally.
391407

392408
Access: Read, Write
393409

0 commit comments

Comments
 (0)