How do you disable an Alps touchpad (dell inspiron 1525) while having a USB mouse plugged in?
How do you disable an Alps touchpad (dell inspiron 1525) while having a USB mouse 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
Don't see the reason to disable it, unless your touch pad is defected or something. I use Alps Touch Pad too .
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:
add that piece of script to whenever mouse is plugged in and you should be ready to goCode:#!/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
please note that this will only disable tapping on the 1525 touchpad (which i find VERY annoying..)
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.
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.
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.
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!
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:
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.Code:if ! ps -A | grep syndaemon; then syndaemon -i 3 -d; fi;
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