Darkwing-Duck
August 26th, 2009, 03:59 PM
As I have gone back to using Linux once again I installed Ubuntu 9.04 “Jaunty” on my Acer Aspire One netbook. One thing that I noticed is when typing my thumb or part of my hand would touch the mouse sensor pad and click it. Sending whatever I was typing to another place. The easy fix was to disable clicking via the touch pad but I found that I was too used to it so here is a easy script to fix the problem.
You will need to do a couple of things before it will work.
1. You need to have tapping enabled.
2. you will need to edit your xorg.conf to reflect:
SHMConfig “on”
If you need help with this open the terminal and type:
sudo gedit /etc/X11/xorg.conf
Scroll to the bottom of the page. Start a new section and add:
SHMConfig "on"
Okay, once this is done we will be using a little tool called syndaemon. if you want to know more about this tool you can man syndaemon. But, my basic command should do the trick for you.
Open your terminal again and type in the following:
syndaemon -d -t -i 6
Okay, I’ll go through what this did for you.
# the -d flag tells syndaemon to run all the time and monitor the keyboard
# the -t flag tells it to only disable tapping and scrolling, not pointer movement.
# the -i flag is how long (in seconds) to disable the touchpad *after* the last keypress
So in a nutshell this will monitor the keyboard for activity and disable tapping for a set number of seconds. You will still be able to have pointer movement but, the click function will be temporally disabled. In the example above I have it set for 6 seconds.
You could try adding that command to your gnome sessions (System > Preferences > Sessions) to have it load at gnome login. This way it will always startup and run.
NOTE: You do NOT have to be root or use the sudo command for this to work.
You will need to do a couple of things before it will work.
1. You need to have tapping enabled.
2. you will need to edit your xorg.conf to reflect:
SHMConfig “on”
If you need help with this open the terminal and type:
sudo gedit /etc/X11/xorg.conf
Scroll to the bottom of the page. Start a new section and add:
SHMConfig "on"
Okay, once this is done we will be using a little tool called syndaemon. if you want to know more about this tool you can man syndaemon. But, my basic command should do the trick for you.
Open your terminal again and type in the following:
syndaemon -d -t -i 6
Okay, I’ll go through what this did for you.
# the -d flag tells syndaemon to run all the time and monitor the keyboard
# the -t flag tells it to only disable tapping and scrolling, not pointer movement.
# the -i flag is how long (in seconds) to disable the touchpad *after* the last keypress
So in a nutshell this will monitor the keyboard for activity and disable tapping for a set number of seconds. You will still be able to have pointer movement but, the click function will be temporally disabled. In the example above I have it set for 6 seconds.
You could try adding that command to your gnome sessions (System > Preferences > Sessions) to have it load at gnome login. This way it will always startup and run.
NOTE: You do NOT have to be root or use the sudo command for this to work.