Bug 218929

Summary: ASUS Vivobook Pro 15 N6506MJ_Q533MJ keyboard does not work on the latest Linux kernel on any distro
Product: Drivers Reporter: mariofanlivee
Component: Input DevicesAssignee: drivers_input-devices
Status: NEW ---    
Severity: normal CC: amb3r.dev, tamim
Priority: P3    
Hardware: Intel   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: Keyboard not working
Output from the requested commands
IRQ override patch for Asus Vivobook Pro N6506MJ

Description mariofanlivee 2024-06-01 22:12:24 UTC
The keyboard for the ASUS Vivobook 15 Pro N6506MJ_Q533MJ works in the bios, grub, and rEFInd, but not in any Linux distro. The caps lock light stays on (even if it was off before booting) and most keys are unresponsive and the keys that do respond are the function keys that control brightness, keyboard brightness, and opens settings. That's it and they don't work when using fn. I've searched up as many solutions I could find all of them coming up with no difference. I did edit /etc/default/grub and added to GRUB\_CMDLINE\_LINUX\_DEFAULT= 'i8042.default i8042.dumbkbd' then running sudo update-grub, but all that did was make the caps lock key only sometimes stay on instead of always.

I assume this is just a driver issue so if it would be possible to add this keyboard's driver to the next Linux kernel version that would be great. It's the one thing keeping me from switching to Linux.
Comment 1 mariofanlivee 2024-06-01 22:17:31 UTC
Created attachment 306400 [details]
Keyboard not working
Comment 2 Amber Connelly 2024-06-08 20:05:18 UTC
One of my customers brought in a Q543M, keyboard also doesn't work on Ubuntu or Fedora (up to rawhide).

Here's an older bug with a lot of ASUS Vivobooks having the same problem:
https://bugzilla.kernel.org/show_bug.cgi?id=216158

It looks like some have patched their kernels to work with these, but the patch in question requires each laptop model to be added manually.
It's all so tiring...
Comment 3 Tamim Khan 2024-06-30 17:35:20 UTC
mariofanlivee@gmail.com or @Amber Connelly: Would either of you be able to run the following commands to verify the issue is the same one seen with all the Asus laptops?

dmidecode
grep -A 40 PS2K dsdt.dsl | grep IRQ -A 1

I can create a patch and get it submitted to the kernel to at least get this one fixed. 

Also definitely agree that its unfortunate that we have to add each one manually but an automated fix was tried in the past and it caused some regressions. You can read more about it here: https://bugzilla.kernel.org/show_bug.cgi?id=216158#c74.

Thanks,
Tamim
Comment 4 Amber Connelly 2024-06-30 18:43:52 UTC
(In reply to Tamim Khan from comment #3)
> mariofanlivee@gmail.com or @Amber Connelly: Would either of you be able to
> run the following commands to verify the issue is the same one seen with all
> the Asus laptops?

Unfortunately, that customer computer is long gone. I posted the link to the old bug because the same customer has a slightly different vivobook which apparently had the same problem at one point before it was fixed. I didn't save the model number of the other one though, sorry.
Comment 5 Amber Connelly 2024-07-05 20:59:08 UTC
The customer in question brought her machine back, and I can now confirm that it's an ASUS Vivobook Pro 15 OLED (Q543M).

The keyboard is still NOT WORKING on 6.9.7 (from Fedora Rawhide)
Comment 6 Tamim Khan 2024-07-05 21:13:30 UTC
@Amber Connely: Could you install dmidecode and iasl and run the following to confirm the machine ID and that it is having the same problem?

dmidecode
cat /sys/firmware/acpi/tables/DSDT > dsdt.dat
iasl -d dsdt.dat
grep -A 30 PS2K dsdt.dsl | grep IRQ -A 1

Thanks,
Tamim
Comment 7 Amber Connelly 2024-07-06 18:30:51 UTC
Created attachment 306540 [details]
Output from the requested commands

Let me know if I did something incorrectly.
Comment 8 Tamim Khan 2024-07-06 19:01:55 UTC
Created attachment 306541 [details]
IRQ override patch for Asus Vivobook Pro N6506MJ

Thanks for running that. That output pretty much confirms this laptop has the same issue. 

I have attached a patch that should fix the issue. @Amber Connelly would you mind custom compiling a 6.8+ kernel and applying the patch to see if fixes the keyboard? 

If that looks good I can get this submitted and have it hopefully be merged into 6.11+ kernels

Tamim
Comment 9 Amber Connelly 2024-07-06 22:23:15 UTC
(In reply to Tamim Khan from comment #8)
> I have attached a patch that should fix the issue. @Amber Connelly would you
> mind custom compiling a 6.8+ kernel and applying the patch to see if fixes
> the keyboard? 

It works! I built kernel 6.8.0 with that patch on Ubuntu 24.04 LTS and the keyboard now works as expected. I would have tried it on Fedora's 6.9 kernel too, but my customer wants the machine back soon.
Comment 10 Tamim Khan 2024-07-09 19:47:06 UTC
Looks like this should be merged into the 6.11 kernel: https://lore.kernel.org/linux-acpi/CAJZ5v0hEjH8Etuzk0X_QRQMW=irfvVVf3XtbRiap_GyFYZyWfw@mail.gmail.com/T/#t
Comment 11 mariofanlivee 2024-08-04 20:34:56 UTC
(In reply to Tamim Khan from comment #10)
> Looks like this should be merged into the 6.11 kernel:
> https://lore.kernel.org/linux-acpi/
> CAJZ5v0hEjH8Etuzk0X_QRQMW=irfvVVf3XtbRiap_GyFYZyWfw@mail.gmail.com/T/#t

Just checked back on this bug report. Glad to know this issue has been fixed in 6.11!