mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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 <luke@ljones.dev> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230630053552.976579-2-luke@ljones.dev Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
committed by
Hans de Goede
parent
9204fc5071
commit
77ee9d299e
@@ -95,6 +95,9 @@
|
||||
/* Keyboard dock */
|
||||
#define ASUS_WMI_DEVID_KBD_DOCK 0x00120063
|
||||
|
||||
/* Charging mode - 1=Barrel, 2=USB */
|
||||
#define ASUS_WMI_DEVID_CHARGE_MODE 0x0012006C
|
||||
|
||||
/* dgpu on/off */
|
||||
#define ASUS_WMI_DEVID_EGPU 0x00090019
|
||||
|
||||
|
||||
Reference in New Issue
Block a user