Re: Adding/removing mice dynamically

From: Robert Grizzard (grizzarv_at_mindspring.com.invalid)
Date: 05/13/04

  • Next message: Stefan Monnier: "Re: Adding/removing mice dynamically"
    Date: Wed, 12 May 2004 23:26:51 GMT
    
    

    Stefan Monnier <monnier@iro.umontreal.ca> wrote:

    > >> I'm having the following problems with my Thinkpad laptop running Debian
    > >> The trackpoint thingy appears as "the PS/2 mouse" normally, and is
    > >> disabled if I plug a PS/2 mouse. My PS/2 mouse is actually an ImPS/2
    > >> mouse (with a wheel). Currently, I've set the protocol type to "PS/2"
    > >> which indeed works for both types, but then the wheel doesn't work.
    > >> Setting it to "ImPS/2" breaks the trackpoint.

    > > On Thinkpads, the Trackpoint and the PS/2 mouse port share data lines.
    > > The Trackpoint uses the PS/2 protocol. Having 2 mice using 2 different
    > > protocols on the same data lines just doesn't work very well under X.
    > > I think you'll have to set the protocol to PS/2, disable the Trackpoint
    > > and just use the mouse, or buy yourself a USB mouse.

    > I hate to say it but XP handles it just fine, so there's gotta be a way.
    > Note that it's not as fancy as it sounds: I have to put the computer to
    > sleep (or some such) after I plug or unplug the mouse for XP to
    > react to the change, but that's a very mild annoyance.

    Still, an annoyance.

    Try this:

    # From: Owen Taylor
    # Date: 07 Jan 2002 11:37:51 -0500
    # Subject: Better support for mixed PS/2 and USB mice

    # Just noticed that Alex and I both had "fixed" our XF86Config in
    # the following way, when we were helping Jonathan to do the same
    # thing.
    #
    # If you want to be able to hot-plug an external USB mouse in
    # confunction with the internal "mouse" of a laptop, instead
    # of having Kudzu rewrite the XF86Config when it detects
    # a USB mouse, set up both mice in the XF86Config:
    #
    # Section "InputDevice"
    # Identifier "Mouse0"
    # Driver "mouse"
    # Option "Device" "/dev/mouse"
    # Option "Protocol" "PS/2"
    # Option "Emulate3Buttons" "off"
    # Option "ZAxisMapping" "4 5"
    # EndSection
    #
    # Section "InputDevice"
    # Identifier "Mouse1"
    # Driver "mouse"
    # Option "Device" "/dev/input/mice"
    # Option "Protocol" "ImPS/2"
    # Option "Emulate3Buttons" "off"
    # Option "ZAxisMapping" "4 5"
    # EndSection
    #
    # Then in the ServerLayout section put:
    #
    # InputDevice "Mouse0" "CorePointer"
    # InputDevice "Mouse1" "SendCoreEvents"
    #
    # I don't see why we can't always set up our XF86Config this way.
    #
    # Regards,
    # Owen

    ISTR I could hotplug the USB mouse and have it work.

    HTH

    [snip]

    -- 
    To design the perfect anti-Unix, write an operating system that thinks
    it knows what you're doing better than you do. And then adds injury to
    insult by getting it wrong.
     - esr
    

  • Next message: Stefan Monnier: "Re: Adding/removing mice dynamically"
  • Quantcast