Oracle VM VirtualBox: Ticket #8371: VirtualBox 4.x does not correctly honor remapped keys in VMs on Linuxhttps://www.virtualbox.org/ticket/8371
<p>
I use xmodmap to swap left control and capslock keys on Linux (Debian Lenny x64) and <a class="wiki" href="https://www.virtualbox.org/wiki/VirtualBox">VirtualBox</a> 3.x supports the key mappings correctly in VMs (Windows and Linux) but <a class="wiki" href="https://www.virtualbox.org/wiki/VirtualBox">VirtualBox</a> 4.x (including 4.0.4) does not. Here is the behavior on <a class="wiki" href="https://www.virtualbox.org/wiki/VirtualBox">VirtualBox</a> 4.0.4:
</p>
<ul><li>When left CTRL key is pressed, capslock is turned on/off but control key code is also sent to VM
</li><li>When left CAPSLOCK key is pressed, control key code is NOT sent to VM
</li></ul><p>
This problem makes <a class="wiki" href="https://www.virtualbox.org/wiki/VirtualBox">VirtualBox</a> 4.x unusable for me.
</p>
en-usOracle VM VirtualBox/graphics/vbox_logo2_gradient.pnghttps://www.virtualbox.org/ticket/8371
Trac 0.12michaelWed, 23 Mar 2011 20:26:11 GMThttps://www.virtualbox.org/ticket/8371#comment:1
https://www.virtualbox.org/ticket/8371#comment:1
<p>
Actually I though this issue was fixed in 4.0.2 (I was aware of it in 4.0.0).
</p>
<p>
I have uploaded a test build (see <a class="wiki" href="https://www.virtualbox.org/wiki/Testbuilds">here</a>) which does additional keyboard-related logging. It is available at
<a class="ext-link" href="http://www.virtualbox.org/download/testcase/VirtualBox-2011-03-23-16-45-04-lin64-4.0-4.0.5-r70715.run"><span class="icon"> </span>http://www.virtualbox.org/download/testcase/VirtualBox-2011-03-23-16-45-04-lin64-4.0-4.0.5-r70715.run</a>
(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.
</p>
TicketvedamakerSat, 02 Jul 2011 19:00:03 GMTattachment sethttps://www.virtualbox.org/ticket/8371
https://www.virtualbox.org/ticket/8371
<ul>
<li><strong>attachment</strong>
set to <em>VBox.log</em>
</li>
</ul>
<p>
log file with keycodes
</p>
TicketvedamakerSat, 02 Jul 2011 19:02:34 GMThttps://www.virtualbox.org/ticket/8371#comment:2
https://www.virtualbox.org/ticket/8371#comment:2
<p>
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.
</p>
<p>
Replying to <a href="https://www.virtualbox.org/ticket/8371#comment:1" title="Comment 1 for Ticket #8371">michael</a>:
</p>
<blockquote class="citation">
<p>
Actually I though this issue was fixed in 4.0.2 (I was aware of it in 4.0.0).
</p>
<p>
I have uploaded a test build (see <a class="wiki" href="https://www.virtualbox.org/wiki/Testbuilds">here</a>) which does additional keyboard-related logging. It is available at
<a class="ext-link" href="http://www.virtualbox.org/download/testcase/VirtualBox-2011-03-23-16-45-04-lin64-4.0-4.0.5-r70715.run"><span class="icon"> </span>http://www.virtualbox.org/download/testcase/VirtualBox-2011-03-23-16-45-04-lin64-4.0-4.0.5-r70715.run</a>
(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.
</p>
</blockquote>
TicketflavorjonesWed, 02 May 2012 19:12:51 GMThttps://www.virtualbox.org/ticket/8371#comment:3
https://www.virtualbox.org/ticket/8371#comment:3
<p>
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?
</p>
TicketflavorjonesWed, 02 May 2012 19:17:14 GMThttps://www.virtualbox.org/ticket/8371#comment:4
https://www.virtualbox.org/ticket/8371#comment:4
<p>
More information: if I've modified my keyboard by checking the Keyboard -&gt; 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.
</p>
<p>
But, if I check "Make Caps Lock an additional Ctrl" then everything works as expected.
</p>
<p>
It's unclear to me what the difference is, but it's a workaround that works for me.
</p>
TicketmichaelFri, 04 May 2012 14:06:03 GMTdescription changedhttps://www.virtualbox.org/ticket/8371#comment:5
https://www.virtualbox.org/ticket/8371#comment:5
<ul>
<li><strong>description</strong>
modified (<a href="/ticket/8371?action=diff&amp;version=5">diff</a>)
</li>
</ul>
<p>
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 <a class="wiki" href="https://www.virtualbox.org/wiki/VirtualBox">VirtualBox</a>, not with 4.1.
</p>
Ticket