Skip to contentSkip to conversation

platform/x86: asus-wmi: Remove extra keys from ignore_key_wlan quirk

PATCH Rahul Chandra 2 participants 15 messages Sep 16, 2025 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

Signature · 1 line
Rahul
Quoted 32 lines · Rahul Chandra
Quoted 18 lines · Ilpo Järvinen
Quoted 9 lines · Antheas Kapenekakis

Currently, the ignore_key_wlan quirk applies to keycodes 0x5D, 0x5E, and 0x5F. However, the relevant code for the Asus Zenbook Duo is only 0x5F. Since this code is emitted by other Asus devices, such as from the Z13 for its ROG button, remove the extra codes before expanding the quirk.

For the Duo devices, which are the only ones that use this quirk, there should be no effect.

[...]

Thank you for your contribution, it has been applied to my local review-ilpo-fixes branch. Note it will show up in the public platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my local branch there, which might take a while.

Quoted 4 lines

The list of commits applied:
[1/2] platform/x86: asus-wmi: Remove extra keys from ignore_key_wlan quirk

      commit: cf3940ac737d05c85395f343fe33a3cfcadb47db

[2/2] platform/x86: asus-wmi: Fix ROG button mapping, tablet mode on ASUS ROG Z13

Hi, with these commits on the branch the "Airplane Mode on detach/attach" bug comes back (The bug the quirk was intended to fix) . I think the Duo emits 0x5D (toggle, because it deactivates and activates on attach/detach) however I have not confirmed this. This is a regression from the previous patch and I propose that we either revert the commit or fix the keycode. I am not submitting a patch because I don't know if 5D is used for a different purpose on the ROG devices, can someone confirm?

Signature · 1 line
Rahul
#2 lore raw
In reply to Antheas Kapenekakis
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

And for which event

Quoted 40 lines

Antheas

Quoted 38 lines

--
Rahul

Quoted 32 lines · Rahul Chandra
Quoted 18 lines · Ilpo Järvinen
Quoted 9 lines · Antheas Kapenekakis

Currently, the ignore_key_wlan quirk applies to keycodes 0x5D, 0x5E, and 0x5F. However, the relevant code for the Asus Zenbook Duo is only 0x5F. Since this code is emitted by other Asus devices, such as from the Z13 for its ROG button, remove the extra codes before expanding the quirk.

For the Duo devices, which are the only ones that use this quirk, there should be no effect.

[...]

Thank you for your contribution, it has been applied to my local review-ilpo-fixes branch. Note it will show up in the public platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my local branch there, which might take a while.

Quoted 4 lines

The list of commits applied:
[1/2] platform/x86: asus-wmi: Remove extra keys from ignore_key_wlan quirk

      commit: cf3940ac737d05c85395f343fe33a3cfcadb47db

[2/2] platform/x86: asus-wmi: Fix ROG button mapping, tablet mode on ASUS ROG Z13

Hi, with these commits on the branch the "Airplane Mode on detach/attach" bug comes back (The bug the quirk was intended to fix) . I think the Duo emits 0x5D (toggle, because it deactivates and activates on attach/detach) however I have not confirmed this. This is a regression from the previous patch and I propose that we either revert the commit or fix the keycode. I am not submitting a patch because I don't know if 5D is used for a different purpose on the ROG devices, can someone confirm?

--
Rahul

#3 lore raw
In reply to Antheas Kapenekakis
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

Signature · 1 line
Rahul
#4 lore raw
Quoted 8 lines · Rahul Chandra
Quoted 6 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

Quoted 7 lines
Quoted 4 lines

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Signature · 1 line
Rahul
#1 lore raw
In reply to Rahul Chandra
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Antheas

Quoted 38 lines

--
Rahul

Quoted 32 lines · Rahul Chandra
Quoted 18 lines · Ilpo Järvinen
Quoted 9 lines · Antheas Kapenekakis

Currently, the ignore_key_wlan quirk applies to keycodes 0x5D, 0x5E, and 0x5F. However, the relevant code for the Asus Zenbook Duo is only 0x5F. Since this code is emitted by other Asus devices, such as from the Z13 for its ROG button, remove the extra codes before expanding the quirk.

For the Duo devices, which are the only ones that use this quirk, there should be no effect.

[...]

Thank you for your contribution, it has been applied to my local review-ilpo-fixes branch. Note it will show up in the public platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my local branch there, which might take a while.

Quoted 4 lines

The list of commits applied:
[1/2] platform/x86: asus-wmi: Remove extra keys from ignore_key_wlan quirk

      commit: cf3940ac737d05c85395f343fe33a3cfcadb47db

[2/2] platform/x86: asus-wmi: Fix ROG button mapping, tablet mode on ASUS ROG Z13

Hi, with these commits on the branch the "Airplane Mode on detach/attach" bug comes back (The bug the quirk was intended to fix) . I think the Duo emits 0x5D (toggle, because it deactivates and activates on attach/detach) however I have not confirmed this. This is a regression from the previous patch and I propose that we either revert the commit or fix the keycode. I am not submitting a patch because I don't know if 5D is used for a different purpose on the ROG devices, can someone confirm?

--
Rahul

#5 lore raw
In reply to Rahul Chandra
Quoted 15 lines · Rahul Chandra
Quoted 12 lines · Rahul Chandra
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Quoted 5 lines
Quoted 3 lines

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Use evtest to find the MSC code that is used.

Antheas

Quoted 5 lines

--
Rahul

#6 lore raw
Quoted 16 lines · Antheas Kapenekakis
Quoted 15 lines · Rahul Chandra
Quoted 12 lines · Rahul Chandra
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Use evtest to find the MSC code that is used.

Hmm it is sending 5E... But it is still activating and deactivating and reactivating airplane mode (WLAN)

Event: time 1758006247.925931, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006247.925931, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006247.925931, -------------- SYN_REPORT ------------
Event: time 1758006247.925937, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0
Event: time 1758006247.925937, -------------- SYN_REPORT ------------
Event: time 1758006255.123129, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006255.123129, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006255.123129, -------------- SYN_REPORT ------------

Signature · 1 line
Rahul
#7 lore raw
Quoted 28 lines · Rahul Chandra
Quoted 16 lines · Antheas Kapenekakis
Quoted 15 lines · Rahul Chandra
Quoted 12 lines · Rahul Chandra
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Use evtest to find the MSC code that is used.

Hmm it is sending 5E... But it is still activating and deactivating and reactivating airplane mode (WLAN)

Quoted 8 lines

Event: time 1758006247.925931, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006247.925931, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006247.925931, -------------- SYN_REPORT ------------
Event: time 1758006247.925937, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0
Event: time 1758006247.925937, -------------- SYN_REPORT ------------
Event: time 1758006255.123129, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006255.123129, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006255.123129, -------------- SYN_REPORT ------------

Sorry I'm dumb yes 5E is a new code forgot we had 5F currently, guess we should add 5E then, can you write up the patch or should I?

Signature · 1 line
Rahul
#8 lore raw
Quoted 41 lines · Rahul Chandra
Quoted 28 lines · Rahul Chandra
Quoted 16 lines · Antheas Kapenekakis
Quoted 15 lines · Rahul Chandra
Quoted 12 lines · Rahul Chandra
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Use evtest to find the MSC code that is used.

Hmm it is sending 5E... But it is still activating and deactivating and reactivating airplane mode (WLAN)

Quoted 8 lines

Event: time 1758006247.925931, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006247.925931, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006247.925931, -------------- SYN_REPORT ------------
Event: time 1758006247.925937, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0
Event: time 1758006247.925937, -------------- SYN_REPORT ------------
Event: time 1758006255.123129, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006255.123129, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006255.123129, -------------- SYN_REPORT ------------

Quoted 1 line

Sorry I'm dumb yes 5E is a new code forgot we had 5F currently, guess we should add 5E then, can you write up the patch or should I?

Cleanest patch is a revert of "Remove extra keys from ignore_key_wlan quirk". Should work for both -next and stable. I can write a patch and add a ReportedBy for you. I will make sure to list 0x5E as the keycode used on the Duo. It is not ideal those three keycodes are grouped together, but it should be fine for now.

Antheas

Quoted 6 lines

--
Rahul

#9 lore raw
Quoted 42 lines · Antheas Kapenekakis
Quoted 41 lines · Rahul Chandra
Quoted 36 lines · Rahul Chandra
Quoted 16 lines · Antheas Kapenekakis
Quoted 15 lines · Rahul Chandra
Quoted 12 lines · Rahul Chandra
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Use evtest to find the MSC code that is used.

Hmm it is sending 5E... But it is still activating and deactivating and reactivating airplane mode (WLAN)

Event: time 1758006247.925931, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006247.925931, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006247.925931, -------------- SYN_REPORT ------------
Event: time 1758006247.925937, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0
Event: time 1758006247.925937, -------------- SYN_REPORT ------------
Event: time 1758006255.123129, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006255.123129, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006255.123129, -------------- SYN_REPORT ------------

Quoted 7 lines
Quoted 1 line

Sorry I'm dumb yes 5E is a new code forgot we had 5F currently, guess we should add 5E then, can you write up the patch or should I?

Cleanest patch is a revert of "Remove extra keys from ignore_key_wlan quirk". Should work for both -next and stable. I can write a patch and add a ReportedBy for you. I will make sure to list 0x5E as the keycode used on the Duo. It is not ideal those three keycodes are grouped together, but it should be fine for now.

Great sounds good thanks! What should we do about 5D? Just keep it in? I don't know what key on the board emits 5D (if any) since it doesn't have an airplane mode key.

Signature · 1 line
Rahul
#11 lore raw
In reply to Antheas Kapenekakis
Quoted 55 lines · Antheas Kapenekakis
Quoted 54 lines · Rahul Chandra
Quoted 49 lines · Antheas Kapenekakis
Quoted 41 lines · Rahul Chandra
Quoted 28 lines · Rahul Chandra
Quoted 16 lines · Antheas Kapenekakis
Quoted 15 lines · Rahul Chandra
Quoted 12 lines · Rahul Chandra
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Use evtest to find the MSC code that is used.

Hmm it is sending 5E... But it is still activating and deactivating and reactivating airplane mode (WLAN)

Quoted 8 lines

Event: time 1758006247.925931, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006247.925931, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006247.925931, -------------- SYN_REPORT ------------
Event: time 1758006247.925937, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0
Event: time 1758006247.925937, -------------- SYN_REPORT ------------
Event: time 1758006255.123129, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006255.123129, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006255.123129, -------------- SYN_REPORT ------------

Quoted 1 line

Sorry I'm dumb yes 5E is a new code forgot we had 5F currently, guess we should add 5E then, can you write up the patch or should I?

Cleanest patch is a revert of "Remove extra keys from ignore_key_wlan quirk". Should work for both -next and stable. I can write a patch and add a ReportedBy for you. I will make sure to list 0x5E as the keycode used on the Duo. It is not ideal those three keycodes are grouped together, but it should be fine for now.

Quoted 4 lines
Quoted 1 line

Great sounds good thanks! What should we do about 5D? Just keep it in? I don't know what key on the board emits 5D (if any) since it doesn't have an airplane mode key.

If you can compile your own kernel, can you check 0x5F is not used in your device? Yeah, let's keep 0x5D for now.

Yeah give it like 15 minutes to finish, just to be clear I am compiling a kernel with 0x5E & 0x5D ignored but with 0x5F allowed and running evtest?

Signature · 1 line
Rahul
#12 lore raw
Quoted 58 lines · Rahul Chandra
Quoted 55 lines · Antheas Kapenekakis
Quoted 54 lines · Rahul Chandra
Quoted 49 lines · Antheas Kapenekakis
Quoted 41 lines · Rahul Chandra
Quoted 28 lines · Rahul Chandra
Quoted 16 lines · Antheas Kapenekakis
Quoted 15 lines · Rahul Chandra
Quoted 12 lines · Rahul Chandra
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Use evtest to find the MSC code that is used.

Hmm it is sending 5E... But it is still activating and deactivating and reactivating airplane mode (WLAN)

Quoted 8 lines

Event: time 1758006247.925931, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006247.925931, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006247.925931, -------------- SYN_REPORT ------------
Event: time 1758006247.925937, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0
Event: time 1758006247.925937, -------------- SYN_REPORT ------------
Event: time 1758006255.123129, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006255.123129, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006255.123129, -------------- SYN_REPORT ------------

Quoted 1 line

Sorry I'm dumb yes 5E is a new code forgot we had 5F currently, guess we should add 5E then, can you write up the patch or should I?

Cleanest patch is a revert of "Remove extra keys from ignore_key_wlan quirk". Should work for both -next and stable. I can write a patch and add a ReportedBy for you. I will make sure to list 0x5E as the keycode used on the Duo. It is not ideal those three keycodes are grouped together, but it should be fine for now.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Great sounds good thanks! What should we do about 5D? Just keep it in? I don't know what key on the board emits 5D (if any) since it doesn't have an airplane mode key.

If you can compile your own kernel, can you check 0x5F is not used in your device? Yeah, let's keep 0x5D for now.

Yeah give it like 15 minutes to finish, just to be clear I am compiling a kernel with 0x5E & 0x5D ignored but with 0x5F allowed and running evtest?

Allow all three, see which does what. I am finishing the patch.

Antheas

Quoted 6 lines

--
Rahul

#10 lore raw
In reply to Rahul Chandra
Quoted 47 lines · Rahul Chandra
Quoted 44 lines · Antheas Kapenekakis
Quoted 42 lines · Rahul Chandra
Quoted 28 lines · Rahul Chandra
Quoted 16 lines · Antheas Kapenekakis
Quoted 15 lines · Rahul Chandra
Quoted 12 lines · Rahul Chandra
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Use evtest to find the MSC code that is used.

Hmm it is sending 5E... But it is still activating and deactivating and reactivating airplane mode (WLAN)

Quoted 8 lines

Event: time 1758006247.925931, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006247.925931, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006247.925931, -------------- SYN_REPORT ------------
Event: time 1758006247.925937, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0
Event: time 1758006247.925937, -------------- SYN_REPORT ------------
Event: time 1758006255.123129, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006255.123129, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006255.123129, -------------- SYN_REPORT ------------

Sorry I'm dumb yes 5E is a new code forgot we had 5F currently, guess we should add 5E then, can you write up the patch or should I?

Quoted 8 lines
Quoted 5 lines

Cleanest patch is a revert of "Remove extra keys from ignore_key_wlan quirk". Should work for both -next and stable. I can write a patch and add a ReportedBy for you. I will make sure to list 0x5E as the keycode used on the Duo. It is not ideal those three keycodes are grouped together, but it should be fine for now.

Great sounds good thanks! What should we do about 5D? Just keep it in? I don't know what key on the board emits 5D (if any) since it doesn't have an airplane mode key.

If you can compile your own kernel, can you check 0x5F is not used in your device? Yeah, let's keep 0x5D for now.

Quoted 6 lines

--
Rahul

#13 lore raw
In reply to Antheas Kapenekakis
Quoted 61 lines · Antheas Kapenekakis
Quoted 60 lines · Rahul Chandra
Quoted 57 lines · Antheas Kapenekakis
Quoted 55 lines · Rahul Chandra
Quoted 42 lines · Antheas Kapenekakis
Quoted 41 lines · Rahul Chandra
Quoted 36 lines · Rahul Chandra
Quoted 16 lines · Antheas Kapenekakis
Quoted 15 lines · Rahul Chandra
Quoted 12 lines · Rahul Chandra
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Use evtest to find the MSC code that is used.

Hmm it is sending 5E... But it is still activating and deactivating and reactivating airplane mode (WLAN)

Event: time 1758006247.925931, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006247.925931, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006247.925931, -------------- SYN_REPORT ------------
Event: time 1758006247.925937, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0
Event: time 1758006247.925937, -------------- SYN_REPORT ------------
Event: time 1758006255.123129, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006255.123129, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006255.123129, -------------- SYN_REPORT ------------

Quoted 7 lines
Quoted 1 line

Sorry I'm dumb yes 5E is a new code forgot we had 5F currently, guess we should add 5E then, can you write up the patch or should I?

Cleanest patch is a revert of "Remove extra keys from ignore_key_wlan quirk". Should work for both -next and stable. I can write a patch and add a ReportedBy for you. I will make sure to list 0x5E as the keycode used on the Duo. It is not ideal those three keycodes are grouped together, but it should be fine for now.

Great sounds good thanks! What should we do about 5D? Just keep it in? I don't know what key on the board emits 5D (if any) since it doesn't have an airplane mode key.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

If you can compile your own kernel, can you check 0x5F is not used in your device? Yeah, let's keep 0x5D for now.

Yeah give it like 15 minutes to finish, just to be clear I am compiling a kernel with 0x5E & 0x5D ignored but with 0x5F allowed and running evtest?

Allow all three, see which does what. I am finishing the patch.

Just tried it, still just 5E can't get 5F or 5D to show up.

Signature · 1 line
Rahul
#14 lore raw
Quoted 68 lines · Rahul Chandra
Quoted 65 lines · Antheas Kapenekakis
Quoted 64 lines · Rahul Chandra
Quoted 59 lines · Antheas Kapenekakis
Quoted 47 lines · Rahul Chandra
Quoted 44 lines · Antheas Kapenekakis
Quoted 42 lines · Rahul Chandra
Quoted 28 lines · Rahul Chandra
Quoted 16 lines · Antheas Kapenekakis
Quoted 15 lines · Rahul Chandra
Quoted 12 lines · Rahul Chandra
Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Rahul Chandra

Added some cc's

*Note I have a UX8406CA (the 2025 Arrowlake model, I assume it is the same on the MA)

I must have mistakenly thought that the important code on both devices is 0x5F. Perhaps on the duo is 0x5D instead or it emits events on both. Can you verify which codes are used on the Duo?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

weird,
scankey -s reports
0xe0 0x73 0xe0 0xf3, the 0xe0 is for the extended scancode set but I'm confused on the other 2 codes. the WLAN quirk definitely worked before (I submitted the patch for it for the CA)

It's for keyboard detach/retach, both attaching and re-attaching report the same code.

Use evtest to find the MSC code that is used.

Hmm it is sending 5E... But it is still activating and deactivating and reactivating airplane mode (WLAN)

Quoted 8 lines

Event: time 1758006247.925931, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006247.925931, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006247.925931, -------------- SYN_REPORT ------------
Event: time 1758006247.925937, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0
Event: time 1758006247.925937, -------------- SYN_REPORT ------------
Event: time 1758006255.123129, type 4 (EV_MSC), code 4 (MSC_SCAN), value 5e
Event: time 1758006255.123129, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1
Event: time 1758006255.123129, -------------- SYN_REPORT ------------

Sorry I'm dumb yes 5E is a new code forgot we had 5F currently, guess we should add 5E then, can you write up the patch or should I?

Quoted 8 lines
Quoted 5 lines

Cleanest patch is a revert of "Remove extra keys from ignore_key_wlan quirk". Should work for both -next and stable. I can write a patch and add a ReportedBy for you. I will make sure to list 0x5E as the keycode used on the Duo. It is not ideal those three keycodes are grouped together, but it should be fine for now.

Great sounds good thanks! What should we do about 5D? Just keep it in? I don't know what key on the board emits 5D (if any) since it doesn't have an airplane mode key.

If you can compile your own kernel, can you check 0x5F is not used in your device? Yeah, let's keep 0x5D for now.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Yeah give it like 15 minutes to finish, just to be clear I am compiling a kernel with 0x5E & 0x5D ignored but with 0x5F allowed and running evtest?

Allow all three, see which does what. I am finishing the patch.

Just tried it, still just 5E can't get 5F or 5D to show up.

Great. Patch is sent. Thanks for the report.

By the way, I am getting mail errors from an icloud account, so one of you is not receiving the whole chain.

Antheas

Quoted 5 lines

--
Rahul