You are not logged in.

#1 2008-06-12 22:44:42

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

[solved] Disabling touchpad on plugged in mouse

Hi,

I try to do the trick defined here but it does not work.
http://wiki.archlinux.org/index.php/Syn … d_in_mouse

My xorg.conf :

# Auto-generated by Archie mkxcfg
# Auto-generated by Archie mkxcfg

Section "ServerLayout"

# PS/2 Mouse not detected
# Serial Mouse not detected
    Identifier     "Xorg Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
#    Inputdevice    "VX Nano" "CorePointer"
    InputDevice    "USB Mouse" "CorePointer"
    InputDevice    "Touchpad" "SendCoreEvents"
EndSection

Section "Files"

# Additional fonts: Locale, Gimp, TTF...
#    FontPath     "/usr/share/lib/X11/fonts/latin2/75dpi"
#    FontPath     "/usr/share/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
    RgbPath         "/usr/share/X11/rgb"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc:unscaled"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/75dpi:unscaled"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/PEX"
    FontPath        "/usr/share/fonts/cyrillic"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/ttf/western"
    FontPath        "/usr/share/fonts/ttf/decoratives"
    FontPath        "/usr/share/fonts/truetype"
    FontPath        "/usr/share/fonts/truetype/openoffice"
    FontPath        "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath        "/usr/share/fonts/latex-ttf-fonts"
    FontPath        "/usr/share/fonts/defoma/CID"
    FontPath        "/usr/share/fonts/defoma/TrueType"
EndSection

Section "Module"

#    Load           "type1"
    Load           "ddc"  # ddc probing of monitor
    Load           "dbe"
    Load           "extmod"
    Load           "glx"
    Load           "bitmap" # bitmap-fonts
    Load           "freetype"
    Load           "record"
    Load           "synaptics"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "fr-latin9"
    Option         "XkbVariant" ""
EndSection

Section "InputDevice"
    Identifier     "Serial Mouse"
    Driver         "mouse"
    Option         "Protocol" "Microsoft"
    Option         "Device" "/dev/ttyS0"
    Option         "Emulate3Buttons" "true"
    Option         "Emulate3Timeout" "70"
    Option         "SendCoreEvents" "true"
EndSection

Section "InputDevice"
    Identifier     "PS/2 Mouse"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "ZAxisMapping" "4 5"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "true"
    Option         "Emulate3Timeout" "70"
    Option         "SendCoreEvents" "true"
EndSection

Section "InputDevice"
   Identifier     "USB Mouse"
    Driver         "mouse"
    Option         "Device" "/dev/input/mice"
    Option         "SendCoreEvents" "true"
    Option         "Protocol" "IMPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Buttons" "5"
EndSection


Section "InputDevice"
    Identifier     "Touchpad"
    Driver         "synaptics"
    Option         "Device" "/dev/input/mouse0"
    Option         "Protocol" "auto-dev"
    Option         "SendCoreEvents" "true"
    Option         "LeftEdge" "1700"
    Option         "RightEdge" "5300"
    Option         "TopEdge" "1700"
    Option         "BottomEdge" "4200"
    Option         "FingerLow" "25"
    Option         "FingerHigh" "30"
    Option         "MaxTapTime" "180"
    Option         "MaxTapMove" "100"
    Option         "MaxDoubleTapTime" "100"
    Option         "TapButton1" "1"
    Option         "TapButton2" "2"
    Option         "TapButton3" "3"
    Option         "VertScrollDelta" "100"
    Option         "MinSpeed" "0.12"
    Option         "MaxSpeed" "0.3"
    Option         "AccelFactor" "0.0007"
    Option         "SHMConfig" "on"
EndSection

Section "Monitor"

 # Warning: This may fry old Monitors
 # Very conservative. May flicker.
#    VertRefresh  50.0 - 62.0 # Extreme conservative. Will flicker. TFT default.
    #  Default modes distilled from
    #      "VESA and Industry Standards and Guide for Computer Display Monitor
    #       Timing", version 1.0, revision 0.8, adopted September 17, 1998.
    #  $XFree86: xc/programs/Xserver/hw/xfree86/etc/vesamodes,v 1.4 1999/11/18 16:52:17 tsi Exp $
    # 640x350 @ 85Hz (VESA) hsync: 37.9kHz
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LCD"
    HorizSync       30.0 - 75.0
    VertRefresh     60.0
    Option         "DPMS" "true"
#    HorizSync    28.0 - 78.0 # Warning: This may fry very old Monitors
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8400M GS"
    Option "NoLogo" "True"
    Option          "TripleBuffer" "True"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "1280x800 +0+0; 800x600 +0+0; 640x480 +0+0"
    Option         "AddARGBGLXVisuals" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

Any clue ?

Last edited by Bapman (2008-07-10 01:21:33)

Offline

#2 2008-06-12 22:51:48

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: [solved] Disabling touchpad on plugged in mouse

I tried these instructions and it didn't work for me, either.


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#3 2008-06-12 23:02:13

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

Re: [solved] Disabling touchpad on plugged in mouse

Ok I solved it (I should think more before posting damn !).

In fact I have to put more details in /etc/udev/rules.d/01-touchpad.rules :

SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{manufacturer}=="Logitech", ATTRS{product}=="USB Receiver", ACTION=="add", RUN+="/usr/bin/synclient touchpadoff=1"
SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{manufacturer}=="Logitech", ATTRS{product}=="USB Receiver", ACTION=="remove", RUN+="/usr/bin/synclient touchpadoff=0"

Seems like my Logitech is not recognized as a simple USB mouse !

Offline

#4 2008-07-09 22:47:16

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

Re: [solved] Disabling touchpad on plugged in mouse

At startup, both the mouse and the touchpad are on if the mouse is plugged in ! To disable the touchpad I have to unplug then plug in the mouse again...

How do I disable the touchpad at startup if the mouse is already plugged in ?

Offline

#5 2008-07-09 23:27:52

rscholer
Member
From: Gelsenkirchen, Germany
Registered: 2008-07-03
Posts: 48

Re: [solved] Disabling touchpad on plugged in mouse

You have to run the following code, when Xorg starts. If you use startx or SLIM you have to put it in your ~/.xsession.

if lsusb --verbose 2>&1 | grep --quiet "Mouse"; then
        synclient TouchPadOff="1"
fi

Please Note: This Code only works, if you're using a USB Mouse.

Offline

#6 2008-07-10 01:20:30

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

Re: [solved] Disabling touchpad on plugged in mouse

Thanks ! Works great !

Offline

Board footer

Powered by FluxBB