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.
platform/x86: asus-wmi: add support for showing charger mode
Expose a WMI method in sysfs platform for showing which connected charger the laptop is currently using. Signed-off-by: Luke D. Jones <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
- Loading branch information
1 parent
9204fc5
commit 77ee9d2
Showing
3 changed files
with
34 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 |
---|---|---|
|
@@ -98,3 +98,13 @@ Description: | |
Enable an LCD response-time boost to reduce or remove ghosting: | ||
* 0 - Disable, | ||
* 1 - Enable | ||
|
||
What: /sys/devices/platform/<platform>/charge_mode | ||
Date: Jun 2023 | ||
KernelVersion: 6.5 | ||
Contact: "Luke Jones" <[email protected]> | ||
Description: | ||
Get the current charging mode being used: | ||
* 1 - Barrel connected charger, | ||
* 2 - USB-C charging | ||
* 3 - Both connected, barrel used for charging |
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
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