Skip to contentSkip to conversation

Post-Mortem: [Qemu-devel] How to send Ctrl+Alt+F1 to guest OS?

DISCUSSION Matt Howard 1 participant 1 message Feb 13, 2004

lore
Share & tools
lore
#0 lore raw

First off, I'm not on the list, so copy me if I should see the replies... :)

I didn't see this solution posted, and this is what I suspect VMware does on the fly. You can use the xmodmap(1) tool to remove the magic from the C-A-Fn combo. I use two files to work around this, .Xmodmap.norm and .Xmodmap.qemu All you have to do is run "xmodmap .Xmodmap.qemu" to disable vt-switch on the X server, and run "xmodmap .Xmodmap.norm" Also the file .Xmodmap is the user defaults file and will be loaded when your X session starts. Note that I have the magic for F12 always disabled, that's because I use Remote Administrator in WINE. :)

I don't know the details of xmodmap, but its functionality could be pulled in (or executed by) qemu...

Anyway, hope this removes one annoyance for the qemu users out there.

--
Matt Howard <[email protected]>
Superior Insurance - Tech Services

keycode  67 = F1 XF86_Switch_VT_1
keycode  68 = F2 XF86_Switch_VT_2
keycode  69 = F3 XF86_Switch_VT_3
keycode  70 = F4 XF86_Switch_VT_4
keycode  71 = F5 XF86_Switch_VT_5
keycode  72 = F6 XF86_Switch_VT_6
keycode  73 = F7 XF86_Switch_VT_7
keycode  74 = F8 XF86_Switch_VT_8
keycode  75 = F9 XF86_Switch_VT_9
keycode  76 = F10 XF86_Switch_VT_10
keycode  95 = F11 XF86_Switch_VT_11
keycode  96 = F12
keycode  67 = F1
keycode  68 = F2
keycode  69 = F3
keycode  70 = F4
keycode  71 = F5
keycode  72 = F6
keycode  73 = F7
keycode  74 = F8
keycode  75 = F9
keycode  76 = F10
keycode  95 = F11
keycode  96 = F12