Caps lock generating two KeyPress events on linux X11
Posted: 7. Jul 2012, 03:29
Virtualbox version: VirtualBox 4.1.18 r78361 win.amd64
Guest additions: 4.1.18_OSEr78361
Host OS: Windows 7 Ultimate SP1 (6.1.7601)
Guest OS: Arch linux, kernel 3.4.4-2-ARCH, xorg-server 1.11.4-2
The caps lock key seems to press itself again for X11 after I press it, so X windows get KeyPress events twice (and the corresponding two KeyRelease, the second one arriving a few ms later) every time I want to turn caps lock ON - that is, if the keyboard led was off. When turning caps lock OFF, this doesn't happen, and applications get a single KeyPress/KeyRelease pair.
The most simple test for this is pressing a random letter and interrupting it with caps lock: aaaaaaAAAAaaaaaaaaa - caps lock disables itself after a short while, the fourth "A" in this case.
I've attached a log of xev with the events I've described above.
This only happens inside virtualbox and X, I've booted the same partition from my physical hardware and this bug isn't present. The text consoles don't seem to be affected, just X. I haven't tried other virtualization software yet.
I've tried passmark keyboard test (a windows based keyboard testing tool... it's what google suggests when searching xev for windows), and it's sending the key press only once outside virtualbox.
Any ideas? After googling it looks like i'm the only one with this problem, so asking here is my last hope, and this is getting too annoying.
Guest additions: 4.1.18_OSEr78361
Host OS: Windows 7 Ultimate SP1 (6.1.7601)
Guest OS: Arch linux, kernel 3.4.4-2-ARCH, xorg-server 1.11.4-2
The caps lock key seems to press itself again for X11 after I press it, so X windows get KeyPress events twice (and the corresponding two KeyRelease, the second one arriving a few ms later) every time I want to turn caps lock ON - that is, if the keyboard led was off. When turning caps lock OFF, this doesn't happen, and applications get a single KeyPress/KeyRelease pair.
The most simple test for this is pressing a random letter and interrupting it with caps lock: aaaaaaAAAAaaaaaaaaa - caps lock disables itself after a short while, the fourth "A" in this case.
I've attached a log of xev with the events I've described above.
This only happens inside virtualbox and X, I've booted the same partition from my physical hardware and this bug isn't present. The text consoles don't seem to be affected, just X. I haven't tried other virtualization software yet.
I've tried passmark keyboard test (a windows based keyboard testing tool... it's what google suggests when searching xev for windows), and it's sending the key press only once outside virtualbox.
Any ideas? After googling it looks like i'm the only one with this problem, so asking here is my last hope, and this is getting too annoying.