From: Juergen Keil <jk@tools.de>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Improper mouse reset handling
Date: Fri, 5 Aug 2005 11:15:48 +0200 (CEST) [thread overview]
Message-ID: <200508050915.j759Fl1N003463@imap3.tools.intra> (raw)
> While tracking down a problem with getting X to work with the VNC
> version of Qemu I discovered a problem in the way the Qemu mouse
> emulation was handling mouse reset commands. Turns out, the emulation
> code is a little over aggressive in dealing with reset commands for the
> mouse. Since there are commands that enable and disable the mouse the
> emulator, quite properly, provides this control. Unfortunately, the
> emulator also interprets either a `reset' or `set to default' command to
> also disable the mouse. This is wrong, neither of these commands are
> supposed to affect the enabled status of the mouse
Huh?
Can you provide a pointer to a specification that `reset' or `set to
default' must not change the state of "Data Reporting
enabled/disabled"?
According to <URL:http://www.computer-engineering.org/ps2mouse/>,
Section "Reset Mode", a `reset' command is supposed to set the "Data
Reporting" to its default value, and the default value is "Data
Reporting disabled"! That is, qemu's `reset' and `set to default'
implementation appears to be perfectly ok, as it is now.
> so that, when X sends
> a `reset', no futher mouse data is sent, making it look like X is hung.
Why does X (the mouse driver?) send mouse resets? Any why doesn't it
enable data reporting afterwards? Isn't this a mouse driver problem in
your X server?
Btw. in my Solaris x86 PS/2 wheel mouse driver I've always sent an
"enable" command after sending "reset" commands to the mouse, like
this:
/*
* reset the mouse (restores to the standard ps/2 mouse protocol),
* probe for (and enable) the wheel mouse protocol, and enable the
* mouse.
*/
if ((error = psm_reset(softstate)) ||
(error = psm_protocol(softstate)) ||
(error = psm_config(softstate)) ||
(error = psm_enable(softstate, 1)))
{
qprocsoff(rq);
return error;
}
next reply other threads:[~2005-08-05 9:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-05 9:15 Juergen Keil [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-08-05 15:21 [Qemu-devel] Improper mouse reset handling Dugger, Donald D
2005-08-04 23:21 Dugger, Donald D
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200508050915.j759Fl1N003463@imap3.tools.intra \
--to=jk@tools.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).