Keyboard problem in qemu 0.6.0-2
What keyboard map are you using? AFAIK, if you are using a keymap that is different to the *guest* OS default, you need to set up a new keymap in the guest as well.
i.e. running Dvorak on my host system, guest OSs still assumed that I had a qwerty keyboard and would need explicit configuration to also use the Dvorak layout.
HTH,
Mark
Please excuse my ignorance but how can I tell?
Quoted 2 lines · Mark Williamson
What keyboard map are you using?
Basically what I meant was: what kind of keyboard are you using in the host OS? Is it a standard Qwerty keyboard (i.e. the top row of the keyboard is QWERTYUIOP), or some different layout? What keyboard layout does the guest seem to be seeing (if you can tell)?
HTH,
Mark
It is a standard QWERTY keyboard. XF86Config has it listed as
XkbModel "pc105"
XkbLayout "us"
Kim
Quoted 14 lines · Mark Williamson
Basically what I meant was: what kind of keyboard are you using in the host OS? Is it a standard Qwerty keyboard (i.e. the top row of the keyboard is QWERTYUIOP), or some different layout? What keyboard layout does the guest seem to be seeing (if you can tell)?
HTH,
Mark_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
If I type the:
qwertyui
keys, then"
7890-qwyb
appears on the screenwith bothe the freedos image and the linux-test image
Kim
Quoted 30 lines · Kim Adil
It is a standard QWERTY keyboard. XF86Config has it listed as
XkbModel "pc105"
XkbLayout "us"Kim
Quoted 7 lines · Mark Williamson
Basically what I meant was: what kind of keyboard are you using in the host OS? Is it a standard Qwerty keyboard (i.e. the top row of the keyboard is QWERTYUIOP), or some different layout? What keyboard layout does the guest seem to be seeing (if you can tell)?
HTH,
MarkQuoted 7 lines
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
I seem to have a default keymap to the french keyboard layout. I thought it must be defined in the guest os images that I downloaded, however, I tried booting a windows XP setup disk and the same key layout was experienced. Is there a way to alter this?
Kim
Quoted 1 line · Kim Adil
I seem to have a default keymap to the french keyboard layout. I thought it must be defined in the guest os images that I downloaded, however, I tried booting a windows XP setup disk and the same key layout was experienced. Is there a way to alter this?
Hi,
I have similar problems with a Solaris10_x86 host running QEMU 0.6.0 when displaying to the default Xsun X-Server at ':0.0' or forwarding to my SPARC machines running several Solaris versions.
These problems make QEMU (any Guest OS's command line, any input fields) completely unusable.
Almost exactly the same DISmapping appeared, when running the prebuilt 0.6.0 LinUX binary on the JDS1_Live Demo CD (while the mapping itself was different). Since no one else complained about it, my HOST and my machines displaying QEMU's window over the network appeared to be the cause.
Both the physical Keyboards itself (different vendors, different interfaces [ps/2 and usb]) as well as all guest and host OS's use US-English / POSIX C 7bit as default locale.
I had the same problem at University when running 0.6.0 on a Debian system installed in 2001.
On most of these systems
"qwertyui"
is interpreted by the guest as
"rp6tu]i0".
Many keys do nothing at all. Others give strange control seqences with their ascii hex id printed to the guest console.
I posted to the ml around a week ago but didn't get reports of others confirming my experiences.
Am I the only one worldwide (your problem description still sounds quite moderate, as your keys are still in a usual sequential order - just shifted by a few keys) ?
WORKAROUND: First ensure that you have installed the very latest SDL release (unfortunately doing so didn't solve above problems in any way - however). ***The solution was to upgrade the HOST to the latest XFree86 4.x (that is to replace Xsun)***
***Alternatively it may help to use VNC4.x (which actually uses/includes a minimal - XFree86 4.x server)***.
So the misbehavior seems to be Host-X11_Server dependent.
The key mappings between SDL<<--->>X11 seem to be the root of these errors.
A bug in qemu, as it doesn's support forwarding to proprietary or even free X11 servers, when too old.
(maybe an XFree86_4.x--only specific option not supported by anything else?)
Another alternative is: Go to http://www.dad-answers.com/qemu , download the NOsdl-patch, copy 'nosdl.c' over 'sdl.c' , type "make distclean;./configure;make" then switch user to root and do a make install.
Worked for me.
--
Martin
Quoted 2 lines · Martin
A bug in qemu, as it doesn's support forwarding to proprietary or even free X11 servers, when too old. (maybe an XFree86_4.x--only specific option not supported by anything else?)
Or a bug in SDL rather than in QEMU?
Thanks Martin, it worked perfectly.
Kim
Quoted 12 lines · Martin
Another alternative is: Go to http://www.dad-answers.com/qemu , download the NOsdl-patch, copy '
nosdl.c' over 'sdl.c' , type "make distclean;./configure;make" then switch user to root and do a make install.Worked for me.
Signature · 2 lines
Martin vel
Quoted 3 lines · Kim Adil
Thanks Martin, it worked perfectly.
Kim
Hi,
I'm glad to hear that I could help you.
However - sdl does have its advantages: Ctr+Shift+f switches forth and back to and from fullscreen mode operation;
(and of course it makes QEMU as well as other projects using it ways more host platform independent as it doesn't require the presence of X).
In my eyes Juergen's approach is a much cleaner solution:
Quoted 9 lines
I guess that (``scancode = keycode - 8'') only works with an XFree86 X11 server.
My current workaround is to compile
sdl.cwithCONFIG_SDL_GENERIC_KBDdefined. This enables a more accurate X11 keysym to PC scancode translation
table. Problem is, the translation table assumes a US keyboard layout.
Having installed both qemu_using_X11 and qemu_using_SDL at the same time would be possible too (ie to /usr/local and /opt or /usr).
Regards,
Martin
Quoted 6 lines · Martin
Quoted 3 lines · Kim Adil
Thanks Martin, it worked perfectly.
Kim
Kim,
simply delete or comment out the two lines surrounding CONFIG_SDL_GENERIC_KBD ' s definition (lines #32 and#34 in my case) in QEMU's original sdl.c, so that it is processed in any case:
// #if defined(__APPLE__)
#define CONFIG_SDL_GENERIC_KBD
// #endif
Works perfectly - thanks to Juergen's hint.