Skip to contentSkip to conversation

vmmouse

Qemu-devel Rick Vernam 5 participants 10 messages Jan 29, 2009 – Feb 1, 2009

lore
Share & tools
lore
#0 lore raw

For the past few days (10-15, longer?) both my windows vms seem to have broken mice - the mouse cursor does not move in the guest...
Both guests run windows (2k,xp) and both have vmware mouse driver installed (not sure which version, off the top of my head).

I've not followed the list too closely during this time period either - in trying to catch up tonight I haven't seen anything on this subject, so I'm posting to see if this is a known issue...

I built qemu with DEBUG_VMMOUSE turned on in hw/vmmouse.c.
When I run qemu I get a single vmmouse_init right when qemu starts, but then no additional output.

Perhaps this is a separate issue, but when I "usb_add tablet" the mouse cursor becomes constrained to the upper left corner of the guests' screen.

Any ideas about what might be going on?
Thanks

#1 lore raw

In article <[email protected]> you write:

Quoted 13 lines

For the past few days (10-15, longer?) both my windows vms seem to have broken mice - the mouse cursor does not move in the guest...
Both guests run windows (2k,xp) and both have vmware mouse driver installed (not sure which version, off the top of my head).

I've not followed the list too closely during this time period either - in trying to catch up tonight I haven't seen anything on this subject, so I'm posting to see if this is a known issue...

I built qemu with DEBUG_VMMOUSE turned on in hw/vmmouse.c.
When I run qemu I get a single vmmouse_init right when qemu starts, but then no additional output.

Quoted 6 lines

Perhaps this is a separate issue, but when I "usb_add tablet" the mouse cursor becomes constrained to the upper left corner of the guests' screen.

Any ideas about what might be going on?
Thanks

`It's dead, Jim!' ;)

Yeah, I had reported vmmouse brokenness before (for linux guests):

	http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg01061.html

I guess its good (in a way) you confirm its broken for windows
guests too...

Juergen

#2 lore raw
Quoted 23 lines · you

In article <[email protected]> you write:

Quoted 13 lines

For the past few days (10-15, longer?) both my windows vms seem to have broken mice - the mouse cursor does not move in the guest... Both guests run windows (2k,xp) and both have vmware mouse driver installed (not sure which version, off the top of my head).

I've not followed the list too closely during this time period either - in trying to catch up tonight I haven't seen anything on this subject, so I'm posting to see if this is a known issue...

I built qemu with DEBUG_VMMOUSE turned on in hw/vmmouse.c. When I run qemu I get a single vmmouse_init right when qemu starts, but then no additional output.

Quoted 6 lines

Perhaps this is a separate issue, but when I "usb_add tablet" the mouse cursor becomes constrained to the upper left corner of the guests' screen.

Any ideas about what might be going on?
Thanks

`It's dead, Jim!' ;)

Quoted 7 lines

Yeah, I had reported vmmouse brokenness before (for linux guests):

	http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg01061.html

I guess its good (in a way) you confirm its broken for windows
guests too...

Juergen

It seems the brokenness extends beyond the mouse - the arrow keys on the keyboard are not behaving correctly either, although the arrows on the keypad are working correctly.
Another example: when qemu grabs the input, in the past I've been able to hit ctrl-alt-delete to send those keys to the guest...this no longer works. I have to go to the qemu monitor and do a sendkey ctrl-alt-delete

#8 lore raw
In reply to Juergen Lock
Quoted 3 lines
Quoted 1 line

Perhaps this is a separate issue, but when I "usb_add tablet" the

mouse cursor

Quoted 1 line

becomes constrained to the upper left corner of the guests' screen.

Oddly it's the same symptoms as in Haiku with the wacom emulation...

In the wacom code coordinates are scaled to [0:INT16_MAX] which is wrong, the PenPartner model it's emulating has max X of like 5040, and max Y of 3780.

Though the tablet emulation in usb-hid.c does publish an HID report desc with X and Y max as 0x7fff, so it should work, unless the windows hid driver is actually ignoring those maximum values and just using them unscaled, in which case it'd actually stay near 0,0 as it does...

You can try applying my wacom patch:
http://article.gmane.org/gmane.comp.emulators.qemu/36877/match=wacom

and use -usb wacom

and see if it works for you. Not sure if windows has a wacom driver by default though...

Btw, I still didn't have any comment on that wacom diff...

François.

#3 lore raw
In reply to Rick Vernam
Quoted 29 lines · Rick Vernam
Quoted 27 lines · you

In article <[email protected]> you write:

Quoted 13 lines

For the past few days (10-15, longer?) both my windows vms seem to have broken mice - the mouse cursor does not move in the guest... Both guests run windows (2k,xp) and both have vmware mouse driver installed (not sure which version, off the top of my head).

I've not followed the list too closely during this time period either - in trying to catch up tonight I haven't seen anything on this subject, so I'm posting to see if this is a known issue...

I built qemu with DEBUG_VMMOUSE turned on in hw/vmmouse.c. When I run qemu I get a single vmmouse_init right when qemu starts, but then no additional output.

Quoted 7 lines

Perhaps this is a separate issue, but when I "usb_add tablet" the mouse cursor becomes constrained to the upper left corner of the guests' screen.

Any ideas about what might be going on?
Thanks

`It's dead, Jim!' ;)

Yeah, I had reported vmmouse brokenness before (for linux guests):

	http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg01061.html
Quoted 8 lines
Quoted 5 lines

I guess its good (in a way) you confirm its broken for windows
guests too...

Juergen

It seems the brokenness extends beyond the mouse - the arrow keys on the keyboard are not behaving correctly either, although the arrows on the keypad are working correctly.

Arrow keys are a separate problem. I wasn't aware that vmmouse was having problems. Does anyone know what changeset broke it?

Regards,

Anthony Liguori

Quoted 5 lines

Another example: when qemu grabs the input, in the past I've been able to hit ctrl-alt-delete to send those keys to the guest...this no longer works. I have to go to the qemu monitor and do a sendkey ctrl-alt-delete

#4 lore raw

2009/1/29 Anthony Liguori <[email protected]>:

Quoted 42 lines
Quoted 41 lines · Rick Vernam
Quoted 37 lines · you

In article <[email protected]> you write:

Quoted 16 lines

For the past few days (10-15, longer?) both my windows vms seem to have broken mice - the mouse cursor does not move in the guest... Both guests run windows (2k,xp) and both have vmware mouse driver installed (not sure which version, off the top of my head).

I've not followed the list too closely during this time period either - in
trying to catch up tonight I haven't seen anything on this subject, so I'm
posting to see if this is a known issue...

I built qemu with DEBUG_VMMOUSE turned on in hw/vmmouse.c. When I run qemu I get a single vmmouse_init right when qemu starts, but then no additional output.

Quoted 7 lines

Perhaps this is a separate issue, but when I "usb_add tablet" the mouse cursor becomes constrained to the upper left corner of the guests' screen.

Any ideas about what might be going on?
Thanks

`It's dead, Jim!' ;)

Yeah, I had reported vmmouse brokenness before (for linux guests):

       http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg01061.html

I guess its good (in a way) you confirm its broken for windows
guests too...

Juergen

Quoted 7 lines
Quoted 4 lines

It seems the brokenness extends beyond the mouse - the arrow keys on the keyboard are not behaving correctly either, although the arrows on the keypad are working correctly.

Arrow keys are a separate problem. I wasn't aware that vmmouse was having problems. Does anyone know what changeset broke it?

I hit the issue with the generic tablet. Hopefully fixed it in r6476.

Cheers

#5 lore raw
Quoted 6 lines
Quoted 3 lines

Arrow keys are a separate problem. I wasn't aware that vmmouse was having
problems. Does anyone know what changeset broke it?

I hit the issue with the generic tablet. Hopefully fixed it in r6476.

Eh, nice catch!

Care to look at my wacom diff ?

Hopefully Haiku will soon include the existing vmmouse driver we have so it won't be needed anymore, but's more correct, and can always help someone else.

François.

#6 lore raw
In reply to andrzej zaborowski
Quoted 37 lines · andrzej zaborowski

2009/1/29 Anthony Liguori <[email protected]>:

Quoted 36 lines
Quoted 35 lines · Rick Vernam
Quoted 33 lines · you

In article <[email protected]> you write:

Quoted 15 lines

For the past few days (10-15, longer?) both my windows vms seem to have broken mice - the mouse cursor does not move in the guest... Both guests run windows (2k,xp) and both have vmware mouse driver installed (not sure which version, off the top of my head).

I've not followed the list too closely during this time period either
- in
trying to catch up tonight I haven't seen anything on this subject, so I'm
posting to see if this is a known issue...

I built qemu with DEBUG_VMMOUSE turned on in hw/vmmouse.c. When I run qemu I get a single vmmouse_init right when qemu starts, but then no additional output.

Quoted 6 lines

Perhaps this is a separate issue, but when I "usb_add tablet" the mouse cursor becomes constrained to the upper left corner of the guests' screen.

Any ideas about what might be going on?
Thanks

`It's dead, Jim!' ;)

Yeah, I had reported vmmouse brokenness before (for linux guests):

http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg01061.html

I guess its good (in a way) you confirm its broken for windows
guests too...

Juergen

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

It seems the brokenness extends beyond the mouse - the arrow keys on the keyboard are not behaving correctly either, although the arrows on the keypad are working correctly.

Arrow keys are a separate problem. I wasn't aware that vmmouse was having problems. Does anyone know what changeset broke it?

I hit the issue with the generic tablet. Hopefully fixed it in r6476.

tablet is better. thanks.

Quoted 2 lines

Cheers

#9 lore raw
In reply to Rick Vernam
Quoted 5 lines · Rick Vernam

For the past few days (10-15, longer?) both my windows vms seem to have broken mice - the mouse cursor does not move in the guest... Both guests run windows (2k,xp) and both have vmware mouse driver installed (not sure which version, off the top of my head).

Quoted 7 lines

I've not followed the list too closely during this time period either - in trying to catch up tonight I haven't seen anything on this subject, so I'm posting to see if this is a known issue...

I built qemu with DEBUG_VMMOUSE turned on in hw/vmmouse.c. When I run qemu I get a single vmmouse_init right when qemu starts, but then no additional output.

(btw, Revision: 6476)

On Win XP guest, in addition to the broken vmmouse, windows perpetually tells me that a new video controller has been detected. I assume it's talking about the vmware-vga device, so I've tried installing vmware's video drivers from workstation 5.0.1, 5.5.9 & 6.0.5. (this also started happening at the same time as the vmmouse dying, I just didn't mention it before).

vmware-vga is also broken with a w2k guest (see attached screenshot). Although, it has adjusted the sdl window to the correct resolution.

It seems I was mistaken before when I said vmmouse didn't work in w2k guest - it does works fine with w2k guest.
I get many debug_vmmouse messages like so:
vmmouse_get_status()
set_data = {0, 0, 28, 5658, 80471854, 818700d8} vmmouse_mouse_event(0, 0, 0, 0)
get_data = {564d5868, 0, 80420028, 817a5658, 817a05e8, 0} vmmouse_get_status()
set_data = {4, 0, 80420028, 817a5658, 817a05e8, 0}
get_data = {564d5868, 4, 80420027, 817a5658, 817a05e8, 0} vmmouse_data(4)
set_data = {0, 0, 0, 0, 817a05e8, 0}
get_data = {564d5868, 0, 28, 5658, 80471854, 818700d8} vmmouse_get_status()
set_data = {0, 0, 28, 5658, 80471854, 818700d8}
get_data = {564d5868, 0, 28, 5658, 80471854, 818700d8} vmmouse_get_status()
set_data = {0, 0, 28, 5658, 80471854, 818700d8}
get_data = {564d5868, 0, 28, 5658, 80471854, 818700d8} vmmouse_get_status()
set_data = {0, 0, 28, 5658, 80471854, 818700d8}
get_data = {564d5868, 0, 28, 5658, 80471854, 818700d8} vmmouse_get_status()
set_data = {0, 0, 28, 5658, 80471854, 818700d8}

It seems to vmware stuff is affected universally. I'm going to try to narrow down an SVN commit tomorrow, if I can get some time...

Thanks.

#7 lore raw
In reply to andrzej zaborowski
Quoted 51 lines · andrzej zaborowski

2009/1/29 Anthony Liguori <[email protected]>:

Quoted 49 lines
Quoted 38 lines · Rick Vernam
Quoted 35 lines · you

In article <[email protected]> you write:

Quoted 16 lines

For the past few days (10-15, longer?) both my windows vms seem to have broken mice - the mouse cursor does not move in the guest... Both guests run windows (2k,xp) and both have vmware mouse driver installed (not sure which version, off the top of my head).

I've not followed the list too closely during this time period either - in
trying to catch up tonight I haven't seen anything on this subject, so I'm
posting to see if this is a known issue...

I built qemu with DEBUG_VMMOUSE turned on in hw/vmmouse.c. When I run qemu I get a single vmmouse_init right when qemu starts, but then no additional output.

Quoted 7 lines

Perhaps this is a separate issue, but when I "usb_add tablet" the mouse cursor becomes constrained to the upper left corner of the guests' screen.

Any ideas about what might be going on?
Thanks

`It's dead, Jim!' ;)

Yeah, I had reported vmmouse brokenness before (for linux guests):

       http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg01061.html

I guess its good (in a way) you confirm its broken for windows
guests too...

Quoted 7 lines
Quoted 2 lines

Juergen

It seems the brokenness extends beyond the mouse - the arrow keys on the keyboard are not behaving correctly either, although the arrows on the keypad are working correctly.

Arrow keys are a separate problem. I wasn't aware that vmmouse was having problems. Does anyone know what changeset broke it?

Hum. Should I Cc you (Anthony) next time I report a regression?

Quoted 1 line

I hit the issue with the generic tablet. Hopefully fixed it in r6476.

Yup, vmmouse is back to working order now; -vga vmware is still
broken tho.

Oh and I just tried -usbdevice tablet with my usual sidux iso guest,
and unlike with vmmouse, the guest cursor wasnt warped to the right position when the host cursor entered the qemu window... does that work for anywone else?

Cheers,
Juergen