Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 06-15-2006, 06:56 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 15

Rep: Reputation: 0
Turn off touchpad automatically

I have set up my laptop (running Dapper Ubuntu) so that a simple press of ctrl+F5 toggles the touchpad on and off (so I don't knock it whilst typing, and because I use a mouse much of the time). This was done according to the guide found HERE

I was however thinking about taking this one step further by running a script that worked along these lines:



	if [ "OUTPUT" = "*Logic3 / SpectraVideo plc*" ]; then 	#this is what my mouse reads as
		synclient touchpadoff=1 			#typing this in turns the touchpad off
		wait 2 						#is 2 seconds a good time frame?
		go to start of script 	

	else synclient touchpadoff=0				#turns the touchpad on
		wait 2
		go to start of script
This script is simply supposed to check the output of "lsusb" every couple of seconds to see if my mouse is plugged in, and if it is - disable the touchpad, and then reenable the touchpad when I unplug the mouse.

Problem number 1 is that I obviously don't know how to do loops (I'm exceptionally new to bash scripting), and all the google action I have found so far has been over my head.
Additonally, I don't know if this would take up too many system resources, though my initial reaction is that it wouldn't.
The input doesn't mind if the command "turn off" is entered when the touchpad is already turned off, though it would of course be nice not to keep sending the command every 2 seconds if it's not needed.
Old 06-15-2006, 09:22 PM   #2
Registered: May 2003
Location: Vancouver
Distribution: RH9
Posts: 100

Rep: Reputation: 15
totally not what you're looking for

hey there

this may help, may not, i have the same problem, on my laptop the trackpad is too f'in big so i threw these options

Option "PalmDetect" "1"
Option "PalmMinWidth" "10"
Option "PalmMinZ" "200"

to the bottom of the synaptics section of my /etc/X11/xorg.conf file. PalmDetect is a simple boolean switch, 1 for on, 0 for off. PalmMinWidth is the minimum width of contact area to trigger palm detection. And PalmMinZ is the minimum contact pressure to trigger palm detection. The smaller you make PalmMinWidth (which can be set between 1-15) the less amount of palm will be needed in order to trigger palm detect. I set mine at 10 and slowly worked it down till the mouse stopped jumping around. PalmMinZ can be set between 1-255, I never changed it from the default 200 and it's been great. The lesser the number the less pressure is needed to trigger palm detect.

btw. this only works with synaptics touchpads which i assume you have because you're using synclient.

chow (cat)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
turn off touchpad tapping? kg4ysy Linux - Hardware 5 04-06-2006 09:00 PM
Compaq v5005us, want to turn off touchpad maddogdelta Linux - Laptop and Netbook 7 02-10-2006 08:14 AM
sound doesnt turn on automatically invinciblegod Linux - General 2 07-27-2005 02:37 PM
How do I turn the TouchPad back on? KitKat Linux - Laptop and Netbook 2 02-11-2004 12:31 AM
how to turn numlock on automatically? Alf829 Linux - Newbie 6 08-22-2003 09:15 AM > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration