home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!mailgzrz.TU-Berlin.DE!math.fu-berlin.de!Sirius.dfn.de!tubsibr!infbssys!eis.cs.tu-bs.de!andersen
- From: andersen@eis.cs.tu-bs.de (Kai Andersen)
- Subject: Re: HELP - How can I activate my middle mousebutton?
- Message-ID: <1992Dec16.182141.11938@ips.cs.tu-bs.de>
- Sender: news@ips.cs.tu-bs.de (News Software)
- Nntp-Posting-Host: ss11.eis.cs.tu-bs.de
- Organization: TU Braunschweig,Informatik,EIS,West Germany
- References: <1992Dec14.093935.29645@ips.cs.tu-bs.de>
- Date: Wed, 16 Dec 1992 18:21:41 GMT
- Lines: 95
-
- I got a solution for this problem via mail.
- I think it is so important, that I post this followup.
-
- Some additional notes:
- You must start this tiny program in the xinitrc. Tries to call
- this program before (e.g. in the /etc/rc) didn't work.
- Also it must call again, when you exit and restart X11.
-
- Perhapst somebody can post me, what happen exactly. How works
- a 3-button-mouse and how a 2-button-mouse?
-
- Bye,
- Kai Andersen.
-
- But now the solution, that I got:
-
- ----
-
- From rocket.sanders.com!nation@rocket.sanders.lockheed.com Mon Dec 14 19:57:26 1992
- Return-Path: <rocket.sanders.com!nation@rocket.sanders.lockheed.com>
- Received: from relay2.UU.NET by bseis.eis.cs.tu-bs.de (4.1/SMI-4.1)
- id AA13232; Mon, 14 Dec 92 19:57:23 +0100
- Received: from uunet.uu.net (via LOCALHOST.UU.NET) by relay2.UU.NET with SMTP
- (5.61/UUNET-internet-primary) id AA17090; Mon, 14 Dec 92 10:35:21 -0500
- Received: from rocket.UUCP by uunet.uu.net with UUCP/RMAIL
- (queueing-rmail) id 103418.19821; Mon, 14 Dec 1992 10:34:18 EST
- Received: from dopey.sanders.lockheed.com.spcot by rocket.sanders.com (4.1/SMI-4.1)
- id AA18078; Mon, 14 Dec 92 10:30:47 EST
- Date: Mon, 14 Dec 92 10:30:47 EST
- From: nation@rocket.sanders.com (Robert Nation)
- Message-Id: <9212141530.AA18078@rocket.sanders.com>
- To: andersen@eis.cs.tu-bs.de
- Subject: # button mouse with Linux/X
- Status: OR
-
- Maybe this will help you:
-
- Here's how I got my three button microsoft-compatible mouse working
- in 3 button mode:
-
- 1. Change the mouse type to mousesystems in xconfig
-
- Mousesystems "/dev/ttys1"
- BaudRate 1200
- # SampleRate 150
- # Emulate3Buttons
-
- 2. Compile this program, and call it /usr/bin/mouse3:
-
- #include <assert.h>
- #include <unistd.h>
- #include <fcntl.h>
- #include <sys/ioctl.h>
- #include <linux/termios.h>
-
- void main(int argc, char **argv)
- {
- int fd;
- int val;
- if(argc!=2)
- {
- printf("Usage: mouse3 device\n");
- exit(1);
- }
-
-
- assert(fd=open(argv[1],O_RDWR|O_NDELAY));
- val=0;
- ioctl(fd,TIOCMSET,&val);
-
- }
-
- 3. Add this lines to /usr/lib/X11/xinit/xinitrc:
-
- xterm -geometry 80x34+0+0 -C -T Console -e /bin/bash&
- /usr/bin/mouse3 /dev/ttys1 <----this is the addtition
- exec twm
-
- ----> (Additional note: call it early, as the first program)
-
- 4. Startx.
-
- I really don't know quite why it works, but why complain? It seems that
- the microsoft 3 button mouse looks like a mousesystems mouse when its in
- 3 button mode. Also to switch it to three button mode, you need to do
- whatever the mouse3 program does, but you have to do it after X gets
- started, since it seems that X's startup code undoes the effect required
- to get into 3 button mode.
-
- ----> (Additional note: At the beginning of the first movement, the mouse
- get crazy, but it's normal).
-
- Regards,
- Rob Nation
- Lockheed-Sanders
-