Opened 14 years ago
Closed 8 years ago
#8371 closed defect (obsolete)
VirtualBox 4.x does not correctly honor remapped keys in VMs on Linux
Reported by: | vedamaker | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.0.4 |
Keywords: | Cc: | ||
Guest type: | Windows | Host type: | Linux |
Description (last modified by )
I use xmodmap to swap left control and capslock keys on Linux (Debian Lenny x64) and VirtualBox 3.x supports the key mappings correctly in VMs (Windows and Linux) but VirtualBox 4.x (including 4.0.4) does not. Here is the behavior on VirtualBox 4.0.4:
- When left CTRL key is pressed, capslock is turned on/off but control key code is also sent to VM
- When left CAPSLOCK key is pressed, control key code is NOT sent to VM
This problem makes VirtualBox 4.x unusable for me.
Attachments (1)
Change History (7)
follow-up: 2 comment:1 by , 14 years ago
comment:2 by , 13 years ago
I installed latest version 4.0.10 and still have the same problem. I ran VM with the extra logging option and have uploaded the log file.
Replying to michael:
Actually I though this issue was fixed in 4.0.2 (I was aware of it in 4.0.0).
I have uploaded a test build (see here) which does additional keyboard-related logging. It is available at http://www.virtualbox.org/download/testcase/VirtualBox-2011-03-23-16-45-04-lin64-4.0-4.0.5-r70715.run (That is a shell script installer for 64bit Linux hosts. You should remove your current installation before installing it, though not your VMs of course.) If you run that build with the environment variable "VBOX_RELEASE_LOG=+gui.e.l3" it should print additional information into the log file about every keystroke you enter into the machine, with its X11 keycode on the host and the scan code that is generated in the guest. It would be great if you could reproduce this with the additional logging enabled and upload the log file.
comment:3 by , 12 years ago
I believe I'm experiencing this issue in 4.1.14 on oneiric 64bit. Anybody have reason to believe this has been fixed? What additional information can I provide above and beyond the log file attached by vedamaker?
comment:4 by , 12 years ago
More information: if I've modified my keyboard by checking the Keyboard -> Options option "Make Caps Lock an additional Control but keep the Caps_Lock keysym", then the keypress does not appear to make it to the guest.
But, if I check "Make Caps Lock an additional Ctrl" then everything works as expected.
It's unclear to me what the difference is, but it's a workaround that works for me.
comment:5 by , 12 years ago
Description: | modified (diff) |
---|
Couldn't see any problems here with an Ubuntu 12.04 host (the "Make Caps Lock an additional Ctrl" seems to have gone altogether). Or have I misunderstood the symptoms? What should I be seeing? Note that I tried with the development version of VirtualBox, not with 4.1.
comment:6 by , 8 years ago
Resolution: | → obsolete |
---|---|
Status: | new → closed |
Please reopen if still relevant with a recent VirtualBox release.
Actually I though this issue was fixed in 4.0.2 (I was aware of it in 4.0.0).
I have uploaded a test build (see here) which does additional keyboard-related logging. It is available at http://www.virtualbox.org/download/testcase/VirtualBox-2011-03-23-16-45-04-lin64-4.0-4.0.5-r70715.run (That is a shell script installer for 64bit Linux hosts. You should remove your current installation before installing it, though not your VMs of course.) If you run that build with the environment variable "VBOX_RELEASE_LOG=+gui.e.l3" it should print additional information into the log file about every keystroke you enter into the machine, with its X11 keycode on the host and the scan code that is generated in the guest. It would be great if you could reproduce this with the additional logging enabled and upload the log file.