You are not logged in.

#1 2010-01-04 18:54:47

kYd
Member
Registered: 2009-01-20
Posts: 78

Multiple 'mice' sections in xorg.conf

Hey,

I have my netbook touchpad mouse set up fine in xorg.conf, I have just bought a USB mouse which works ok but I need to adjust the speed settings and such; how would I go about doing this without causing any conflicts with my touchpad mouse.

#######
Section "ServerLayout"
    Identifier     "X.org Configured"
    InputDevice    "Touchpad"  "SendCoreEvents"
    Option "XkbLayout"  "uk"
EndSection
#######

#TOUCHPAD MOUSE
#######
Section "InputDevice"
   Identifier  "Touchpad"
   Driver      "synaptics"
   Option      "AlwaysCore"        "true"  # send events to CorePointer
  #Option      "Device"            "/dev/input/mice"
   Option      "Device"            "/dev/psaux"
   Option      "Protocol"          "auto-dev"
   Option      "SHMConfig"         "false" # configurable at runtime? security risk
   Option      "LeftEdge"          "1700"  # x coord left
   Option      "RightEdge"         "5300"  # x coord right
   Option      "TopEdge"           "1700"  # y coord top
   Option      "BottomEdge"        "4200"  # y coord bottom
   Option      "FingerLow"         "25"    # pressure below this level triggers release
   Option      "FingerHigh"        "30"    # pressure above this level triggers touch
   Option      "MaxTapTime"        "180"   # max time in ms for detecting tap
   Option      "VertEdgeScroll"    "true"  # enable vertical scroll zone
   Option      "CornerCoasting"    "true"  # enable continuous scroll with finger in corner
   Option      "CoastingSpeed"     "0.30"  # corner coasting speed
   Option      "VertScrollDelta"   "100"   # edge-to-edge scroll distance of the vertical scroll
   Option      "MinSpeed"          "0.2"  # speed factor for low pointer movement
   Option      "MaxSpeed"          "0.45"  # maximum speed factor for fast pointer movement
   Option      "AccelFactor"       "0.0025"    # acceleration factor for normal pointer movements
   Option      "TapButton1" "1"
   Option      "TapButton2" "2"
   Option      "TapButton3" "3"
EndSection
#######

How would I add my USB mouse settings in here?

Last edited by kYd (2010-01-04 18:55:54)

Offline

#2 2010-01-04 19:43:46

muunleit
Member
From: Germany
Registered: 2008-02-23
Posts: 234

Re: Multiple 'mice' sections in xorg.conf

You could make a second layout with your second mice and start xorg with one -layout or the other.

You could place something like the following in a xorg-start-script

if [[ $(lsusb) =~ "USBMouse" ]]; then
        xinit -- -layout usbmouse -nolisten tcp
fi

I did it with this xorg.conf

Section "ServerLayout"
    Identifier    "Laptop"
    Screen    0     "Screen" 0 0
    InputDevice    "Touchpad" "CorePointer"
EndSection

Section "ServerLayout"
    Identifier    "wTrackball"
    Screen    0     "Screen" 0 0
    InputDevice    "Trackball" "CorePointer"
EndSection

Section "InputDevice"
    Identifier    "Touchpad"
    Driver      "synaptics"
    Option       "Protocol" "auto-dev"
    Option      "TapButton1" "1" 
EndSection

Section "InputDevice"
    Identifier     "Trackball"
    Driver       "mouse"
    Option      "Protocol" "ExplorerPS/2"
    Option      "Protocol" "Logitech"
    Option      "Device" "/dev/input/mice"
    Option      "EmulateWheel" "true"
    Option      "EmulateWheelButton" "8"
    Option      "XAxisMapping" "6 7"
    Option         "ButtonMapping" "3 9 1 8 2"
EndSection

Section "InputDevice"
    Identifier "Keyboard"
    Driver "kbd"
    Option "XkbRules" "xorg"
    Option "XkbLayout" "us, de"
    Option "XkbOptions" "grp:caps_toggle"
EndSection

Last edited by muunleit (2010-01-04 19:45:28)


"The mind can make a heaven out of hell or a hell out of heaven" -- John Milton

Offline

Board footer

Powered by FluxBB