个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第2行: 第2行:
 
{{Languages|UbuntuHelp:SynapticsTouchpad}}
 
{{Languages|UbuntuHelp:SynapticsTouchpad}}
 
#title Synaptics Touchpad
 
#title Synaptics Touchpad
 
 
 
On most laptops, a '''[http://en.wikipedia.org/wiki/Touchpad touchpad]''' is the input device used as a substitute for a computer mouse.
 
On most laptops, a '''[http://en.wikipedia.org/wiki/Touchpad touchpad]''' is the input device used as a substitute for a computer mouse.
 
 
The term "Synaptics Touchpad" should not be confused with "[[UbuntuHelp:SynapticHowto|Synaptic]]", Ubuntu's Package Manager.
 
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.
 
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)]]
 
[[Anchor(gui)]]
 
== Configuration with a Graphical Interface ==
 
== 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.
 
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)]]
 
[[Anchor(gsynaptics)]]
 
=== Ubuntu ===
 
=== Ubuntu ===
第20行: 第13行:
 
* 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.
 
* 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'''.
 
After installation, '''gsynaptics''' can be found under '''System > Preferences > Touchpad'''.
 
 
[[Anchor(ksynaptics)]]
 
[[Anchor(ksynaptics)]]
 
=== Kubuntu ===
 
=== Kubuntu ===
第26行: 第18行:
 
* 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.
 
* 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'''.
 
After installation, '''ksynaptics''' can be found in the '''KDE Control Center'''.
 
 
[[Anchor(qsynaptics)]]
 
[[Anchor(qsynaptics)]]
 
=== Xubuntu and others ===
 
=== Xubuntu and others ===
 
* Enable SHMConfig in the X server configuration file as described in the section [[shmconfig Enabling SHMConfig]].
 
* 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.
 
* 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)]]
 
[[Anchor(syndaemon)]]
 
== Disabling the Touchpad Temporarily While Typing ==
 
== 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.
 
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]].
 
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 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.  
 
The '''-d''' option causes '''syndaemon''' to run in the background, so the terminal can be closed after executing the command.  
 
<pre><nowiki>
 
<pre><nowiki>
第54行: 第40行:
 
</nowiki></pre>
 
</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.
 
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)]]
 
[[Anchor(shmconfig)]]
 
== Enabling 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.
 
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:
 
/!\ Note the warning from the man page for synclient:
 
<pre><nowiki>
 
<pre><nowiki>
第67行: 第49行:
 
</nowiki></pre>
 
</nowiki></pre>
 
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]].
 
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:
 
In a [[UbuntuHelp:UsingTheTerminal|terminal]] type:
 
<pre><nowiki>
 
<pre><nowiki>
第84行: 第65行:
 
</nowiki></pre>
 
</nowiki></pre>
 
If this section is not present, see [[xinputdevice Adding a Synaptics Touchpad to the X Server Configuration]].
 
If this section is not present, see [[xinputdevice Adding a Synaptics Touchpad to the X Server Configuration]].
 
 
Add the following line to this section:
 
Add the following line to this section:
 
<pre><nowiki>
 
<pre><nowiki>
第102行: 第82行:
 
</nowiki></pre>
 
</nowiki></pre>
 
To enable the changes log out of your desktop environment, and restart the X server by typing '''Ctrl + Alt + Backspace'''.
 
To enable the changes log out of your desktop environment, and restart the X server by typing '''Ctrl + Alt + Backspace'''.
 
 
[[Anchor(synclient)]]
 
[[Anchor(synclient)]]
 
== Configuration with 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.
 
'''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]].
 
Enable SHMConfig in the X server configuration file as described in the section [[shmconfig Enabling SHMConfig]].
 
 
List all settings:
 
List all settings:
 
<pre><nowiki>
 
<pre><nowiki>
第122行: 第99行:
 
synclient TouchpadOff=0
 
synclient TouchpadOff=0
 
</nowiki></pre>
 
</nowiki></pre>
 
 
[[Anchor(xconfig)]]
 
[[Anchor(xconfig)]]
 
== Configuration with the X Server Configuration file ==
 
== Configuration with the X Server Configuration file ==
 
 
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.
 
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:
 
For example, to turn the touchpad off, add the line:
 
<pre><nowiki>
 
<pre><nowiki>
 
Option "TouchpadOff" "1"
 
Option "TouchpadOff" "1"
 
</nowiki></pre>
 
</nowiki></pre>
 
 
The result will look like this:
 
The result will look like this:
 
<pre><nowiki>
 
<pre><nowiki>
第146行: 第119行:
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
 
 
[[Anchor(troubleshooting)]]
 
[[Anchor(troubleshooting)]]
 
== Troubleshooting ==
 
== Troubleshooting ==
 
 
=== Determine Whether a Touchpad Is Configured ===
 
=== 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:
 
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:
第160行: 第131行:
 
</nowiki></pre>
 
</nowiki></pre>
 
then you have a Synaptics Touchpad configured. If not, see [[xinputdevice Adding a Synaptics Touchpad to the X Server Configuration]].  
 
then you have a Synaptics Touchpad configured. If not, see [[xinputdevice Adding a Synaptics Touchpad to the X Server Configuration]].  
 
 
 
[[Anchor(xinputdevice)]]
 
[[Anchor(xinputdevice)]]
 
=== Adding a Synaptics Touchpad to the X Server Configuration ===
 
=== 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 [[UbuntuHelp:UsingTheTerminal|terminal]] type:
 
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>
 
<pre><nowiki>
 
gksudo gedit /etc/X11/xorg.conf
 
gksudo gedit /etc/X11/xorg.conf
 
</nowiki></pre>
 
</nowiki></pre>
 
 
After the lines:
 
After the lines:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
Section "InputDevice"
 
Section "InputDevice"
第184行: 第149行:
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
 
 
add the following:
 
add the following:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
Section "InputDevice"
 
Section "InputDevice"
第197行: 第160行:
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Next, find the "Server``Layout" section near the bottom:
 
Next, find the "Server``Layout" section near the bottom:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
Section "ServerLayout"
 
Section "ServerLayout"
第211行: 第172行:
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Add the following line:
 
Add the following line:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
Inputdevice "Synaptics Touchpad"
 
Inputdevice "Synaptics Touchpad"
 
</nowiki></pre>
 
</nowiki></pre>
 
 
The result should look like this:
 
The result should look like this:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
Section "ServerLayout"
 
Section "ServerLayout"
第232行: 第189行:
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
 
 
To enable the changes log out of your desktop environment, and restart the X server by typing '''Ctrl + Alt + Backspace'''.
 
To enable the changes log out of your desktop environment, and restart the X server by typing '''Ctrl + Alt + Backspace'''.
 
 
=== Specific Hardware ===
 
=== Specific Hardware ===
 
 
==== Apple iBook G4 ====
 
==== Apple iBook G4 ====
 
* [[UbuntuHelp:SynapticsTouchpad/AppleIbookG4|Apple iBook G4]]
 
* [[UbuntuHelp:SynapticsTouchpad/AppleIbookG4|Apple iBook G4]]
 
 
== See also ==
 
== See also ==
 
 
* [[UbuntuHelp:SynapticsTouchpad/ShortcutKey|Turning Synaptics Touchpads On/Off with a Shortcut Key]]
 
* [[UbuntuHelp:SynapticsTouchpad/ShortcutKey|Turning Synaptics Touchpads On/Off with a Shortcut Key]]
 
 
----
 
----
 
[[category:CategoryDocumentation]]
 
[[category:CategoryDocumentation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 21:40的版本


  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