Skip to contentSkip to conversation

platform/x86: asus-wmi: Disable fn-lock mode by default

PATCH Superseded Luca Stefani 2 participants 2 messages Mar 16, 2021 – Mar 23, 2021

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: asus-wmi: Disable fn-lock mode by default

* On recent ZenBooks the fn-lock is disabled
by default on boot while running Windows.

* Follow the same paradigm also here.

---
 drivers/platform/x86/asus-wmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/asus-wmi.c +1 -1
index 9ca15f724343..32319f7d6e17 100644
@@ -2673,7 +2673,7 @@ static int asus_wmi_add(struct platform_device *pdev)
 		err = asus_wmi_set_devstate(ASUS_WMI_DEVID_BACKLIGHT, 2, NULL);
 
 	if (asus_wmi_has_fnlock_key(asus)) {
-		asus->fnlock_locked = true;
+		asus->fnlock_locked = false;
 		asus_wmi_fnlock_update(asus);
 	}
 
Signature · 1 line
2.31.0
#1 lore raw

Hi,

Quoted 6 lines · Luca Stefani

* On recent ZenBooks the fn-lock is disabled
by default on boot while running Windows.

* Follow the same paradigm also here.

This will be a behavioral change for many users where their F-keys will now all of a sudden work different after boot under Linux then they did before.

As such this seems like a bad idea, so I'm not going to merge this patch.

What might be an option is adding a module-option which allows users to configure the default setting at boot that way, while keeping the current default.

Regards,

Hans

Quoted 18 lines
---
 drivers/platform/x86/asus-wmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/asus-wmi.c +1 -1
index 9ca15f724343..32319f7d6e17 100644
@@ -2673,7 +2673,7 @@ static int asus_wmi_add(struct platform_device *pdev)
 		err = asus_wmi_set_devstate(ASUS_WMI_DEVID_BACKLIGHT, 2, NULL);
 
 	if (asus_wmi_has_fnlock_key(asus)) {
-		asus->fnlock_locked = true;
+		asus->fnlock_locked = false;
 		asus_wmi_fnlock_update(asus);
 	}