forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
power: supply: add charge_behaviour attributes
This a revised version of "[RFC] add standardized attributes for force_discharge and inhibit_charge" [0], incorporating discussion results. The biggest change is the switch from two boolean attributes to a single enum attribute. [0] https://lore.kernel.org/platform-driver-x86/[email protected]/ Signed-off-by: Thomas Weißschuh <[email protected]> Acked-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
- Loading branch information
1 parent
ee0d44f
commit 1b0b6cc
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -455,6 +455,20 @@ Description: | |
"Unknown", "Charging", "Discharging", | ||
"Not charging", "Full" | ||
|
||
What: /sys/class/power_supply/<supply_name>/charge_behaviour | ||
Date: November 2021 | ||
Contact: [email protected] | ||
Description: | ||
Represents the charging behaviour. | ||
|
||
Access: Read, Write | ||
|
||
Valid values: | ||
================ ==================================== | ||
auto: Charge normally, respect thresholds | ||
inhibit-charge: Do not charge while AC is attached | ||
force-discharge: Force discharge while AC is attached | ||
|
||
What: /sys/class/power_supply/<supply_name>/technology | ||
Date: May 2007 | ||
Contact: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters