Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have disabled autorepeat. I run xev, then press and hold spacebar. On my laptop, this sends a single KeyPress event — as expected. However, on my desktop, this sends KeyPress, KeyRelease, and another KeyPress, as follows:

KeyPress event, serial 40, synthetic NO, window 0x5400001,
    root 0x14c, subw 0x0, time 35593092, (175,178), root:(177,201),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XmbLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x5400001,
    root 0x14c, subw 0x0, time 35593244, (175,178), root:(177,201),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x5400001,
    root 0x14c, subw 0x0, time 35593348, (175,178), root:(177,201),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XmbLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

This confuses applications where holding a key means something particular, as opposed to just pressing a key. My keyboard is an old Dell PS/2 keyboard connected through a PS/2-USB connector, but I don't know if that's the cause of the problem. Could it? Is there anything I can do to mitigate this problem or investigate it further?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.