I recently upgraded to ubuntu 24 LTS latest version and now the keyboard stops working. I have a dual boot desktop, and a Microsoft ergonomic keyboard. The keyboard hardware seems to work well in my other OS (Windows), so I don't think it is a hardware issue. I recently applied all the updates I saw too.
After boot I have about 5 minutes of ability to type, then the keyboard stops. Either it stops taking any input or it acts as if a key is held down. In that case it repeats a key ad infinitum in the active window. My only recourse is then to reboot and so gain another few minutes...
First I followed a post that a module breaks the keyboard here on Ask Ubuntu. sudoedit /etc/modprobe.d/blacklist-intel_vbtn.conf Add a line to the file, optionally with a comment explaining why you are doing this
bug in module breaks keyboard, so don't load it
blacklist intel_vbtn
Save the file, exit and reboot. This did not work for me.
Next I followed a comment below to use dmesg to diagnose.
The OS loaded is [ 0.000000] Linux version 6.8.0-48-generic (buildd@lcy02-amd64-010) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024 (Ubuntu 6.8.0-48.48-generic 6.8.12)
The usb keyboard is recognized [ 1.695639] usb 5-1.3: Product: Microsoft Ergonomic Keyboard [ 1.695643] usb 5-1.3: Manufacturer: Microsoft [ 1.695646] usb 5-1.3: SerialNumber: 601464714021 [ 1.713936] hid: raw HID events driver (C) Jiri Kosina [ 1.750550] usbcore: registered new interface driver usbhid [ 1.750557] usbhid: USB HID core driver
The keyboard works for from 170 to 500 seconds then I get this message
After that point keyboard no longer adds any input.
Now I tried your suggestion. You can see in the picture. The first time I ran the command the keyboard was working and the second time it was not. The output is the same. As you see below, the fault address is changing from run to run, and the reason stays the same. Also now that I look the end by the USB connection looks frayed. I think its a bad connection. It is probably a hardware problem. I am going to get another keyboard and try again and see if that helps.
sudo dmesg -w
in a terminal window which will show kernel messages. Then see if any relevant messages pop up there when the keyboard stops working. Also you could do the same with atail -f /var/log/syslog
for system log messages....device [04:00.0]...
indicates the hardware that is causing the issue so for a bit more information dolspci |grep 04:00.0
to find out. Then I would do alspci -v
to get more verbose output and update your question with the04:00.0
line and all the lines under that. I don't know anything about thePTE Read access is not set
or other messages there but you could do some more web search based on the error if you have not already.