Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using xubuntu 12.04 64bit on an Acer TravelMate 5742Z laptop.

Scenario: Holding the key sss

expected output: ssssssssssssssssssssssssssssssssssssssssssssssssss ... ssssssssssssssss

actual output: sss

I will get the same amount of letters, no matter how long I press the key. It appears as if I released the key, even though I didn't. This happens consistently, every time I try it and with every key on my keyboard.

In Settings -> Settings Manager -> Keyboard, key repetition is enabled. Fiddling with the sliders only changes the amount of letters appearing before it will stop, for example, if I decrease the repeat delay I might get this output in above scenario: ssssssssssssssss. I also tried to toggle the repeat function, which did not solve the problem.

If I am typing in a terminal (Ctrl+Alt+F1-F6), this problem does not occur and the keyboard behaves as expected.

Note: Together with this problem, selecting text with the mouse would be interrupted as well. So I only could select a text for a specific time, after that time it would appear as if I released the mouse button, even though I didn't. For some reason, this problem is now gone.

Update I now used xev to further analyse the problem. Keeping s pressed will create the following event log:

KeymapNotify event, serial 34, synthetic NO, window 0x0,
    keys:  84  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyPress event, serial 34, synthetic NO, window 0x2200001,
    root 0xae, subw 0x0, time 5829250, (356,-6), root:(965,449),
    state 0x10, keycode 39 (keysym 0x73, s), same_screen YES,
    XLookupString gives 1 bytes: (73) "s"
    XmbLookupString gives 1 bytes: (73) "s"
    XFilterEvent returns: False
.............................................................................

*here I deleted ~25 KeyPress events that look all similar to the others*

.............................................................................

KeyPress event, serial 34, synthetic NO, window 0x2200001,
    root 0xae, subw 0x0, time 5829488, (356,-6), root:(965,449),
    state 0x10, keycode 39 (keysym 0x73, s), same_screen YES,
    XLookupString gives 1 bytes: (73) "s"
    XmbLookupString gives 1 bytes: (73) "s"
    XFilterEvent returns: False

**FocusOut event**, serial 34, synthetic NO, window 0x2200001,
    mode NotifyGrab, detail NotifyAncestor

**FocusIn event**, serial 34, synthetic NO, window 0x2200001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 34, synthetic NO, window 0x0,
    keys:  2   0   0   0   4294967168 0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 34, synthetic NO, window 0x2200001,
    root 0xae, subw 0x0, time 5830220, (356,-6), root:(965,449),
    state 0x10, keycode 39 (keysym 0x73, s), same_screen YES,
    XLookupString gives 1 bytes: (73) "s"
    XFilterEvent returns: False

ClientMessage event, serial 34, synthetic YES, window 0x2200001,
    message_type 0x14f (WM_PROTOCOLS), format 32, message 0x14d (WM_DELETE_WINDOW)

Why is there an FocusOut event followed by an FocusIn event? I disabled my touchpad and I am not pressing any other key or mouse button while holding the s key.

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.