[ltp] Support both PS/2 and USB mice in XFree 4.0.3?

John Morris linux-thinkpad@www.bm-soft.com
Thu, 10 May 2001 20:50:13 -0500 (CDT)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 11 May 2001, Anders Andersson wrote:

> On Thu, May 10, 2001 at 04:38:57PM -0700, robert@elastica.com wrote:
> > Under Win2k I can use either my PS/2 (a21p) or Wheel Mouse Optical
> > interchangeably at any time.
> >
> > Is it possible do this in XFree 4.0.3?
>
> Yes, just add one more "InputDevice" in your XF86Config.

Another option is to feed everything through gpm with it's multiple device
capability.  Being a command prompt junkie I want the same mouse options
on the console as in X so that's the way I attacked the problem.  Here are
the changed lines in /etc/rc.d/init.d/gpm to get both the internal pointer
and an optional USB mouse working under RH7.1 on my TP570E:

# Added 01/04/26 by JMM
# Must load up the USB mouse driver because if no external mouse is present
# gpm will fail to load, thus no pointer anywhere.
                modprobe mousedev
                daemon gpm -t ps2 /dev/mouse -M -t ps2 -m /dev/input/mice
#               daemon gpm $OPTIONS -t $MOUSETYPE -m $DEVICE

And here is the InputDevice stanza for /etc/X11/XF86Config-4

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "MouseSystems"
        Option      "Device" "/dev/gpmdata"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "no"
EndSection


- -- 
John M.      http://www.beau.org/~jmorris        This post is 100% M$ Free!
Geek code 3.0:GCS C+++ UL++++$ P++ L+++ W++ N++ w--- Y+ 5+++ R tv- b++ e* r
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iEYEARECAAYFAjr7RVgACgkQqME6bvnsqA/LcgCg3dRYr6BQxeCJt2Zo8dbGP3YD
gCYAoI8U1VGapaWWXkSKFAQEQ5snpaY/
=hkGg
-----END PGP SIGNATURE-----



----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html