Blog karp0tt

GNU/Linux configs || Anime

Xorg && Touchpad/Mouse toggle (<xorg-server-1.5)

leave a comment »

Following should help for turning the Touchpad off, when an external mouse is connected

[~]# cat /etc/udev/rules.d/10-local.rules
ACTION==”add”, SUBSYSTEM==”input”, ENV{ID_CLASS}=”mouse”, RUN+=”/usr/bin/synclient TouchpadOff=1″
ACTION==”remove”, SUBSYSTEM==”input”, ENV{ID_CLASS}=”mouse”, RUN+=”/usr/bin/synclient TouchpadOff=0″


xorg.conf

Section “ServerLayout”
Identifier “X.org Configured”
Screen 0 “aticonfig-Screen[0]-0″ 0 0
InputDevice “Mouse0″ “CorePointer”
InputDevice “Keyboard0″ “CoreKeyboard”
InputDevice “Touchpad”
EndSection

[snip]

Section “InputDevice”
Identifier “Touchpad”
Driver “synaptics”
Option “SendCoreEvents” “true”
Option “Protocol” “auto-dev”
Option “SHMConfig” “on”
#turn on finger tap:
Option “TapButton1″ “1″
#don’t use two finger scrolling:
Option “VertTwoFingerScroll” “false”
Option “HorizTwoFingerScroll” “false”
#use edge scroll areas:
Option “VertEdgeScroll” “true”
#Option “CoastingSpeed” “2″
#set speed and accel
Option “MinSpeed” “0.20″
Option “MaxSpeed” “0.60″
Option “AccelFactor” “0.020″
EndSection

Written by body0r

March 14, 2009 at 5:15 pm

Leave a Reply