home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10340 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  2.4 KB

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