个人工具

“UbuntuHelp:SynapticsTouchpad”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/SynapticsTouchpad}} {{Languages|UbuntuHelp:SynapticsTouchpad}} === For Newbies === On laptops, the [http://en.wikipedia.org/wiki/Touchpad touchp...)
 
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/SynapticsTouchpad}}
 
{{From|https://help.ubuntu.com/community/SynapticsTouchpad}}
 
{{Languages|UbuntuHelp:SynapticsTouchpad}}
 
{{Languages|UbuntuHelp:SynapticsTouchpad}}
 +
#title Synaptics Touchpad
  
=== For Newbies ===
 
  
On laptops, the [http://en.wikipedia.org/wiki/Touchpad touchpad] is the built-in mouse. "Synaptics touchpad" should not be confused with "Synaptic" - Ubuntu's Package Manager (Graphical User Interface for <code><nowiki>apt-get</nowiki></code>).
+
On most laptops, a '''[http://en.wikipedia.org/wiki/Touchpad touchpad]''' is the input device used as a substitute for a computer mouse.
  
In Breezy(5.10), laptops with a synaptics touchpad should work out of the box. Go to a terminal and <code><nowiki>grep</nowiki></code> (look inside) your <code><nowiki>/etc/X11/xorg.conf</nowiki></code> file:
+
The term "Synaptics Touchpad" should not be confused with "[[UbuntuHelp:SynapticHowto|Synaptic]]", Ubuntu's Package Manager.
 +
 
 +
The touchpad will be detected and configured during the Ubuntu installation. However, in Ubuntu 6.06 LTS (Dapper Drake) and Ubuntu 6.10 (Edgy Eft) touchpads may not be detected, in which case scrolling will not work. See the [[troubleshooting Troubleshooting]] section.
 +
 
 +
[[Anchor(gui)]]
 +
== Configuration with a Graphical Interface ==
 +
 
 +
This sections describes how to install a GUI configuration tool for your Synaptics touchpad which integrates into your desktop environment. Other methods of configuring the touchpad include using [[synclient synclient]] on the command line, or by adding [[xconfig options]] directly to the X server configuration file.
 +
 
 +
[[Anchor(gsynaptics)]]
 +
=== Ubuntu ===
 +
* Enable SHMConfig in the X server configuration file as described in the section [[shmconfig Enabling SHMConfig]].
 +
* For a preference tool which integrates into the GNOME Desktop environment, install the '''gsynaptics''' package from the universe repository. For help with installing packages see InstallingSoftware.
 +
After installation, '''gsynaptics''' can be found under '''System > Preferences > Touchpad'''.
 +
 
 +
[[Anchor(ksynaptics)]]
 +
=== Kubuntu ===
 +
* Enable SHMConfig in the X server configuration file as described in the section [[shmconfig Enabling SHMConfig]].
 +
* For a preference tool which integrates into the KDE desktop environment, install the '''ksynaptics''' package from the universe repository. For help with installing packages see InstallingSoftware.
 +
After installation, '''ksynaptics''' can be found in the '''KDE Control Center'''.
 +
 
 +
[[Anchor(qsynaptics)]]
 +
=== Xubuntu and others ===
 +
* Enable SHMConfig in the X server configuration file as described in the section [[shmconfig Enabling SHMConfig]].
 +
* For users of Xfce or anything else besides GNOME or KDE, install the '''qsynaptics''' package from the universe repository. For help with installing packages see InstallingSoftware.
 +
 
 +
[[Anchor(syndaemon)]]
 +
== Disabling the Touchpad Temporarily While Typing ==
 +
 
 +
To avoid accidental mouse movement while typing, '''syndaemon''' can be used to monitor the keyboard activity and disable the touchpad for a period of time after the last keystroke.
 +
 
 +
First enable SHMConfig in the X server configuration file as described in the section [[shmconfig Enabling SHMConfig]].
 +
 
 +
The following commands should be typed in a [[UbuntuHelp:UsingTheTerminal|terminal]].
 +
 
 +
The '''-d''' option causes '''syndaemon''' to run in the background, so the terminal can be closed after executing the command.
 
<pre><nowiki>
 
<pre><nowiki>
grep Id /etc/X11/xorg.conf
+
syndaemon -d
 
</nowiki></pre>
 
</nowiki></pre>
If one of the lines is:
+
The '''-t''' option causes '''syndaemon''' to only disable tapping and scrolling, not mouse movements:
 
<pre><nowiki>
 
<pre><nowiki>
Identifier "Synaptics Touchpad"
+
syndaemon -d -t
 
</nowiki></pre>
 
</nowiki></pre>
then you have a Synaptics Touchpad.  
+
By default '''syndaemon''' disables the touchpad for 2 seconds after the last keyboard activity. To specify a different timeout, use the '''-i''' option. For example, a timeout of 1 second:
 +
<pre><nowiki>
 +
syndaemon -d -i 1
 +
</nowiki></pre>
 +
To make '''syndaemon''' start up each time you login, add the desired command to the list of Startup Programs in '''System > Preferences > Sessions'''. See AddingProgramToSessionStartup.
  
In Dapper flight 7 (6.06), synaptics touchpads seem to be misdetected as some kind of wacom device, so the scrollbar may not work. See - "Editing Your xorg.conf File to Include Synaptics Touchpad drivers" - for scrollbar support.
 
  
<code><nowiki>qsynaptics</nowiki></code> (or in KDE <code><nowiki>ksynaptics</nowiki></code>) is a GUI which allows you to configure your touchpad. At a terminal, enter:
+
[[Anchor(shmconfig)]]
 +
== Enabling SHMConfig ==
 +
 
 +
In order for tools such as '''[[synclient synclient]]''', '''[[syndaemon syndaemon]]''', '''[[gsynaptics gsynaptics]]''', '''[[ksynaptics ksynaptics]]''', and '''[[qsynaptics qsynaptics]]''' to work, they need access to the synaptics touchpad driver shared memory. This is done by enabling '''SHMConfig''' "on" in the X server Synaptics Touchpad configuration. With this enabled, these tools can modify the run-time configuration of the touchpad input driver without restarting the X server.
 +
 
 +
/!\ Note the warning from the man page for synclient:
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install qsynaptics
+
WARNING: This is not secure if you are in an untrusted multiuser
 +
environment. All local users can change the parameters at any time.
 
</nowiki></pre>
 
</nowiki></pre>
or:
+
If this is an issue for you, the touchpad can be configured without enabling SHMConfig by placing the desired options in the X server configuration file and restarting the X server. See [[xconfig Configuration with the X Server Configuration file]].
 +
 
 +
In a [[UbuntuHelp:UsingTheTerminal|terminal]] type:
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install ksynaptics
+
gksudo gedit /etc/X11/xorg.conf
 
</nowiki></pre>
 
</nowiki></pre>
You may need to run <code><nowiki>qsynaptics -r</nowiki></code> each time you restart X. Go to System>Preferences>Sessions>Startup Programs> and add it.
+
Find the "Input``Device" section for the touchpad:
 
+
=== Dapper: Editing Your xorg.conf File to Include Synaptics Touchpad ===
+
In order to get scrollbar support, you may need to edit your xorg.conf file. In a terminal, type: <code><nowiki>gksudo gedit /etc/X11/xorg.conf</nowiki></code> After the lines:
+
 
<pre><nowiki>
 
<pre><nowiki>
 
Section "InputDevice"
 
Section "InputDevice"
Identifier "Configured Mouse"
+
Identifier "Synaptics Touchpad"
Driver "mouse"
+
Driver "synaptics"
Option "CorePointer"
+
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
+
Option "Device" "/dev/psaux"
Option "Protocol" "ExplorerPS/2"
+
Option "Protocol" "auto-dev"
Option "ZAxisMapping" "4 5"
+
Option "HorizScrollDelta" "0"
Option "Emulate3Buttons" "true"
+
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
add the following:
+
If this section is not present, see [[xinputdevice Adding a Synaptics Touchpad to the X Server Configuration]].
 +
 
 +
Add the following line to this section:
 +
<pre><nowiki>
 +
Option "SHMConfig" "on"
 +
</nowiki></pre>
 +
The result should look like this:
 
<pre><nowiki>
 
<pre><nowiki>
 
Section "InputDevice"
 
Section "InputDevice"
第47行: 第95行:
 
Driver "synaptics"
 
Driver "synaptics"
 
Option "SendCoreEvents" "true"
 
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
+
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
+
Option "Protocol" "auto-dev"
 
Option "HorizScrollDelta" "0"
 
Option "HorizScrollDelta" "0"
Option     "SHMConfig" "on"
+
Option "SHMConfig" "on"
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
there are also a bunch of lines about a wacom tablet, I have commented them out, I am not sure if that is a necessary step. -brallan
+
To enable the changes log out of your desktop environment, and restart the X server by typing '''Ctrl + Alt + Backspace'''.
  
next, find the bit near the bottom where it says:
+
[[Anchor(synclient)]]
 +
== Configuration with synclient ==
 +
'''synclient''' can be used to adjust touchpad settings from the command line. This will work even if a [[gui GUI Preference tool]] is installed.
 +
 
 +
Enable SHMConfig in the X server configuration file as described in the section [[shmconfig Enabling SHMConfig]].
 +
 
 +
List all settings:
 
<pre><nowiki>
 
<pre><nowiki>
Section "ServerLayout"
+
synclient -l
Identifier "Default Layout"
+
</nowiki></pre>
Screen "Default Screen"
+
==== Examples ====
InputDevice "Generic Keyboard"
+
Turn touchpad off:
InputDevice "Configured Mouse"
+
<pre><nowiki>
InputDevice    "stylus" "SendCoreEvents"
+
synclient TouchpadOff=1
InputDevice    "cursor" "SendCoreEvents"
+
InputDevice    "eraser" "SendCoreEvents"
+
EndSection
+
 
</nowiki></pre>
 
</nowiki></pre>
and add the following line after the "Configured Mouse" line:
+
Turn touchpad on:
 
<pre><nowiki>
 
<pre><nowiki>
InputDevice "Synaptics Touchpad"
+
synclient TouchpadOff=0
 
</nowiki></pre>
 
</nowiki></pre>
i also commented out the three lines about the wacom: "stylus", "cursor", and "eraser", but I am not sure if this is necessary. -brallan.
 
  
restart X: <ctrl> <alt> <Backspace> and you should now have scrollbar support. Install qsynaptics for fine control over the device.
+
[[Anchor(xconfig)]]
 +
== Configuration with the X Server Configuration file ==
  
=== Turning Synaptics Touchpads On/Off with a shortcut key ===
+
The options that are shown by the command <code><nowiki>synclient -l</nowiki></code> ([[synclient see above]]) may also be added directly to the touchpad "Input``Device" section in <code><nowiki>/etc/X11/xorg.conf</nowiki></code>. In this case [[shmconfig SHMConfig]] does not need to be enabled.
  
 
+
For example, to turn the touchpad off, add the line:
You may wish to turn the touchpad on or off so that it doesn't interfere with typing when using a USB or other mouse.
+
 
+
Use following steps:
+
 
+
'''Step 1'''
+
 
+
from a terminal, edit /etc/xorg.conf
+
 
<pre><nowiki>
 
<pre><nowiki>
gksudo gedit /etc/X11/xorg.conf
+
Option "TouchpadOff" "1"
 
</nowiki></pre>
 
</nowiki></pre>
and look for the following section of code:
 
  
 +
The result will look like this:
 
<pre><nowiki>
 
<pre><nowiki>
 
Section "InputDevice"
 
Section "InputDevice"
第95行: 第139行:
 
Driver "synaptics"
 
Driver "synaptics"
 
Option "SendCoreEvents" "true"
 
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
+
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
+
Option "Protocol" "auto-dev"
 
Option "HorizScrollDelta" "0"
 
Option "HorizScrollDelta" "0"
EndSection
+
Option "SHMConfig" "off"
</nowiki></pre>
+
Option "TouchpadOff" "1"
and add one more Option at the End of the Section:
+
<pre><nowiki>
+
Option     "SHMConfig" "on"
+
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
  
If you are using an Alps-Touchpad, which you can find out by typing
+
[[Anchor(troubleshooting)]]
<pre><nowiki>
+
== Troubleshooting ==
cat /proc/bus/input/devices
+
</nowiki></pre>
+
  
your code section should look like this
+
=== Determine Whether a Touchpad Is Configured ===
 +
To check if a touchpad is configured, open a [[UbuntuHelp:UsingTheTerminal|terminal]] and check your <code><nowiki>/etc/X11/xorg.conf</nowiki></code> file by typing the following:
 
<pre><nowiki>
 
<pre><nowiki>
Section "InputDevice"
+
grep Iden /etc/X11/xorg.conf
Driver  "synaptics"
+
Identifier  "TouchPad"
+
Option "SendCoreEvents" "true"
+
Option "Device" "/dev/input/event2"
+
Option "Protocol" "event"
+
Option          "SHMConfig"            "on"
+
EndSection
+
 
</nowiki></pre>
 
</nowiki></pre>
 
+
If one of the lines is:
You can define some parameters which influence the behaviour of your touchpad. These parameters are presented already in [https://wiki.ubuntu.com/SynapticsTouchpadWartyHowto?highlight=%28touchpad%29]. You can check if your touchpad works correct and you have the correct parameters with
+
 
<pre><nowiki>
 
<pre><nowiki>
synclient -m l
+
Identifier "Synaptics Touchpad"
 
</nowiki></pre>
 
</nowiki></pre>
If everything works fine, the position of your finger will be updated everytime you move it and based on this information you can set your parameters.
+
then you have a Synaptics Touchpad configured. If not, see [[xinputdevice Adding a Synaptics Touchpad to the X Server Configuration]].  
  
  
'''Step 2'''
+
[[Anchor(xinputdevice)]]
 +
=== Adding a Synaptics Touchpad to the X Server Configuration ===
  
Next we will create 3 files - a bash script to turn the touchpad on, one to turn it on, and a python script to use a single key combination for both. At a terminal, <code><nowiki>cd</nowiki></code> to <code><nowiki>/usr/local/bin</nowiki></code> and make a new file:
+
To add support for a touchpad which was not detected the xorg.conf file will need to be edited. In a [[UbuntuHelp:UsingTheTerminal|terminal]] type:
<pre><nowiki>
+
cd /usr/local/bin
+
gksudo gedit tpoff
+
</nowiki></pre>
+
and paste the following code in the file, save it and close it.
+
<pre><nowiki>
+
#!/bin/bash
+
#
+
  
synclient touchpadoff=1
 
</nowiki></pre>
 
again, make a new file:
 
 
<pre><nowiki>
 
<pre><nowiki>
gksudo gedit tpon
+
gksudo gedit /etc/X11/xorg.conf
 
</nowiki></pre>
 
</nowiki></pre>
paste the following, save and close:
 
<pre><nowiki>
 
#!/bin/bash
 
#
 
  
synclient touchpadoff=0
+
After the lines:
</nowiki></pre>
+
 
once again, make a new file:
+
 
<pre><nowiki>
 
<pre><nowiki>
gksudo gedit touchpad.py
+
Section "InputDevice"
 +
Identifier "Configured Mouse"
 +
Driver "mouse"
 +
Option "CorePointer"
 +
Option "Device" "/dev/input/mice"
 +
Option "Protocol" "ExplorerPS/2"
 +
Option "ZAxisMapping" "4 5"
 +
Option "Emulate3Buttons" "true"
 +
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
paste the following, save and close
 
<pre><nowiki>
 
#!/usr/bin/python
 
import os
 
import string
 
 
  
def ReadFile():
+
add the following:
myfile = open('/tmp/synclient.tmp', 'rb')
+
for line in myfile:
+
TestString(line)
+
myfile.close()
+
 
+
def TestString(string):
+
for word in string.split():
+
if word == "TouchpadOff":
+
setting = string.split()
+
ChangeState(setting[2])
+
+
  
def ChangeState(current):   
 
if current == "0":
 
os.system("synclient touchpadoff=1")
 
else:
 
os.system("synclient touchpadoff=0")
 
os.system("rm /tmp/synclient.tmp")
 
 
def Main():
 
ReadFile()
 
os.system("synclient -l > /tmp/synclient.tmp")
 
Main()
 
</nowiki></pre>
 
 
and finally, change the permissions of these three files:
 
 
<pre><nowiki>
 
<pre><nowiki>
sudo chmod 777 tpon tpoff touchpad.py
+
Section "InputDevice"
 +
Identifier "Synaptics Touchpad"
 +
Driver "synaptics"
 +
Option "SendCoreEvents" "true"
 +
Option "Device" "/dev/psaux"
 +
Option "Protocol" "auto-dev"
 +
Option "HorizScrollDelta" "0"
 +
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
  
'''Step 3'''
+
Next, find the "Server``Layout" section near the bottom:
  
Next, edit your sudoers files to allow you to execute both scripts without a password.
 
 
<pre><nowiki>
 
<pre><nowiki>
sudo visudo
+
Section "ServerLayout"
</nowiki></pre>
+
Identifier "Default Layout"
and add this line
+
Screen "Default Screen"
<pre><nowiki>
+
InputDevice "Generic Keyboard"
{user}  ALL = NOPASSWD: /usr/local/bin/touchpad.py
+
InputDevice "Configured Mouse"
 +
InputDevice    "stylus" "SendCoreEvents"
 +
InputDevice    "cursor" "SendCoreEvents"
 +
InputDevice    "eraser" "SendCoreEvents"
 +
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
where {user} is your user name
 
  
save (in nano hit <CTRL> <o>), and make sure to save it as: <code><nowiki>/etc/sudoers and not /etc/sudoers.tmp</nowiki></code>
+
Add the following line:
  
'''Step 4'''
 
 
Alternatively to setup bellow, you might use [https://help.ubuntu.com/community/MultimediaKeys gnome-keybindings](In depth instructions, 4.) or other desktop-dependent tool.
 
 
Next, install xbindkeys 
 
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install xbindkeys
+
Inputdevice "Synaptics Touchpad"
 
</nowiki></pre>
 
</nowiki></pre>
when it's done, install xbindkeys-config, the GUI for xbindkeys
 
<pre><nowiki>
 
sudo apt-get install xbindkeys-config
 
</nowiki></pre>
 
once each is installed, start both applications:
 
<pre><nowiki>
 
xbindkeys
 
</nowiki></pre>and
 
<pre><nowiki>
 
xbindkeys-config
 
</nowiki></pre>
 
  
edit your file to the shortcut key you want. For example, to be able to switch the touchpad on/off by <Ctrl><F5>, fill in the following, under Edit:
+
The result should look like this:
 
+
Name: Touchpad On/Off
+
Key: Control + F5 | m:0x4 + c:71
+
Action: /usr/local/bin/touchpad.py
+
 
+
then click apply & save & exit
+
 
+
Now that that is done, restart xbindkeys:
+
  
 
<pre><nowiki>
 
<pre><nowiki>
xbindkeys
+
Section "ServerLayout"
 +
Identifier "Default Layout"
 +
Screen "Default Screen"
 +
Inputdevice "Generic Keyboard"
 +
Inputdevice "Configured Mouse"
 +
Inputdevice "stylus" "SendCoreEvents"
 +
Inputdevice "cursor" "SendCoreEvents"
 +
Inputdevice "eraser" "SendCoreEvents"
 +
Inputdevice "Synaptics Touchpad"
 +
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
  
You may need to restart X.
+
To enable the changes log out of your desktop environment, and restart the X server by typing '''Ctrl + Alt + Backspace'''.
 +
 
 +
=== Specific Hardware ===
  
Remember that each time you restart X, you will need to run xbindkeys again in order for the  shortcut to work. Go to System>Preferences>Sessions>Startup Programs> click add type xbindkeys then click ok.
+
==== Apple iBook G4 ====
 +
* [[UbuntuHelp:SynapticsTouchpad/AppleIbookG4|Apple iBook G4]]
  
=== Apple ibook G4 ===
+
== See also ==
  
With a fresh install of Dapper the touchpad works extremely slow. The bug has been filed here:  [https://launchpad.net/distros/ubuntu/+bug/28495] The fix is pretty simple. Put the following configuration into your /etc/X11/xorg.conf in the appropriate place and then restart X.
+
* [[UbuntuHelp:SynapticsTouchpad/ShortcutKey|Turning Synaptics Touchpads On/Off with a Shortcut Key]]
  
<pre><nowiki>Section "InputDevice"
 
Identifier "Synaptics Touchpad"
 
Driver "synaptics"
 
Option "SendCoreEvents" "true"
 
Option "Device" "/dev/input/mice"
 
Option "Protocol" "auto-dev"
 
Option "LeftEdge" "0"
 
Option "RightEdge" "850"
 
Option "TopEdge" "0"
 
Option "BottomEdge" "645"
 
Option "MinSpeed" "0.4"
 
Option "MaxSpeed" "1"
 
Option "AccelFactor" "0.03"
 
Option "FingerLow" "55"
 
Option "FingerHigh" "60"
 
Option "MaxTapMove" "20"
 
Option "MaxTapTime" "100"
 
Option "TapButton1" "0"
 
Option "TapButton2" "3"
 
Option "TabButton3" "2"
 
Option "HorizScrollDelta" "10"
 
Option "VertScrollDelta" "30"
 
Option "SHMConfig" "on"
 
EndSection</nowiki></pre>
 
 
----
 
----
[[category:CategoryCleanup]]
+
[[category:CategoryDocumentation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月21日 (三) 17:57的版本


  1. title Synaptics Touchpad


On most laptops, a touchpad is the input device used as a substitute for a computer mouse.

The term "Synaptics Touchpad" should not be confused with "Synaptic", Ubuntu's Package Manager.

The touchpad will be detected and configured during the Ubuntu installation. However, in Ubuntu 6.06 LTS (Dapper Drake) and Ubuntu 6.10 (Edgy Eft) touchpads may not be detected, in which case scrolling will not work. See the troubleshooting Troubleshooting section.

Anchor(gui)

Configuration with a Graphical Interface

This sections describes how to install a GUI configuration tool for your Synaptics touchpad which integrates into your desktop environment. Other methods of configuring the touchpad include using synclient synclient on the command line, or by adding xconfig options directly to the X server configuration file.

Anchor(gsynaptics)

Ubuntu

  • Enable SHMConfig in the X server configuration file as described in the section shmconfig Enabling SHMConfig.
  • For a preference tool which integrates into the GNOME Desktop environment, install the gsynaptics package from the universe repository. For help with installing packages see InstallingSoftware.

After installation, gsynaptics can be found under System > Preferences > Touchpad.

Anchor(ksynaptics)

Kubuntu

  • Enable SHMConfig in the X server configuration file as described in the section shmconfig Enabling SHMConfig.
  • For a preference tool which integrates into the KDE desktop environment, install the ksynaptics package from the universe repository. For help with installing packages see InstallingSoftware.

After installation, ksynaptics can be found in the KDE Control Center.

Anchor(qsynaptics)

Xubuntu and others

  • Enable SHMConfig in the X server configuration file as described in the section shmconfig Enabling SHMConfig.
  • For users of Xfce or anything else besides GNOME or KDE, install the qsynaptics package from the universe repository. For help with installing packages see InstallingSoftware.

Anchor(syndaemon)

Disabling the Touchpad Temporarily While Typing

To avoid accidental mouse movement while typing, syndaemon can be used to monitor the keyboard activity and disable the touchpad for a period of time after the last keystroke.

First enable SHMConfig in the X server configuration file as described in the section shmconfig Enabling SHMConfig.

The following commands should be typed in a terminal.

The -d option causes syndaemon to run in the background, so the terminal can be closed after executing the command.

syndaemon -d

The -t option causes syndaemon to only disable tapping and scrolling, not mouse movements:

syndaemon -d -t

By default syndaemon disables the touchpad for 2 seconds after the last keyboard activity. To specify a different timeout, use the -i option. For example, a timeout of 1 second:

syndaemon -d -i 1

To make syndaemon start up each time you login, add the desired command to the list of Startup Programs in System > Preferences > Sessions. See AddingProgramToSessionStartup.


Anchor(shmconfig)

Enabling SHMConfig

In order for tools such as synclient synclient, syndaemon syndaemon, gsynaptics gsynaptics, ksynaptics ksynaptics, and qsynaptics qsynaptics to work, they need access to the synaptics touchpad driver shared memory. This is done by enabling SHMConfig "on" in the X server Synaptics Touchpad configuration. With this enabled, these tools can modify the run-time configuration of the touchpad input driver without restarting the X server.

/!\ Note the warning from the man page for synclient:

WARNING: This is not secure if you are in an untrusted multiuser
environment. All local users can change the parameters at any time.

If this is an issue for you, the touchpad can be configured without enabling SHMConfig by placing the desired options in the X server configuration file and restarting the X server. See xconfig Configuration with the X Server Configuration file.

In a terminal type:

gksudo gedit /etc/X11/xorg.conf

Find the "Input``Device" section for the touchpad:

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"	"/dev/psaux"
	Option		"Protocol"	"auto-dev"
	Option		"HorizScrollDelta"	"0"
EndSection

If this section is not present, see xinputdevice Adding a Synaptics Touchpad to the X Server Configuration.

Add the following line to this section:

	Option		"SHMConfig"		"on"

The result should look like this:

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

To enable the changes log out of your desktop environment, and restart the X server by typing Ctrl + Alt + Backspace.

Anchor(synclient)

Configuration with synclient

synclient can be used to adjust touchpad settings from the command line. This will work even if a gui GUI Preference tool is installed.

Enable SHMConfig in the X server configuration file as described in the section shmconfig Enabling SHMConfig.

List all settings:

synclient -l

Examples

Turn touchpad off:

synclient TouchpadOff=1

Turn touchpad on:

synclient TouchpadOff=0

Anchor(xconfig)

Configuration with the X Server Configuration file

The options that are shown by the command synclient -l (synclient see above) may also be added directly to the touchpad "Input``Device" section in /etc/X11/xorg.conf. In this case shmconfig SHMConfig does not need to be enabled.

For example, to turn the touchpad off, add the line:

	Option		"TouchpadOff"		"1"

The result will look like this:

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"	"/dev/psaux"
	Option		"Protocol"	"auto-dev"
	Option		"HorizScrollDelta"	"0"
	Option		"SHMConfig"		"off"
	Option		"TouchpadOff"		"1"
EndSection

Anchor(troubleshooting)

Troubleshooting

Determine Whether a Touchpad Is Configured

To check if a touchpad is configured, open a terminal and check your /etc/X11/xorg.conf file by typing the following:

grep Iden /etc/X11/xorg.conf

If one of the lines is:

	Identifier	"Synaptics Touchpad"

then you have a Synaptics Touchpad configured. If not, see xinputdevice Adding a Synaptics Touchpad to the X Server Configuration.


Anchor(xinputdevice)

Adding a Synaptics Touchpad to the X Server Configuration

To add support for a touchpad which was not detected the xorg.conf file will need to be edited. In a terminal type:

gksudo gedit /etc/X11/xorg.conf

After the lines:

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ExplorerPS/2"
	Option		"ZAxisMapping"		"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

add the following:

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"	"/dev/psaux"
	Option		"Protocol"	"auto-dev"
	Option		"HorizScrollDelta"	"0"
EndSection

Next, find the "Server``Layout" section near the bottom:

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice     "stylus" "SendCoreEvents"
	InputDevice     "cursor" "SendCoreEvents"
	InputDevice     "eraser" "SendCoreEvents"
EndSection

Add the following line:

	Inputdevice	"Synaptics Touchpad"

The result should look like this:

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	Inputdevice	"Generic Keyboard"
	Inputdevice	"Configured Mouse"
	Inputdevice	"stylus"	"SendCoreEvents"
	Inputdevice	"cursor"	"SendCoreEvents"
	Inputdevice	"eraser"	"SendCoreEvents"
	Inputdevice	"Synaptics Touchpad"
EndSection

To enable the changes log out of your desktop environment, and restart the X server by typing Ctrl + Alt + Backspace.

Specific Hardware

Apple iBook G4

See also