platform/x86: ideapad-laptop: add "always on USB charging" control support
PATCH v3 27/29 platform/x86: ideapad-laptop: add "always on USB charging" control support
Certain models have a so-called "always on USB charging" feature, which enables USB charging even when the computer is turned off or suspended, and which may be controlled/queried using the SALS/HALS ACPI methods. Expose this functionality via a new device attribute (usb_charging). Tested on: Lenovo YOGA 520-14IKB 80X8
Signed-off-by Barnabás Pőcze <[email protected]>
Documentation/ABI/testing/sysfs-platform-ideapad-laptop +9 -0
@@ -41,3 +41,12 @@ Description: # echo "0" > \ /sys/bus/pci/devices/0000:00:1f.0/PNP0C09:00/VPC2004:00/fn_lock + +What: /sys/bus/platform/devices/VPC2004:*/usb_charging +Date: Feb 2021 +KernelVersion: 5.12 +Contact: [email protected] +Description: + Controls whether the "always on USB charging" feature is + enabled or not. This feature enables charging USB devices + even if the computer is not turned on.
drivers/platform/x86/ideapad-laptop.c +56 -9
104 lines not on this page · raw message
Signature · 1 line
2.30.0