X server, touchpad, mouse

Gary Dunn knowtree at aloha.com
Fri Apr 11 01:53:10 PDT 2003


On Sat, 5 Apr 2003 11:59:37 +0200
Christoph Kukulies <kuku at physik.rwth-aachen.de> wrote:

> When I run X (FreeBSD 5.0R, XFree86 4.?.?) and use the touchpad,
> everything's fine. Do I plug in the mouse later, the cursor freezes
> and the current session becomes unusable.
> 
> Is there a way to handle this smoothly? Needless to say that Windows
> 2000 or ME handles this no problem. This ain't X, OTOH :-)

I have XFree86-4 running on Mandrake Linux on a Sony VAIO PCG-SR7K. This
laptop has a touchpad and a USB mouse. With a "standard" configuration I
could only use the USB mouse when it was plugged in during boot-up.
Someone suggested some modifications to /etc/X11/XF86Config-4 and with
those I can hot-plug the USB mouse at any time. Below are two relevant
sections from that file. Mouse1 is the touchpad, Mouse2 is the USB mouse.
I don't know if "/dev/input/mice" is a valid device on FreeBSD.

# **********************************************************************
# Pointer section
# **********************************************************************

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/mouse"
    Option "Emulate3Buttons"
    Option "Emulate3Timeout" "50"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection

Section "InputDevice"
	Identifier  "Mouse2"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	# Option	    "Device" "/dev/usbmouse"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5"
EndSection

... later, at the end of the file:

Section "ServerLayout"
	Identifier     "layout1"
 	Screen         "screen1" 0 0
	Option	       "Xinerama" "on"
	InputDevice    "Mouse1" "CorePointer"
	InputDevice    "Mouse2" "SendCoreEvents"
	InputDevice    "Keyboard1" "CoreKeyboard"
EndSection


-- 

           _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
          _/                                     _/
         _/  Gary Dunn                          _/
        _/  Open Slate Project                 _/
       _/  http://openslate.sourceforge.net/  _/
      _/  http://www.aloha.com/~knowtree/    _/
     _/  Honolulu                           _/
    _/  registered Linux user #273809      _/
   _/                                     _/
  _/  This tagline is umop apisdn.       _/
 _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/


More information about the freebsd-mobile mailing list