mohamed-badaoui / asus-touchpad-numpad-driver

Activate Numpad inside the touchpad with top right corner switch
299 stars 70 forks source link

Failing to load numpad driver blocks keyboard from working #75

Open inhaledesign opened 2 years ago

inhaledesign commented 2 years ago

Expected behavior: If the numpad driver fails to load, laptop's keyboard should still work. Actual: When I receive an error loading the numpad driver, keyboard does not response to key presses.

Hardware: Asus Zenbook UM425QA OS: Ubuntu 21.10 w/Wayland

Steps to replicate:

  1. Cold boot to Ubuntu login screen.
  2. Receive error: "[FAILED] Failed to start Asus Touchpad to Numpad Handler."
  3. Try to use keyboard to login, find keyboard to be unresponsive.
  4. Restart computer using mouse and GUI power menu in login screen
  5. Touchpad to numberpad works fine, keyboard works fine.
mohamed-badaoui commented 2 years ago

Sorry but i do not have neither this model neither this OS linux to reproduce your issue.

hakovala commented 2 years ago

Same thing happened to me. Might be something related to UM425QA as I also have that.

First boot after installing this package the keyboard stopped working on login screen. Booting to recovery mode gave ERROR:pad:cant't find keyboard (code: 0). Following @inhaledesign steps 4. and 5. made it work again.

Hardware: Asus ZenBook UM425QA OS: Ubuntu 21.04 w/Wayland

inhaledesign commented 2 years ago

Sorry but i do not have neither this model neither this OS linux to reproduce your issue.

If you can leave instructions I'd be happy to gather any information that might be helpful. I just don't know enough about drivers to troubleshoot it myself.

hakovala commented 2 years ago

I have done some investigation regarding this issue, and this might not be because of this project but an issue with UM425QA and current linux kernels.

Searching around internet I found related bug reports with Asus laptops and this article that suggested a workaround to the bug. https://danaukes.com/notebook/asus-issues/

I managed to compile Kernel 5.15.6 for Ubuntu 21.10 with the changes mentioned in the article. With that kernel the keyboard works again after cold boot.

857b commented 2 years ago

Hardware: Asus Zenbook UM425QA OS: Archlinux

It indeed seems to be a kernel related issue, for me the keyboard stopped working from linux-5.15.13. Disabling asus_touchpad_numpad.service does not change anything.

Edit: for these recent versions there is a workaround that can be enabled using the i8042.probe_defer kernel parameter