NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.36k stars 13.59k forks source link

Keyboard works in BIOS but not anywhere else #65630

Open wpcarro opened 5 years ago

wpcarro commented 5 years ago

Describe the bug My keyboard recently stopped working. I tried rolling back to previous versions when my keyboard did work, but it appears the issue persists.

My keyboard fully works in BIOS but nowhere else.

I've tried asking for troubleshooting advice elsewhere, but I'm starting to think that this may be an issue with the Linux kernel. If anyone's interested, here's the thread.

To Reproduce Steps to reproduce the behavior:

  1. Restart the computer. Press F2 to enter BIOS, type there and notice that the keyboard works.
  2. Exit BIOS and continue the boot process.
  3. Move the cursor with the trackpad. Notice that it works.
  4. Try to type something. Notice that nothing happens.
  5. Now try and move the cursor. Notice that now it also doesn't work.
  6. Plug in a USB keyboard. Notice that the USB keyboard works.

Expected behavior I expect to be able to use my laptop keyboard. I believe this is a drivers issues. Unfortunately, I'm unsure how to troubleshoot Linux keyboard drivers in general and on NixOS specifically; otherwise, I'd begin that process. Any pointers much appreciated.

Additional context Tools I've used to attempt to debug:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver Mouse               id=10   [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver Consumer Control    id=11   [slave  pointer  (2)]
⎜   ↳ HID 04d9:a088 Mouse                       id=15   [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=18   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Video Bus                                 id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Logitech USB Receiver                     id=9    [slave  keyboard (3)]
    ↳ Logitech USB Receiver System Control      id=12   [slave  keyboard (3)]
    ↳ HID 04d9:a088                             id=13   [slave  keyboard (3)]
    ↳ HID 04d9:a088 Consumer Control            id=14   [slave  keyboard (3)]
    ↳ HID 04d9:a088 System Control              id=16   [slave  keyboard (3)]
    ↳ VGA WebCam: VGA WebCam                    id=17   [slave  keyboard (3)]
    ↳ Acer WMI hotkeys                          id=19   [slave  keyboard (3)]
    ↳ Logitech USB Receiver Consumer Control    id=20   [slave  keyboard (3)]

Metadata

I'm using an Acer Aspire a315 in case that makes a difference. I've also read non-Linux-related forums about this issue and some Windows10 users recommend upgrading the keyboard drivers. Does anyone know how to do this in NixOS? This is a foreign concept to me.

Again: any pointers are graciously welcome!

wpcarro commented 5 years ago

Update: I'm still having trouble with this. To reiterate my keyboard and trackpad once worked both in the live OS from the USB and after the installation. Something changed after a few nixos-rebuild switch calls, and I haven't been able to revert the changes.

If anyone has any pointers for troubleshooting, I'm eager to hear them.

pacien commented 5 years ago

I'm observing a very similar issue on my Thinkpad s230u. The keyboard, touchpad and trackpoint cease to work after using either the touchpad or the trackpoint. Those devices disappear from the list returned by xinput.

The symptoms only appear roughly 80% of the time. Using an external USB keyboard and mouse works fine.

The same thing happens with a fresh Debian live with kernel 4.20 and NixOS with kernel 4.19. This problem appeared somewhat recently, one or three months ago on NixOS.

stale[bot] commented 4 years ago

Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on irc.freenode.net.
pacien commented 4 years ago

I'm still observing this issue on NixOS 20.03 with kernel 5.4.43. Disconnecting the touchpad and trackpoint on my Thinkpad seems to allow the keyboard to work.

nix-info:

albakham commented 4 years ago

I have a very similar issue on nixpkgs-unstable, it's been a month that all my nixos-rebuild switch gives me a generation on which my laptop keyboard and touchpad are not working, however the touchscreen and any external devices (mouse, keyboard) are working.

I can still boot on the older generations to have a working keyboard though.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

jceb commented 1 year ago

I'm experiencing the same issue on iLo4 on a HP Proliant Microserver Gen8. By setting intremap=nosid and intel_iommu=off I was able to use the keyboard again as outlined here: https://serverfault.com/questions/1077297/ilo4-and-almalinux-centos8-do-not-work-properly