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