Skip to contentSkip to conversation

Keyboard/monitor problems when running not under X

Qemu-devel Marcus Blomenkamp 2 participants 2 messages Nov 4, 2005

lore
Share & tools
lore
#0 lore raw

Hi all,

i'm having serious problems getting my qemu instance running properly on linux framebuffer console. Somehow keystrokes are not delivered or translated properly leading to the following effects:
1. weird key mapping in guest (backspace -> 5)
2. unable to change to monitor console by pressing ctrl-alt-2
3. unable to use stdio console when invoked "-monitor stdio"

Problem 1 can be "solved" by explicitly forcing "-k de" in my case, however the other problems remain. Funny thing is when launching the monitor for stdio, characters are only delivered or echoed on/after switching to the guest and back, eg:
press help <enter>, nothing happens
press ctrl-alt-1
press ctrl-alt-2, help text is displayed.

My system is running linux 2.6.14-rc5, sdl 1.2.9, fb console 1280x1024-32@60

Best regards, Marcus

#1 lore raw
Quoted 4 lines · Marcus Blomenkamp

Hi all,

i'm having serious problems getting my qemu instance running properly on linux framebuffer console. Somehow keystrokes are not delivered or translated

Yep. This is a known issue with the framebuffer. For some it seems to just work, but for others the keys are not mapped correctly. My guess is that because qemu uses the raw SDL scancode, its expected an X11 keycode but getting a framebuffer keycode (or possibly the raw PC keyboard scancode). This probably wouldn't be to hard for a person familiar with linux framebuffer programming to fix.

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.