home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!prism!gt7080a
- From: gt7080a@prism.gatech.EDU (Nathan Laredo)
- Newsgroups: comp.os.linux
- Subject: Re: Microsoft Busmouse patch for 0.97pl4
- Message-ID: <67928@hydra.gatech.EDU>
- Date: 10 Sep 92 04:54:13 GMT
- References: <8qZuqB1w164w@q106fm.UUCP>
- Organization: Georgia Institute of Technology
- Lines: 45
-
- (I'm posting this just because I can't reply to the above address...
- and maybe someone else might enjoy knowing this tidbit)
-
- In article <8qZuqB1w164w@q106fm.UUCP> pete@q106fm.UUCP (pete cervasio) writes:
- >With this patch, the minor devices for bus mice are:
- >
- > 0 - Logitech
- > 1 - PS/2 style mouse
- > 2 - Microsoft
-
- Yes, and I just installed this patch... using it now... I can verify
- that my logitech mouse doesn't like being accessed as 10 2 but as 10 0
- there seem to be no problems whatsoever with the added code. I don't
- notice any difference in speed at all... And aside from not being able
- to specifically detect a microsoft mouse (as predicted, it will tell me
- "Logitech bus mouse detected and installed" and "Microsoft bus mouse detected
- and installed" and of course "No ps/2-style pointing device found") it
- seems pretty clean.
-
- I don't know if this would work, but I did think of one way to tell a
- microsoft from logitech bus mouse after you find the bus mouse signature:
- (of course this is completely speculative and untested as usual)
-
- since the control port for the logitech mouse is at 0x23e and the data port
- is at 0x23c, but on the microsoft mouse the control is at 0x23c and data at
- 0x23d, that could be used to discriminate between the two types of mice.
-
- Since the microsoft mouse seemingly has nothing at 0x23e it shouldn't hurt
- to write there, and since the microsoft's control port is at 0x23c you
- wouldn't expect any data there. The init code could then safely write
- some command to 23e and wait for a while to see the desired response from
- the data port at 23c. After some timeout, it's assumed that if the
- desired response hasn't shown itself, the mouse is microsoft... otherwise
- it's logitech. A good test might be to ask for a movement report.
-
- Voila... instant discrimination. (hey, isn't that supposed to be something
- to avoid in life :)
-
- -Nathan
-
- --
- |Nathan I. Laredo (this spot $9) gt7080a@prism.gatech.edu|tb |
- |Georgia Institute of Technology, Atlanta, Georgia, 30332|njnl! |
- |An ever clever quote: "A grouch escapes so many little|npx, |
- |annoyances that it almost pays to be one." -- Kin Bubbard|csssg!|
-