You are not logged in.

#1 2009-10-19 17:13:17

rab
Member
Registered: 2006-06-15
Posts: 185

[SOLVED] Disable touchpad via UDEV disables wireless mouse

Hey, I have a synaptics touch pad, usb wireless mouse and UDEV rules via wiki to disable the synaptics touchpad when the usb mouse is plugged in.  However, when I plug in the usb mouse it is disabled along with the touchpad.  I can do cat /dev/input/mouse2 and see the events sent from the wireless mouse.

Xorg

Section "ServerLayout"
    Identifier     "Arch Linux"
    Screen      0  "Screen0"
    InputDevice    "keyboard"
    InputDevice    "usbmouse"
    InputDevice    "synaptics"
EndSection
...
Section "InputDevice"
    Identifier  "usbmouse"
    Driver      "mouse"
    Option        "Device" "/dev/input/mouse2"
    Option        "Protocol" "IMPS/2"
    Option        "Emulate3Buttons" "yes"
    Option        "ZAxisMapping" "4 5"
    Option        "CorePointer"
    Option        "SendCoreEvents" "yes"
#    Option       "SHMConfig" "on"
EndSection

Section "InputDevice"
    Identifier  "synaptics"
    Driver      "synaptics"
    Option      "Device"           "/dev/input/mouse1"
#    Option      "Protocol"         "auto-dev"
#    Option      "LeftEdge"         "60"
#    Option      "RightEdge"        "1070"
#    Option      "TopEdge"          "90"
#    Option      "BottomEdge"       "680"
#    Option      "PalmDetect"       "0"
    Option      "SHMConfig"        "true"
    Option      "SendCoreEvents"   "yes"    
#    Option      "HorizEdgeScroll"  "1"
#    Option      "VertEdgeScroll"   "1"  
#    Option      "RBCornerButton"   "0"
#    Option      "RTCornerButton"   "0"
    Option      "MaxSpeed"         "0.9"

  # You will also need the following 3 lines if you're using Xorg 1.5RC6 or newer
    Option      "TapButton1"       "1"
    Option      "TapButton2"       "2"
    Option      "TapButton3"       "3"
EndSection

01-touchpad.rules

ACTION=="add", SUBSYSTEM=="input", ENV{ID_CLASS}="mouse", RUN+="/usr/bin/synclient -s TouchpadOff=1"
ACTION=="remove", SUBSYSTEM=="input", ENV{ID_CLASS}="mouse", RUN+="/usr/bin/synclient -s TouchpadOff=0"

Thanks!

Last edited by rab (2009-10-19 18:13:44)


rawr

Offline

#2 2009-10-19 18:12:49

rab
Member
Registered: 2006-06-15
Posts: 185

Re: [SOLVED] Disable touchpad via UDEV disables wireless mouse

Bah, fixed it.  usbmouse had to be set to /dev/input/mice


rawr

Offline

#3 2009-12-30 08:07:23

alexmatos
Member
From: Rio de Janeiro, Brasil
Registered: 2007-08-06
Posts: 124

Re: [SOLVED] Disable touchpad via UDEV disables wireless mouse

rab wrote:

Bah, fixed it.  usbmouse had to be set to /dev/input/mice

Does anyone knows how can I fix this using a HAL .fdi instead of xorg.conf?

Thanks in advance,
Alex Tercete

Offline

#4 2010-02-11 14:17:41

hypnoPD
Member
Registered: 2009-03-24
Posts: 1

Re: [SOLVED] Disable touchpad via UDEV disables wireless mouse

How to disable automatical touchpad when USB mouse has been connected already? No in xorg.conf ? Some idea ? Thanks.

Offline

Board footer

Powered by FluxBB