History

platform/x86: asus-wmi: add support for ASUS screenpad

Add support for the WMI methods used to turn off and adjust the brightness of the secondary "screenpad" device found on some high-end ASUS laptops like the GX650P series and others. There are some small quirks with this device when considering only the raw WMI methods: 1. The Off method can only switch the device off 2. Changing the brightness turns the device back on 3. To turn the device back on the brightness must be > 1 4. When the device is off the brightness can't be changed (so it is stored by the driver if device is off). 5. Booting with a value of 0 brightness (retained by bios) means the bios will set a value of >0 <15 6. When the device is off it is "unplugged" asus_wmi sets the minimum brightness as 20 in general use, and 60 for booting with values <= min. The ACPI methods are used in a new backlight device named asus_screenpad.

Luke D. Jones committed 3 years ago

Commit 2c97d3e1 parent eab541a3 files · +138 −0Browse files

Showing the changes to include/linux/platform_data (1 of 3 files). Show all

Unified · Split

include/linux/platform_data/x86/asus-wmi.h+4−0
@@ -58,6 +58,10 @@ · 57 unmodified lines
5858 #define ASUS_WMI_DEVID_KBD_BACKLIGHT 0x00050021
5959 #define ASUS_WMI_DEVID_LIGHT_SENSOR 0x00050022 /* ?? */
6060 #define ASUS_WMI_DEVID_LIGHTBAR 0x00050025
61+/* This can only be used to disable the screen, not re-enable */
62+#define ASUS_WMI_DEVID_SCREENPAD_POWER 0x00050031
63+/* Writing a brightness re-enables the screen if disabled */
64+#define ASUS_WMI_DEVID_SCREENPAD_LIGHT 0x00050032
6165 #define ASUS_WMI_DEVID_FAN_BOOST_MODE 0x00110018
6266 #define ASUS_WMI_DEVID_THROTTLE_THERMAL_POLICY 0x00120075
6367

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t