Skip to content

Commit d6de45e

Browse files
BNieuwenhuizenij-intel
authored andcommitted
platform/x86: asus-wmi: Disable OOBE experience on Zenbook S 16
The OOBE experience fades the keyboard backlight in & out continuously, and make the backlight uncontrollable using its device. Workaround taken from https://wiki.archlinux.org/index.php?title=ASUS_Zenbook_UM5606&diff=next&oldid=815547 Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Luke D. Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 33297ce commit d6de45e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

drivers/platform/x86/asus-wmi.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,6 +1793,16 @@ static int asus_wmi_led_init(struct asus_wmi *asus)
17931793
goto error;
17941794
}
17951795

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+
17961806
error:
17971807
if (rv)
17981808
asus_wmi_led_exit(asus);

include/linux/platform_data/x86/asus-wmi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
#define ASUS_WMI_DEVID_KBD_BACKLIGHT 0x00050021
6363
#define ASUS_WMI_DEVID_LIGHT_SENSOR 0x00050022 /* ?? */
6464
#define ASUS_WMI_DEVID_LIGHTBAR 0x00050025
65+
#define ASUS_WMI_DEVID_OOBE 0x0005002F
6566
/* This can only be used to disable the screen, not re-enable */
6667
#define ASUS_WMI_DEVID_SCREENPAD_POWER 0x00050031
6768
/* Writing a brightness re-enables the screen if disabled */

0 commit comments

Comments
 (0)