Results 1 to 10 of 10

Thread: disable touchpad while usb mouse is plugged in

  1. #1

    disable touchpad while usb mouse is plugged in

    How do you disable an Alps touchpad (dell inspiron 1525) while having a USB mouse plugged in?

  2. #2
    Join Date
    Apr 2008
    Location
    USA
    Beans
    225
    Distro
    Ubuntu 9.10 Karmic Koala

    Wink Re: disable touchpad while usb mouse is plugged in

    I found how on this website:
    http://www.linuxine.com/2008/06/how-...in-ubuntu.html

    Apparently edit your xorg configuration file:

    1. Alt+F2
    2. Type "gksu gedit /etc/X11/xorg.conf" (without the quotes)
    3. Find the line that says Section “InputDevice”
    4. Under that section add a line that reads: Option “SHMConfig” “on”
    5. Save and close that file

    Now to turn it off:

    1. Alt+F2
    2. Type "synclient touchpadoff=1"
    3. Hit enter and you're done

    To turn it back on:

    1. Alt+F2
    2. Type "synclient touchpadoff=0"
    3. Hit enter and you're done

  3. #3
    Join Date
    Mar 2009
    Beans
    Hidden!

    Re: disable touchpad while usb mouse is plugged in

    Don't see the reason to disable it, unless your touch pad is defected or something. I use Alps Touch Pad too .

  4. #4
    Join Date
    Apr 2009
    Location
    home
    Beans
    88
    Distro
    Kubuntu

    Re: disable touchpad while usb mouse is plugged in

    synclient does need shm to be enabled, i didnt manage to get that thing to be enabled though..
    xinput is another approach that should also work:

    Code:
    #!/bin/sh
    DISPLAY=:0
    
    id=$(xinput --list|sed -ne "s/.*ALPS.*id=\([0-9]\+\).*/\1/p")
    prop=$(xinput --list-props $id|sed -ne "s/.*Tap Action (\([0-9]\+\)).*/\1/p")
    
    xinput set-int-prop $id $prop 8 0 0 0 0 0 0 0
    
    # EOF
    add that piece of script to whenever mouse is plugged in and you should be ready to go

    please note that this will only disable tapping on the 1525 touchpad (which i find VERY annoying..)

  5. #5

    Re: disable touchpad while usb mouse is plugged in

    turning it on and off is very annoying. I might accidentally tap the touchpad while typing and i'll start typing at a completely different location, which is very annoying.

  6. #6
    Join Date
    Mar 2009
    Location
    Right here
    Beans
    14
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: disable touchpad while usb mouse is plugged in

    Script to turn it on and off automatically when usb mouse is plugged in.

    You will need to change the included script in one place to match your configuration. Documentation is included in the script with the steps to do that. I also included the setting to delay the touchpad while typing when the TP is active.

    Make the script executable. Add it to your start-up applications.

    Hope this helps.
    Attached Files Attached Files

  7. #7
    Join Date
    May 2010
    Location
    Ohio, USA
    Beans
    3
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: disable touchpad while usb mouse is plugged in

    Thank you for the script. I tweaked it a bit for my own use, as I tend to use the USB mouse for the most part all the time. It worked great. I am gonna try it for my WACOM Bamboo next.

  8. #8
    Join Date
    Dec 2009
    Beans
    4

    Re: disable touchpad while usb mouse is plugged in

    Ya my touchpad gets in the way all the time, and in general xmarine's script worked but i ran into some problems with it.

    At least on my computer, when it doesn't find the mouse in xinput list it configures the touchpad and starts syndaemon, but it does that over and over again (every 2 seconds) and i end up with hundrends of instances of syndaemon running and that eventuallly crashes my computer... I can avoid this by sticking "killall syndaemon" right above the line "syndaemon -i 3 -d;", but i guess that means that syndaemon is being turned on and off every 2 or so seconds. Any suggesions on a more efficient way to get around this problem?

    Also I have a mouse at work and one at home(different models), so the way this is written it only works for one, i thought changing the line to :

    if [xinput list 'Microsoft Basic Optical Mouse'] || [xinput list 'Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)'];
    then

    would make it recognize either, but that didn't work. I am not that experienced in bash scripting, anyone know the correct way to say recoginize either mouse?


    Thanks a lot!

  9. #9
    Join Date
    Jul 2007
    Beans
    1

    Re: disable touchpad while usb mouse is plugged in

    Quote Originally Posted by j_patterson View Post
    At least on my computer, when it doesn't find the mouse in xinput list it configures the touchpad and starts syndaemon, but it does that over and over again (every 2 seconds) and i end up with hundrends of instances of syndaemon running and that eventuallly crashes my computer... I can avoid this by sticking "killall syndaemon" right above the line "syndaemon -i 3 -d;", but i guess that means that syndaemon is being turned on and off every 2 or so seconds. Any suggesions on a more efficient way to get around this problem?
    I had exactly the same problem and initially I came up with the same solution as you. It seemed to work fine, but I was also unhappy with the constant stopping and starting of syndaemon. Then I changed the line "syndaemon -i 3 -d;" to:

    Code:
    if ! ps -A | grep syndaemon; then syndaemon -i 3 -d; fi;
    That seems to work and doesn't constantly stop/start syndaemon. But I'm no bash expert either, so there's probably a better way to do this.

  10. #10
    Join Date
    Nov 2007
    Beans
    1

    Talking Re: disable touchpad while usb mouse is plugged in

    Hey, I think it is great that you get the scripts working, but again, it would be nice to have this option in the general mouse settings. I dual boot with Windows XP and despite being so old, it has the option to automatically disable the touchpad if USB mouse is present. I think this should become a general option for everyone in Ubuntu as well... give users the choice. Scripts and editing configurations like that is too risky for me, so I'll wait for easier and safer methods to get it done.

    I am not quite sure how to officially suggest this for Ubuntu...

    Thanks.

    EDIT: There seems to be an almost three year old suggestion for this here: http://brainstorm.ubuntu.com/idea/554/
    Last edited by rava_sd; October 25th, 2010 at 04:54 PM. Reason: update

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •