What is causing my spacebar to randomly stop working?
- by Chris Billington
A couple of times a day, I'll be typing something and realise I can't type spaces. Usually the cursor will flicker instead when I press the spacebar, and I can type all other letters as far as I can tell. If I'm in a terminal the cursor turns from a solid square to an empty square until I release the spacebar.
For some reason, restarting compiz with alt-F2 compiz fixes it, until it next occurs.
I can still copy and paste spaces from sources that already have them, and I can still insert spaces with ctrl-shift-u, 20, enter.
This has been happening for a while, since before I upgraded to maverick, but it feels like its beceoming more frequent. There really doesn't seem to be any kind of a pattern to it.
I'm using 64 bit ubuntu 10.10 on a system76 panp7 laptop.
Any ideas how I might troubleshoot?
EDIT:
using xev, normally a spacebar registers as:
KeyPress event, serial 36, synthetic NO, window 0x5600001,
root 0x101, subw 0x0, time 26488647, (88,403), root:(748,458),
state 0x10, keycode 65 (keysym 0x20, space), same_screen YES,
XLookupString gives 1 bytes: (20) " "
XmbLookupString gives 1 bytes: (20) " "
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x5600001,
root 0x101, subw 0x0, time 26488729, (88,403), root:(748,458),
state 0x10, keycode 65 (keysym 0x20, space), same_screen YES,
XLookupString gives 1 bytes: (20) " "
XFilterEvent returns: False
But when it's stopped behaving a press of the spacebar instead gives the three events:
FocusOut event, serial 36, synthetic NO, window 0x5600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 36, synthetic NO, window 0x5600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 36, synthetic NO, window 0x0,
keys: 2 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
FURTHER EDIT:
Ok, so I think I've solved the problem, and by that I mean I now know which package to file a bug against.
I have a hot corner which initiates a window picker, and I've customised the window picking so that left click goes to a window, right click closes one and spacebar zooms in on one. When I go to this hot corner, compiz must take control of my spacebar, and clearly isn't giving it back when I leave the window picker.
So I'll be filing a bug against compiz.
reported:here