home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16295 < prev    next >
Encoding:
Text File  |  1992-11-10  |  2.2 KB  |  62 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!gumby!destroyer!cs.ubc.ca!fs1.ee.ubc.ca!edc
  3. From: edc@ee.ubc.ca (Ed Casas)
  4. Subject: Re: Microsoft three button mouse?
  5. Message-ID: <1992Nov11.013927.13109@ee.ubc.ca>
  6. Organization: University of BC, Electrical Engineering
  7. References: <1992Nov10.164042.17579@Informatik.TU-Muenchen.DE> <30221@nntp_server.ems.cdc.com> <1dp85iINNmb5@agate.berkeley.edu>
  8. Date: Wed, 11 Nov 1992 01:39:27 GMT
  9. Lines: 51
  10.  
  11. In article <1dp85iINNmb5@agate.berkeley.edu> curtis@cs.berkeley.edu writes:
  12. >In article <30221@nntp_server.ems.cdc.com> ghart@ems.cdc.com writes:
  13. >>
  14. >>I have a similiar mouse.  It's made by Kenko.  It's limited documentation
  15. >>states that it is software configurable for both Microsoft and PC-mouse
  16. >>compatability.  I use the PC-mouse mode under DOS with no trouble.
  17. >
  18. >"PC-mouse" is Mouse Systems.  If you can find the switching code, you
  19. >should be able to set it into that mode.
  20. >
  21.  
  22. I have an ``Aamazing'' brand mouse that is ``software
  23. switchable'' but in fact (as hlu informed me) is switched by
  24. changing the level of the RTS and/or DTR lines.  (Of course, just
  25. because my mouse works this way is no guarantee they all do.)
  26.  
  27. So I made the following patch to the kernel to (un?)set these
  28. lines and thus put the mouse in Mouse Systems mode by default.
  29.  
  30.  
  31. *** serial.c    Mon Sep 28 16:42:24 1992
  32. --- serial.c.old        Mon Sep 28 16:36:40 1992
  33. ***************
  34. *** 450,462 ****
  35.                 outb_p(UART_MCR_DTR | UART_MCR_RTS, 
  36.                        UART_MCR + port);
  37.         else
  38. - #ifdef MOUSE_HACK
  39.                 outb_p(UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2, 
  40.                        UART_MCR + port);
  41. - #else
  42. -               outb_p(                              UART_MCR_OUT2, 
  43. -                      UART_MCR + port);
  44. - #endif
  45.         
  46.         /*
  47.          * Enable FIFO's if necessary
  48. --- 450,457 ----
  49.  
  50. This was just a quick hack and might break other things, so a
  51. proper solution would be to write a little utility program to set
  52. the control lines properly, doing something like:
  53.  
  54.   ioctl( fd, TIOCMBIS , TIOCM_DTR | TIOCM_RTS ) ;
  55.  
  56. I wrote such a program but it failed due to a bug in tytso's
  57. serial driver code (a bad outp() which I believe has since been
  58. corrected).
  59.  
  60. -- 
  61. Ed Casas (edc@ee.ubc.ca)
  62.