[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Two mouses in X.
- To: The Rabbit of Vugluskr <Rabbit(at-nospam)vugluskr.com>
- Subject: Re: Two mouses in X.
- From: "Nadav Har'El" <nyh(at-nospam)math.technion.ac.il>
- Date: Wed, 12 Dec 2001 00:18:53 +0200
- Cc: linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Hebrew-Date: 27 Kislev 5762
- In-Reply-To: <200112112117.fBBLH8B02688@genie.magnifire.com>; from Rabbit@vugluskr.com on Tue, Dec 11, 2001 at 11:26:40PM +0200
- References: <200112112117.fBBLH8B02688@genie.magnifire.com>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mutt/1.2i
On Tue, Dec 11, 2001, The Rabbit of Vugluskr wrote about "Two mouses in X.":
> IBM laptop with "native" mouse (I don't remember how it's called, the red
> button people sometimes call "dagdegan":-)) recognized as Generic PS/2
> (/dev/psaux) and USB mouse (/dev/input/mice). X works perfectly with both, of
> couse, but my purpose is make the user able to unplug USB mouse and continue
> working with "red button" "on the fly". OS - RH7.2
You can perhaps try to have both mice work all the time (even when the USB
mouse is plugged in), by having two mice. Look at your XF86Config-4 file:
it has parts looking like:
Section "ServerLayout"
.
InputDevice "Mouse0" "CorePointer"
.
EndSection
..
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "imPS/2"
Option "Emulate3Buttons" "off"
Option "ZAxisMapping" "4 5"
EndSection
You can add another mouse, Mouse1 (with a different "Device" option),
and then say that Mouse1 is an alternate pointer on that InputDevice line.
I don't remember the exact syntax - maybe you should read the docs or maybe
someone else can give a working example - but I tried it once and it worked:
I got both a PS2 mouse and a USB mouse to work on the same system concurrently.
I could even have the mice "fight" each other - you move the two mice, and
see which way the pointer ends up moving (obviously, even with two mice
you only end up with one pointer).
--
Nadav Har'El | Wednesday, Dec 12 2001, 27 Kislev 5762
nyh@math.technion.ac.il |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Tact is the art of making a point without
http://nadav.harel.org.il |making an enemy.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il