• Random keypresses coming from keyboard

    I’ve been having a problem related to keypresses coming from my computer, the keys sending signals are ctrl and alt. After doing many tests I saw that the key press is coming from the laptop’s keyboard, which lead me into thinking that it could be the i8042 driver, due to the fact that the computer has a trackpack connected to it.

    Anyway, I’ve been trying to solve the problem for quite a while, but haven’t been able to fix it, and because of the fact that I have a secondary keyboard at work, I don’t quite need those keys working on the laptops keyboard, but I haven’t figured out how to do it yet, I already have the dispositive id.

    The output from

    xinput list


    ⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
    ⎜   ↳ USB Optical Mouse                       	id=13	[slave  pointer  (2)]
    ⎜   ↳ SynPS/2 Synaptics TouchPad              	id=15	[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)]
        ↳ Video Bus                               	id=8	[slave  keyboard (3)]
        ↳ Power Button                            	id=9	[slave  keyboard (3)]
        ↳ HP Truevision HD                        	id=10	[slave  keyboard (3)]
        ↳ Logitech Logitech G710 Keyboard         	id=11	[slave  keyboard (3)]
        ↳ Logitech Logitech G710 Keyboard         	id=12	[slave  keyboard (3)]
        ↳ AT Translated Set 2 keyboard            	id=14	[slave  keyboard (3)]
        ↳ HP Wireless hotkeys                     	id=16	[slave  keyboard (3)]
        ↳ HP WMI hotkeys                          	id=17	[slave  keyboard (3)]
        ↳ USB Optical Mouse                       	id=18	[slave  keyboard (3)]

    The problem itself comes from AT Translated Set 2 keyboard id=14, to find out I ran

    xinput test 14 //id of the keyboard

    And after using the computer for a while, I was scrolling down some text and the text zoomed in, so I went to the console to check for keypress, and, indeed, it gave me the code

    keypress 37
    keyrelease 37

    which is the binded to ctrl key, for that specific keyboard.

    I know it’s not a hardware problem, because the keyboard works perfectly fine on windows, also, I remember having the exact same problem some years ago with another computer, and I fixed it, but can’t quite remember how. I’ve been googling a lot, and I can’t seem to find anything related to it.

    Anyways, I give up trying to fix it, and I want to know if there is a way to unbind ctrl and alt keys from that specific keyboard, and have them work on the Logitech g710 one.

    Thanks a lot to everyone willing to help!

  • @Crashk
    if I remember correctly, xmodmap should be able to reassign keys.

  • @manuel
    Do you happen to know if there’s a way to reassign a key specifically from a dispositive?, such that my usb keyboard still has the working ctrl key, while the laptop’s one doesn’t?

  • The solution to this problem is given on this post, for everyone who has similar problems.


keyboard37 keypresses1 random7 coming2 Posts 4Views 108
Log in to reply