From: Kevin Hendricks <khendricks@ivey.uwo.ca>
To: Paul Mackerras <paulus@linuxcare.com>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Patch to fix imps2 emulation for usb mice in stable 2.2.X series
Date: Sat, 4 Mar 2000 09:09:54 -0500 [thread overview]
Message-ID: <00030409183800.00482@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 1615 bytes --]
Hi Paul,
According to the XFree 4.0 developers bit 3 in the first character from all
imps/2 mice must be set. This was not the case in early 2.3.X kernels but this
bug was found and fixed in later 2.3.XX kernels.
The Xfree 4.0 Xserver uses this fact to determine if characters read from a
imps/2 mouse are out-of-sync or not.
Because our 2.2.X kernel usb mouse.c code never properly sets this bit in the
first character, the XFree 4.0 Xservers are throwing out the first character
read from the mouse umaking for mouse mayhem.
Will you please install this patch into the 2.2.X stable kernel series? It
will make our imps2 usb mouse properly follow the conventions for imps2 mice
and make it more like what the 2.3.XX kernels are doing right now
I have tried this patch with the latest XFree 3.9.18 Xserver, and with Xpmac
(rev 9) and an older Mac-On-Linux and it does not cause any problems.
Thanks.
Kevin
--- drivers/usb/mouse.c.prev Fri Mar 3 17:18:37 2000
+++ drivers/usb/mouse.c Fri Mar 3 17:19:56 2000
@@ -183,6 +183,7 @@
switch (state) {
case 0: { /* buttons and sign */
int buttons = mouse->buttons;
+ buttons = buttons | 0x08; // set bit 3 to fit imps/2
mouse->buttons = 0;
if (mouse->dx < 0)
buttons |= 0x10;
p.s. In case the e-mail mangles this, I have attached the patch as a file also.
Thanks,
Kevin
--
Kevin B. Hendricks
Associate Professor of Operations and Information Technology
Richard Ivey School of Business, University of Western Ontario
London, Ontario N6A-3K7 CANADA
khendricks@ivey.uwo.ca, (519) 661-3874, fax: 519-661-3959
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: usb_imps2.patch --]
[-- Type: text/x-c++; name="usb_imps2.patch", Size: 360 bytes --]
--- drivers/usb/mouse.c.prev Fri Mar 3 17:18:37 2000
+++ drivers/usb/mouse.c Fri Mar 3 17:19:56 2000
@@ -183,6 +183,7 @@
switch (state) {
case 0: { /* buttons and sign */
int buttons = mouse->buttons;
+ buttons = buttons | 0x08; // set bit 3 to fit imps/2
mouse->buttons = 0;
if (mouse->dx < 0)
buttons |= 0x10;
next reply other threads:[~2000-03-04 14:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-04 14:09 Kevin Hendricks [this message]
2000-03-04 18:18 ` Patch to fix imps2 emulation for usb mice in stable 2.2.X series Michael Schmitz
2000-03-06 7:25 ` Paul Mackerras
2000-03-06 13:02 ` Michael Schmitz
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=00030409183800.00482@localhost.localdomain \
--to=khendricks@ivey.uwo.ca \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=paulus@linuxcare.com \
/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).