home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9343 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  3.9 KB

  1. Path: sparky!uunet!cs.utexas.edu!uwm.edu!rutgers!concert!rock!cole
  2. From: cole@concert.net (Derrick C. Cole)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Microsoft Bus mouse works, sorta
  5. Keywords: microsoft, bus
  6. Message-ID: <1992Aug29.143502.10976@rock.concert.net>
  7. Date: 29 Aug 92 14:35:02 GMT
  8. References: <67043@hydra.gatech.EDU>
  9. Sender: news@rock.concert.net
  10. Organization: MCNC Data Operations
  11. Lines: 77
  12.  
  13. In article <67043@hydra.gatech.EDU> gt6698a@prism.gatech.EDU (Andrew Hobson) writes:
  14. >
  15. >Greets!
  16. >
  17. >I have an ATI VGA Wonder XL and I have a microsoft mouse plugged in the 
  18. >bus port. (It is on the VGA card)  Rik Faith (faith@cs.unc.edu) has
  19. >written a X386 for ATI cards and it works great, I think. 
  20. >
  21. >I received mail from Derrick C. Cole <cole@concert.net> when I posted
  22. >previously about getting the microsoft bus mouse to work.  He mailed
  23. >me a patch by Frank ten Wolde (franky@duteca.et.tudelft.nl). 
  24. >I have modified this patch and the existing mouse.c by
  25. >James Banks, David Giller, and Nathan Laredo (Thanks for the help,
  26. >Nathan!!!)
  27. >
  28. >I have made modifications to mouse.c so that a microsoft mouse will 
  29. >work.  Essentially, these changes were only to the mouse_interrupt 
  30. >function and should not have affected anything else.  If I run X, then 
  31. >my mouse will not work, even though I am pretty sure that the mouse 
  32. >driver works.  (I put printk's inside the driver, and I modified the 
  33. >mouse test program that comes with X for use with a bus mouse and it
  34. >works)  If I run a program that does an ioperm(port,1,1) for all 
  35. >four of the port addresses, and then run X, I can use the mouse 
  36. >until the xterm comes up.  Then, as long as I hold down a key 
  37. >(on the keyboard), the mouse works.  If I do not hold down a key, 
  38. >then move the mouse, and then press a key, the mouse will jump 
  39. >to a new location, about where it should have moved.  (I have no 
  40. >way of telling exactly where it should have moved.)  If I get 
  41. >rid of the Xterm and Xclock, I still cannot use the mouse, 
  42. >except by pressing down a key.  Pressing a mouse button does not 
  43. >register, unless the mouse is moved.  Using the mouse program that came with X, if I press a button, then new information
  44. >is printed on the screen, but is is the same information as before until
  45. >I move the mouse. 
  46. >
  47. >I guess I need some testers to see if the problem is with the ATI
  48. >X or with my code.  
  49. >
  50. >I have sent mail to Rik Faith about this, as well, so hopefully this 
  51. >can be resolved.  I would really like to not have to press a key
  52. >to use my mouse in X!!
  53. >
  54. >Thanks alot for any help you can give me. I will include copies of my 
  55. >/usr/src/linux/kernel/chr_drv/mouse.c and 
  56. >/usr/src/linux/include/linux/mouse.h files.   I don't think that I have
  57. >changed mouse.h. I can't post a patch because
  58. >I am not sure I have the original I have done so many changes!!
  59. >
  60. >Andrew Hobson
  61.  
  62. I may have some good news (for a change :) !)
  63.  
  64. Teemu Rantanen (tvr@cs.hut.fi) posted some code that he says works with a
  65. Microsoft busmouse to nic.funet.fi (see his article.)  I patched it in, but
  66. nothing happened (not even a keypress would induce anything.)
  67.  
  68. I then proceeded to look at Teemu's code, the kernel-supplied driver, and the
  69. Frank ten Wolde patch mentioned above and after about 30 minutes of hacking
  70. and chopping, I managed to get the mouse to work (no keypress required!)
  71.  
  72. I like the way Teemu folded the Microsoft driver into the scheme of the kernel.
  73. I've got just about got everything cleaned up, and I'll post my version on
  74. tsx-11 and nic.funet.fi probably this afternoon.  Please test it out and let
  75. me/the net know how/if it works!
  76.  
  77. I appreciate all (Frank, Andrew, Teemu, and everybody else) who has worked on
  78. this.  I hope this code at least gets us closer to a working driver, if not the
  79. driver itself!
  80.  
  81. Thanks,
  82. Derrick
  83.  
  84. P.S.  The only thing I've no clue on is how do you detect a bus mouse?  The
  85.       ideal driver should generically check for one (if defined.)
  86.  
  87. -- 
  88. ---
  89. Derrick Cole                                  MCNC Center for Communications
  90.