****NEW VERSION AT BOTTOM****
Ok For All you that have the problem of a touchpad where you have no options to turn them on and off, heres what i did to solve my problem and it works. but youll need to take a few steps to get it to work so i hope you dont mind lol.
Step 1:
Ok first off you need to edit your Xorg File and add the following line of code to it to allow you to turn your touchpad on and off.
Code:
#Before
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection
Code:
#After
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
EndSection
you need to create 2 bash scripts.. one to turn the touchpad on, and one to turn it on..
so this would be the start of it
Step 2
Name This File tpoff
Code:
#!/bin/bash
#
synclient touchpadoff=1
And this file tpon
Code:
#!/bin/bash
#
synclient touchpadoff=0
These will be your on and off switches ![Smile](images/smilies/icon_smile.gif)
Step 3
when you are done both, chmod both to 777 and move both to /usr/local/bin/
Code:
sudo chmod 777 tpon tpoff
sudo mv tpon /usr/local/bin/
sudo mv tpoff /usr/local/bin/
onces thats done.. you will need to edit your sudoers files to allow you to exe both scripts without a password.
Step 4
so use the following command
and add these 2 lines
Code:
{user} ALL = NOPASSWD: /usr/local/bin/tpoff
{user} ALL = NOPASSWD: /usr/local/bin/tpon
where {user} is your user name
then save.
Step 5
Next install the following 2 programs
xbindkeys
Code:
sudo apt-get install xbindkeys
and xbindkeys-config, the GUI for xbindkeys
Code:
sudo apt-get install xbindkeys-config
once installed start both application
and
Step 6
then go ahead and edit your file to the shortcuts you want to exe the script with. then for the action, set it to /usr/local/bin/ (the name of the script)
The way i set mine up is as follows, under Edit:
Name: Touchpad Off
Key: Control + F5 | m:0x4 + c:71
Action: /usr/local/bin/tpoff
Thats it for turning it off.
then at the bottom, hit New and enter the following
Name: Touchpad On
Key: Control + F6 | m:0x4 + c:72
Action: /usr/local/bin/tpon
then click apply & save & exit
Now that that is done we have to restart the xbindkeys.
Now go try it out
and have some fun.. your touchpad problems are now solved ![Very Happy](images/smilies/icon_biggrin.gif)
If there are any suggestions or anything please feel free to post it. My next revision is to make it with jsut one key and one script. but since this is my first howto... go easy on me ![Very Happy](images/smilies/icon_biggrin.gif)
For all those who are sick of the touchpad always messed up for work.. your welcome ![Very Happy](images/smilies/icon_biggrin.gif)
~Lance
Ok Above Was The Previous Version. I want to point out that i did change the previous howto to include step numbers. those will be seen below
.
Follow These Steps.. any wth a * refer to the ones above has they have not changed:
*Step 1
Step 2
Download the file i have attached below and upack it to /usr/local/bin/
ones unzipped, you will have to chmod it to 777.
Code:
chmod 777 /usr/local/bin/touchpad.py
Step 3
Edit the sudoers file (like above).. but change the 2 lines you need to insert to jsut this line:
Code:
{user} ALL = NOPASSWD: /usr/local/bin/touchpad.py
Step 4
refer to *Step 5
Step 5
Now Here Is Where The Real Update Is. Instead of having to remember 2 key combos to turn it on and off... this script i made will use only one key combo and do both functions
life jsut got easier.
The way i set mine up is as follows, under Edit:
Name: Touchpad Control
Key: Control + F5 | m:0x4 + c:71
Action: /usr/local/bin/touchpad.py
Step 6
Restart xbindkeys and your set to go
ENJOY EVERYONE!