Skip to contentSkip to conversation

Keyboard/Mouse issues on WinXP loadvm

Qemu-devel Andrew Barr 3 participants 3 messages Mar 30, 2006

lore
Share & tools
lore
#0 lore raw

The virtual keyboard and mouse appear to be confused after loadvm'ing on Windows XP SP2 (and 2000 SP4 as well) guest (Qemu CVS on Linux host). The control key appears to be stuck down. While looking for something unrelated in the mailing list archives, I found these:

http://lists.gnu.org/archive/html/qemu-devel/2005-05/msg00021.html
http://lists.gnu.org/archive/html/qemu-devel/2005-05/msg00000.html

It appears to be describing the exact same problem, but on a Linux guest. The suggested solution was to press Ctrl, Shift, Alt one after the other after restoring the VM. This doesn't appear to work on my Windows guest. Is there another way to fix this?

Signature · 6 lines
Andrew Barr			| 1024D/AD9AE76A
[email protected]	| http://www.oakcourt.dyndns.org/~andrew

Quimby: Can't we have one meeting that doesn't end in someone digging up a 
body?
	-- The Simpsons, "Lisa the Iconoclast" (3F13)
#1 lore raw

Hi,

Quoted 5 lines · Andrew Barr

The virtual keyboard and mouse appear to be confused after loadvm'ing on Windows XP SP2 (and 2000 SP4 as well) guest (Qemu CVS on Linux host). The control key appears to be stuck down. While looking for something unrelated in the mailing list archives, I found these:

Quoted 7 lines

http://lists.gnu.org/archive/html/qemu-devel/2005-05/msg00021.html
http://lists.gnu.org/archive/html/qemu-devel/2005-05/msg00000.html

It appears to be describing the exact same problem, but on a Linux guest. The suggested solution was to press Ctrl, Shift, Alt one after the other after restoring the VM. This doesn't appear to work on my Windows guest. Is there another way to fix this?

Okay, let's recapitulate: you

- switch to the console by hitting Ctrl+Alt+2
- say savevm bla.vm
- exit

and then

- start qemu with "-loadvm bla.vm"?

Now think a little about what the emulated machine is doing! The VM gets Ctrl+Alt and up to this point it does not yet know that you want to change to the console, so it dutifully reports these keyboard down events to the underlying machine. Since you then save the image and exit, the saved state still contains that information: the Ctrl and Shift keys are pressed.

So, either you did not really try to hit Ctrl and Alt keys, or Windows does other strange things. You could try to switch to the console and back, to see if qemu is getting the keys.

Hth,
Dscho

#2 lore raw
In reply to Andrew Barr

Am Mittwoch, den 29.03.2006, 21:26 -0500 schrieb Andrew Barr:

Quoted 5 lines

The virtual keyboard and mouse appear to be confused after loadvm'ing on Windows XP SP2 (and 2000 SP4 as well) guest (Qemu CVS on Linux host). The control key appears to be stuck down. While looking for something unrelated in the mailing list archives, I found these:

Quoted 8 lines

http://lists.gnu.org/archive/html/qemu-devel/2005-05/msg00021.html
http://lists.gnu.org/archive/html/qemu-devel/2005-05/msg00000.html

It appears to be describing the exact same problem, but on a Linux guest. The suggested solution was to press Ctrl, Shift, Alt one after the other after restoring the VM. This doesn't appear to work on my Windows guest. Is there another way to fix this?

i dont know if it is the exactly same bahavior i encountered:
here the keys were >totaly< messed up (i used cvs version) on #qemu irc-channel a patch for this was posted at the url:
http://jma-box.student.umd.edu:8080/ps2.diff

this might help - at least it did help fixing my problem.

cheers
maestro

p.s. paul brooks: is this to be going into cvs at some point, or did it already happen and i missed it