All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] mouse freeze (related to new wheel mouse support?)
@ 2005-01-26 21:16 Fred
  2005-01-27  0:12 ` Jim C. Brown
  2005-01-27 17:15 ` Volker Ruppert
  0 siblings, 2 replies; 6+ messages in thread
From: Fred @ 2005-01-26 21:16 UTC (permalink / raw)
  To: qemu-devel

qemu CVS snapshot Jan 24, 2005. Linux host, Windows 2000 guest.

-Start qemu. Mouse works okay.
-Reboot the guest OS: Windows Start menu -> Shutdown -> Reboot.
-When Windows comes back up, the mouse cursor does not respond.

-Start qemu. Mouse works okay.
-Reboot the guest OS: Windows Start menu -> Shutdown -> Shutdown, then 
"system_reset" in qemu console.
-When Windows comes back up, the mouse cursor does not respond.

This did not happen with the Jan 4 CVS snapshot. Could this problem be 
related to the new wheel mouse support? Sorry, I cannot fix this myself.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] mouse freeze (related to new wheel mouse support?)
  2005-01-26 21:16 [Qemu-devel] mouse freeze (related to new wheel mouse support?) Fred
@ 2005-01-27  0:12 ` Jim C. Brown
  2005-01-27 17:15 ` Volker Ruppert
  1 sibling, 0 replies; 6+ messages in thread
From: Jim C. Brown @ 2005-01-27  0:12 UTC (permalink / raw)
  To: qemu-devel

On Wed, Jan 26, 2005 at 04:16:34PM -0500, Fred wrote:
> qemu CVS snapshot Jan 24, 2005. Linux host, Windows 2000 guest.
> 
> -Start qemu. Mouse works okay.
> -Reboot the guest OS: Windows Start menu -> Shutdown -> Reboot.
> -When Windows comes back up, the mouse cursor does not respond.
> 
> -Start qemu. Mouse works okay.
> -Reboot the guest OS: Windows Start menu -> Shutdown -> Shutdown, then 
> "system_reset" in qemu console.
> -When Windows comes back up, the mouse cursor does not respond.
> 
> This did not happen with the Jan 4 CVS snapshot. Could this problem be 
> related to the new wheel mouse support? Sorry, I cannot fix this myself.
> 

It may be related. I also have this problem, but it showed up only after I
manually applied the wheelmouse patch. In my case it can also show up after
changing graphics modes repeatedly.

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] mouse freeze (related to new wheel mouse support?)
  2005-01-26 21:16 [Qemu-devel] mouse freeze (related to new wheel mouse support?) Fred
  2005-01-27  0:12 ` Jim C. Brown
@ 2005-01-27 17:15 ` Volker Ruppert
  2005-01-27 17:56   ` Lee
  2005-01-27 21:38   ` Fred
  1 sibling, 2 replies; 6+ messages in thread
From: Volker Ruppert @ 2005-01-27 17:15 UTC (permalink / raw)
  To: qemu-devel, Fred

Hi,

> -Start qemu. Mouse works okay.
> -Reboot the guest OS: Windows Start menu -> Shutdown -> Reboot.
> -When Windows comes back up, the mouse cursor does not respond.

I guess Windows 2000 enables the wheel mouse feature and the wheel is usable 
and after rebooting the device ID is wrong. I think the mouse type is 
affected by the mouse reset function (0xff). Please add this line in pckbd.c 
in the AUX_RESET section and let us know what happens:

s->mouse_type = 0;

--
Bye

Volker

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] mouse freeze (related to new wheel mouse support?)
  2005-01-27 17:15 ` Volker Ruppert
@ 2005-01-27 17:56   ` Lee
  2005-01-27 22:13     ` Fred
  2005-01-27 21:38   ` Fred
  1 sibling, 1 reply; 6+ messages in thread
From: Lee @ 2005-01-27 17:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fred

To let everyone know,

Before adding these modifications, I have noticed the mouse in windows
2000 and windows nt (after the reboot, during installation) to act
improperly, almost as if you can disconnected the mouse and reconnected
it.

> I guess Windows 2000 enables the wheel mouse feature and the wheel is
> usable
> and after rebooting the device ID is wrong. I think the mouse type is
> affected by the mouse reset function (0xff). Please add this line in
> pckbd.c
> in the AUX_RESET section and let us know what happens:
>
> s->mouse_type = 0;

I applied this line to the AUX_RESET section as well as the
AUX_SET_DEFAULT section, and it seems to work just fine now (in nt4,
havent tested w2k yet)





-- 
Lee
linuxtwidler@gmail.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] mouse freeze (related to new wheel mouse support?)
  2005-01-27 17:15 ` Volker Ruppert
  2005-01-27 17:56   ` Lee
@ 2005-01-27 21:38   ` Fred
  1 sibling, 0 replies; 6+ messages in thread
From: Fred @ 2005-01-27 21:38 UTC (permalink / raw)
  To: Volker Ruppert; +Cc: qemu-devel

On Thu, 27 Jan 2005, Volker Ruppert wrote:
> I guess Windows 2000 enables the wheel mouse feature and the wheel is usable 
> and after rebooting the device ID is wrong. I think the mouse type is 
> affected by the mouse reset function (0xff). Please add this line in pckbd.c 
> in the AUX_RESET section and let us know what happens:
> 
> s->mouse_type = 0;
...

I just tried this (patch attached below if you like it that way), and
tested it in Win2k with the two reboot scenarios I mentioned, as well as
by changing the graphics mode repeatedly. The mouse works beautifully.  
Thanks!


--- ./hw/pckbd.c.mousereset     2005-01-27 16:34:54.768465000 -0500
+++ ./hw/pckbd.c        2005-01-27 16:35:41.245835000 -0500
@@ -539,6 +539,7 @@
             s->mouse_sample_rate = 100;
             s->mouse_resolution = 2;
             s->mouse_status = 0;
+           s->mouse_type = 0;
             kbd_queue(s, AUX_ACK, 1);
             kbd_queue(s, 0xaa, 1);
             kbd_queue(s, s->mouse_type, 1);

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] mouse freeze (related to new wheel mouse support?)
  2005-01-27 17:56   ` Lee
@ 2005-01-27 22:13     ` Fred
  0 siblings, 0 replies; 6+ messages in thread
From: Fred @ 2005-01-27 22:13 UTC (permalink / raw)
  To: Lee; +Cc: qemu-devel

On Thu, 27 Jan 2005, Lee wrote:
> To let everyone know,
> 
> Before adding these modifications, I have noticed the mouse in windows
> 2000 and windows nt (after the reboot, during installation) to act
> improperly, almost as if you can disconnected the mouse and reconnected
> it.
> 
> > I guess Windows 2000 enables the wheel mouse feature and the wheel is
> > usable
> > and after rebooting the device ID is wrong. I think the mouse type is
> > affected by the mouse reset function (0xff). Please add this line in
> > pckbd.c
> > in the AUX_RESET section and let us know what happens:
> >
> > s->mouse_type = 0;
> 
> I applied this line to the AUX_RESET section as well as the
> AUX_SET_DEFAULT section, and it seems to work just fine now (in nt4,
> havent tested w2k yet)

I wasn't sure if the AUX_SET_DEFAULT section was involved, since it
doesn't have a "kbd_queue(s, s->mouse_type, 1);" statement like AUX_RESET
(should it??). I stuck a print statement in the AUX_SET_DEFAULT section,
and it was never invoked during my test in win2k, but AUX_RESET was run 4
times as win2k started up.

So I'd say just edit the AUX_RESET section (patch in previous email). 
Thanks for your help guys!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-01-27 22:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-26 21:16 [Qemu-devel] mouse freeze (related to new wheel mouse support?) Fred
2005-01-27  0:12 ` Jim C. Brown
2005-01-27 17:15 ` Volker Ruppert
2005-01-27 17:56   ` Lee
2005-01-27 22:13     ` Fred
2005-01-27 21:38   ` Fred

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.