File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
include/linux/platform_data/x86 Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1793,6 +1793,16 @@ static int asus_wmi_led_init(struct asus_wmi *asus)
1793
1793
goto error ;
1794
1794
}
1795
1795
1796
+ if (asus_wmi_dev_is_present (asus , ASUS_WMI_DEVID_OOBE )) {
1797
+ /*
1798
+ * Disable OOBE state, so that e.g. the keyboard backlight
1799
+ * works.
1800
+ */
1801
+ rv = asus_wmi_set_devstate (ASUS_WMI_DEVID_OOBE , 1 , NULL );
1802
+ if (rv )
1803
+ goto error ;
1804
+ }
1805
+
1796
1806
error :
1797
1807
if (rv )
1798
1808
asus_wmi_led_exit (asus );
Original file line number Diff line number Diff line change 62
62
#define ASUS_WMI_DEVID_KBD_BACKLIGHT 0x00050021
63
63
#define ASUS_WMI_DEVID_LIGHT_SENSOR 0x00050022 /* ?? */
64
64
#define ASUS_WMI_DEVID_LIGHTBAR 0x00050025
65
+ #define ASUS_WMI_DEVID_OOBE 0x0005002F
65
66
/* This can only be used to disable the screen, not re-enable */
66
67
#define ASUS_WMI_DEVID_SCREENPAD_POWER 0x00050031
67
68
/* Writing a brightness re-enables the screen if disabled */
You can’t perform that action at this time.
0 commit comments