VirtualBox

Ticket #1891 (reopened defect)

Opened 2 years ago

Last modified 4 weeks ago

VB doesn't handle custom keyboard layouts (xmodmap)

Reported by: Decroix Assigned to:
Priority: major Component: other
Version: VirtualBox 1.6.2 Keywords: keyboard input xmodmap
Cc: Guest type: other
Host type: Linux

Description

VirtualBox cannot handle a custom keyboard layout by xmodmap. When entering characters, "abcde..." becomes "anihd...". Attached is the VBox log and the xmodmaprc I'm using. If xmodmap is not invoked, everything is peachy.

Attachments

VBox.log (35.1 kB) - added by Decroix on 2008-08-01 01:19:32.
xmodmaprc (9.4 kB) - added by Decroix on 2008-08-01 01:20:19.
X11 keyboard layout
VBox.2.log (36.3 kB) - added by Decroix on 2008-08-04 15:51:06.
1.6.4 log file
VBox.3.log (34.2 kB) - added by Decroix on 2008-08-04 16:43:53.
1.6.4 log file, no xmodmap
.Xmodmap (0.9 kB) - added by jon_eliot on 2010-02-18 18:01:47.
xmodmap, causes malfunction on Ubuntu Karmic 64bit

Change History

2008-08-01 01:19:32 changed by Decroix

  • attachment VBox.log added.

2008-08-01 01:20:19 changed by Decroix

  • attachment xmodmaprc added.

X11 keyboard layout

(follow-up: ↓ 2 ) 2008-08-01 14:44:37 changed by michael

Please retry with VirtualBox 1.6.4.

(in reply to: ↑ 1 ) 2008-08-02 02:59:52 changed by Decroix

Replying to michael:

The problem persists in 1.6.4.

(follow-up: ↓ 4 ) 2008-08-04 15:03:36 changed by michael

Could you include a log file from 1.6 please?

2008-08-04 15:51:06 changed by Decroix

  • attachment VBox.2.log added.

1.6.4 log file

(in reply to: ↑ 3 ) 2008-08-04 15:52:00 changed by Decroix

Replying to michael:

Could you include a log file from 1.6 please?

I certainly can. Log attached.

(follow-up: ↓ 6 ) 2008-08-04 16:14:12 changed by michael

Are you using any non-standard keyboard setup? In this case, non-standard means anything other than a PC keyboard used locally on a PC compatible machine. And was the log you posted with or without your custom layout? If it was with it, could you please post a log taken using your normal layout? Thanks very much!

(in reply to: ↑ 5 ) 2008-08-04 16:43:18 changed by Decroix

Replying to michael:

Are you using any non-standard keyboard setup?

No, it's a pretty standard Logitech USB cordless something on a regular PC.

And was the log you posted with or without your custom layout?

With custom layout. Clean log coming up.

2008-08-04 16:43:53 changed by Decroix

  • attachment VBox.3.log added.

1.6.4 log file, no xmodmap

2008-08-04 16:46:47 changed by Decroix

Btw, does it only happen to me ? I figured, as this is new software (at least it is to me) that there were some kinks that wasn't quite ironed out yet ..... but is that actually the case ?

(follow-up: ↓ 9 ) 2008-08-04 19:20:58 changed by michael

  • status changed from new to closed.
  • resolution set to fixed.
  • summary changed from VB doesn't handle custom keyboard layouts (xmodmap) to VB doesn't handle custom keyboard layouts (xmodmap) => fixed in next version.

Your layout reversed Ctrl and Caps. This should be fixed in the next version.

(in reply to: ↑ 8 ) 2008-08-06 01:07:26 changed by Decroix

Replying to michael:

Your layout reversed Ctrl and Caps. This should be fixed in the next version.

That is awesome, I'll be looking forward to that ! Thanks a lot for your attention !

2008-09-15 11:25:06 changed by jon

  • status changed from closed to reopened.
  • resolution deleted.

After updating to VirtualBox 2.0 this is not working for me anymore. I have a the Ctrl and Caps key switched on my keyboard using xmodmap on Ubuntu 8.04-Host, the behavior in VirtualBox now is that both, Caps-lock and Ctrl are placed at the Ctrl-key. I assume the Caps-lock function is taken from the Host OS, which is there placed at the Ctrl key, and the Guest (Windows XP) is interpreting the Ctrl-key itself, with it's original meaning, ignoring the layout set in xmodmap.

2008-09-16 03:32:04 changed by robm

I'm not sure if this is related or not, but I have a similar problem in 2.0 when using setxkbmap and a custom dvorak-style layout. I added my log file and the keymap at #2052

2009-07-07 20:52:04 changed by MrX1980

Please try it with v3.0.0 again.

2009-10-06 11:40:34 changed by frank

No response, closing.

2009-10-30 09:49:34 changed by frank

  • status changed from reopened to closed.
  • resolution set to fixed.

2009-11-20 22:51:33 changed by schmir

  • status changed from closed to reopened.
  • resolution deleted.

It does *not* work with 3.0.12 on a 64 bit linux host with w2k.

here's my xmodmap

clear Shift
clear Lock
clear Control
clear Mod1

!keycode 117= Multi_key

keysym semicolon = colon semicolon colon semicolon colon semicolon
keysym quotedbl = quotedbl apostrophe quotedbl apostrophe quotedbl apostrophe
keycode  49 = asciitilde grave asciitilde grave asciitilde grave
keycode  65 = space space space NoSymbol space

!keysym Caps_Lock = Escape
keycode 66 = nabla
add Shift = Shift_L
add Shift = Shift_R

add Mod1 = Alt_L
add Mod1 = Alt_R

add Control = Control_R
add Control = Control_L

colon, semicolon, apostrophe and quotedbl do not work.

2009-12-01 09:56:42 changed by frank

  • summary changed from VB doesn't handle custom keyboard layouts (xmodmap) => fixed in next version to VB doesn't handle custom keyboard layouts (xmodmap).

2010-01-05 04:52:38 changed by invsblduck

I also experience this behavior on 3.1 (3.1.2-56127_Ubuntu_karmic to be exact). I xmodmap my us-dvorak layout in Xorg and it affects the vanilla QWERTY layout in my Windows 7 guest. :)

Thank you. I love this software.

2010-02-18 18:01:47 changed by jon_eliot

  • attachment .Xmodmap added.

xmodmap, causes malfunction on Ubuntu Karmic 64bit

2010-02-18 18:07:23 changed by jon_eliot

Confirmed a very similar malfunction on Ubuntu Karmic 64bit. Virtualbox Version 3.1.4 r57640 installed from development repository. Without xmodmap the keyboard maps perfectly. With xmodmap all characters are mismapped except the letter 'a'. uname -a Linux nn.uninett.no 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 02:39:34 UTC 2010 x86_64 GNU/Linux

Apart from this virtualbox is excellent. Running in a separate login without keyboard remapping and doing precisely what I need.


ContactPrivacy policy