VirtualBox

Ticket #8371 (new defect)

Opened 3 years ago

Last modified 2 years ago

VirtualBox 4.x does not correctly honor remapped keys in VMs on Linux

Reported by: vedamaker Owned by:
Priority: major Component: other
Version: VirtualBox 4.0.4 Keywords:
Cc: Guest type: Windows
Host type: Linux

Description (last modified by michael) (diff)

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

VBox.log Download (74.8 KB) - added by vedamaker 3 years ago.
log file with keycodes

Change History

comment:1 follow-up: ↓ 2 Changed 3 years ago by 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.

Changed 3 years ago by vedamaker

log file with keycodes

comment:2 in reply to: ↑ 1 Changed 3 years ago by vedamaker

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 Changed 2 years ago by flavorjones

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 Changed 2 years ago by flavorjones

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 Changed 2 years ago by michael

  • 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.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use