You are not logged in.

#1 2015-10-12 17:26:12

zamzing
Member
From: Washington, DC
Registered: 2015-10-08
Posts: 24

[SOLVED] Restart keyboard driver/subsystem without rebooting?

My HP laptop keyboard randomly gets stuck repeating a key when I type too fast.  I then plug in and use a USB keyboard (which stops the key repeating), but the laptop's keyboard stays dead. Everything else works as usual, even the softkeys.  Is there a kernel, X, or KDE way to restart the keyboard without rebooting?

The machine is in such a situation now. Here some output that may help:

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ PS/2 Generic Mouse                        id=12   [slave  pointer  (2)]
⎜   ↳ Mad Catz Mad Catz R.A.T.7 Mouse           id=9    [slave  pointer  (2)]
⎜   ↳ USB USB Keykoard                          id=15   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]
    ↳ HP WMI hotkeys                            id=13   [slave  keyboard (3)]
    ↳ USB USB Keykoard                          id=14   [slave  keyboard (3)]
$ ls -l /dev/input/*
....
/dev/input/by-id:
total 0
lrwxrwxrwx 1 root root  9 12.10.2015 01:41 usb-Mad_Catz_Mad_Catz_R.A.T.7_Mouse-event-mouse -> ../event1
lrwxrwxrwx 1 root root  9 12.10.2015 01:41 usb-Mad_Catz_Mad_Catz_R.A.T.7_Mouse-mouse -> ../mouse0
lrwxrwxrwx 1 root root 10 12.10.2015 09:16 usb-USB_USB_Keykoard-event-if01 -> ../event17
lrwxrwxrwx 1 root root 10 12.10.2015 09:16 usb-USB_USB_Keykoard-event-kbd -> ../event16

/dev/input/by-path:
total 0
lrwxrwxrwx 1 root root 10 12.10.2015 09:16 pci-0000:00:1d.1-usb-0:2:1.0-event-kbd -> ../event16
lrwxrwxrwx 1 root root 10 12.10.2015 09:16 pci-0000:00:1d.1-usb-0:2:1.1-event -> ../event17
lrwxrwxrwx 1 root root  9 12.10.2015 01:41 pci-0000:00:1d.2-usb-0:2:1.0-event-mouse -> ../event1
lrwxrwxrwx 1 root root  9 12.10.2015 01:41 pci-0000:00:1d.2-usb-0:2:1.0-mouse -> ../mouse0
lrwxrwxrwx 1 root root  9 10.10.2015 13:26 platform-i8042-serio-0-event-kbd -> ../event0
lrwxrwxrwx 1 root root 10 10.10.2015 13:26 platform-i8042-serio-4-event-mouse -> ../event13
lrwxrwxrwx 1 root root  9 10.10.2015 13:26 platform-i8042-serio-4-mouse -> ../mouse1
lrwxrwxrwx 1 root root 10 10.10.2015 13:26 platform-i8042-serio-5-event-mouse -> ../event15
lrwxrwxrwx 1 root root  9 10.10.2015 13:26 platform-i8042-serio-5-mouse -> ../mouse2
lrwxrwxrwx 1 root root  9 10.10.2015 13:26 platform-lis3lv02d-event -> ../event6
lrwxrwxrwx 1 root root  9 10.10.2015 13:26 platform-pcspkr-event-spkr -> ../event7
$ dmesg|grep keyboard
[    1.965670] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
$ uname -a
Linux zamzing 4.2.2-1-ARCH #1 SMP PREEMPT Tue Sep 29 22:21:33 CEST 2015 x86_64 GNU/Linux

Last edited by zamzing (2015-10-13 03:14:57)

Offline

#2 2015-10-12 18:21:55

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: [SOLVED] Restart keyboard driver/subsystem without rebooting?

That's weird. I'd say it's a hardware issue, but I can't explain how plugging new keyboard stops repetition.

Does anything appear in dmesg when this happens?

Anyway, try

rmmod atkbd ; modprobe atkbd reset=1

Offline

#3 2015-10-12 18:53:02

zamzing
Member
From: Washington, DC
Registered: 2015-10-08
Posts: 24

Re: [SOLVED] Restart keyboard driver/subsystem without rebooting?

Thank you, mich41!  That worked and I am thrilled! Rebooting was a major productivity killer.

mich41 wrote:

That's weird. I'd say it's a hardware issue, but I can't explain how plugging new keyboard stops repetition.

Does anything appear in dmesg when this happens?

It is weird indeed.  And very random.  I can go weeks without an issue and then have several in one day.
I suppose when a key is pressed after the USB keyboard is plugged in causes the other to stop. Both keyboards can be active at the same time normally.
Nothing appears in dmesg.

Thanks again.

Offline

Board footer

Powered by FluxBB