特殊:Badtitle/NS100:SynapticsTouchpad:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的3个中间版本) | |||
第4行: | 第4行: | ||
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 | == Disabling Touchpad for X.Org == | ||
'''The easiest way to disable the Touchpad for X.Org system-wide, is to uninstall the package xserver-xorg-input-synaptics.''' | |||
== Other Configuration Methods == | |||
For Ubuntu 8.04 and earlier, see [[UbuntuHelp:SynapticsTouchpad/Hardy| the older instructions]]. | |||
<<Anchor(gui)>> | <<Anchor(gui)>> | ||
== Basic Configuration with a Graphical Interface == | == Basic Configuration with a Graphical Interface == | ||
Ubuntu provides configuration of the most common touchpad options in '''System > Preferences > Mouse''', under the Touchpad tab. | Ubuntu provides configuration of the most common touchpad options in '''System > Preferences > Mouse''', under the Touchpad tab. If you cannot find this tab, see the Troubleshooting section at the end of this page. | ||
Try the touchpad after unchecking the '''Enable mouse clicks with touchpad''' check box. | |||
Check operation after '''Enable horizontal scrolling''' is checked. This may not have been the default setting. | |||
If all else fails, when using two hands for operation, remember to lift your finger off of the touchpad when leaving a scroll bar, window or workspace. | |||
== Advanced Configuration with a Graphical Interface == | == Advanced 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 [[UbuntuHelp:[synclient|synclient]]] on the command line, or by | 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 [[UbuntuHelp:[synclient|synclient]]] on the command line, or by [[UbuntuHelp:[hal|adding options]]] to HAL fdi files. | ||
<<Anchor(gsynaptics)>> | <<Anchor(gsynaptics)>> | ||
=== Ubuntu === | === Ubuntu === | ||
* | * [[UbuntuHelp:[shmconfig|Enable 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 [[UbuntuHelp:InstallingSoftware|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 [[UbuntuHelp:InstallingSoftware|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 === | ||
* | * [[UbuntuHelp:[shmconfig|Enable SHMConfig]]]. | ||
* | * The preference tool which integrates into the KDE desktop environment, '''ksynaptics''' package from the universe repository, is no longer in the Intrepid Repositories. Until the tool is updated, please use the method for Xubuntu and others below. | ||
<<Anchor(qsynaptics)>> | <<Anchor(qsynaptics)>> | ||
=== Xubuntu and others === | === Xubuntu and others === | ||
* | * [[UbuntuHelp:[shmconfig|Enable 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 [[UbuntuHelp:InstallingSoftware|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 [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]. | ||
* Note: qsynaptics is no longer in the repositories either as of Jaunty. gsynaptics is the only remaining option for a full featured gui currently. There is a gui program called touchfreeze which can pause your touchpad while you are typing to help reduce erroneous touchpad actions using syndaemon below automatically. | |||
<<Anchor(resume)>> | |||
=== Restoring gsynaptics settings on resume === | |||
* Upon resuming from suspend gsynaptics-init needs to be run for each open X session, I've written a script to put in /etc/pm/sleep.d/98gsynaptics to do that automatically | |||
<pre><nowiki>#!Shell | |||
#!/bin/bash | |||
# Only run on resume/thaw | |||
if [[ ${1} =~ (thaw|resume) ]] ; then | |||
synaptics() { | |||
# sleep to give time for X | |||
sleep 4s | |||
who | while read line ; do | |||
a=(${line}) | |||
regex="^:[[:digit:]]" | |||
if [[ ${a[1]} =~ $regex ]] ; then | |||
init="sudo -H -u ${a[0]} DISPLAY=${a[1]} gsynaptics-init" | |||
eval "${init}" | |||
fi | |||
done | |||
} | |||
# run in background so sleep doesn't hold up resume | |||
synaptics & | |||
# disown so exiting shell doesn't kill function | |||
disown %1 | |||
fi | |||
</nowiki></pre> | |||
<<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. | ||
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. | ||
第42行: | 第79行: | ||
syndaemon -d -i 1 | syndaemon -d -i 1 | ||
</nowiki></pre> | </nowiki></pre> | ||
If syndaemon doesn't work properly out of the box, try [[UbuntuHelp:[shmconfig|enabling SHMConfig]]], and force syndaemon to use it by passing the -S option. (This might generally be the case if you only use HAL fdi(as described further below) to configure your input interfaces for xorg) | |||
<pre><nowiki> | <pre><nowiki> | ||
syndaemon -d -i 1 -S | |||
</nowiki></pre> | </nowiki></pre> | ||
Further options can be found by reviewing the ''man'' page with: | |||
<pre><nowiki> | <pre><nowiki> | ||
man syndaemon | |||
</nowiki></pre> | </nowiki></pre> | ||
The following example invokes syndaemon for 4 seconds after any keyboard activity ('''-i 4'''), except when modifier keys such as Alt or Shift are used ('''-K'''), and only disables tapping and scrolling ('''-t''') for this period. | |||
<pre><nowiki> | <pre><nowiki> | ||
syndaemon -i 4 -d -t -K | |||
</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''' or '''System > Preferences > Startup Applications'''. See [[UbuntuHelp:AddingProgramToSessionStartup|AddingProgramToSessionStartup]]. | |||
In Ubuntu Karmic (9.10) '''syndaemon''' is started automatically by '''gsynaptics-init''' but can be turned off in '''System > Preferences > Mouse > Touchpad > Disable touchpad while typing''' (which alters the gconf setting: /desktop/gnome/peripherals/touchpad/disable_while_typing ) | |||
In | <<Anchor(shmconfig)>> | ||
== Enabling SHMConfig == | |||
'''Note:''' Tools such as '''xinput''' and '''syndaemon''' can now alter touchpad settings without needing '''SHMConfig''' to be enabled. However, SHMConfig is still required for some functionality. | |||
In order for tools such as '''[[UbuntuHelp:[synclient|synclient]]]''', '''[[UbuntuHelp:[syndaemon|syndaemon]]]''', '''[[UbuntuHelp:[gsynaptics|gsynaptics]]]''', '''[[UbuntuHelp:[ksynaptics|ksynaptics]]]''', and '''[[UbuntuHelp:[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> | ||
WARNING: This is not secure if you are in an untrusted multiuser | |||
</nowiki></pre> | environment. All local users can change the parameters at any time. | ||
</nowiki></pre> | |||
If this is an issue for you, the touchpad can be configured without enabling SHMConfig by placing the desired options in [[UbuntuHelp:[hal|a HAL fdi file]]] and rebooting. | |||
In a [[UbuntuHelp:UsingTheTerminal|terminal]] type (for Gnome/Ubuntu): | |||
<pre><nowiki> | <pre><nowiki> | ||
gksudo gedit /etc/hal/fdi/policy/shmconfig.fdi | |||
</nowiki></pre> | </nowiki></pre> | ||
(for KDE/Kubuntu): | |||
<pre><nowiki> | <pre><nowiki> | ||
kdesudo kate /etc/hal/fdi/policy/shmconfig.fdi | |||
</nowiki></pre> | </nowiki></pre> | ||
Put this into the file: | |||
<pre><nowiki> | <pre><nowiki> | ||
<?xml version="1.0" encoding="UTF-8"?> | |||
<deviceinfo version="0.2"> | |||
<device> | |||
<match key="input.x11_driver" string="synaptics"> | |||
<merge key="input.x11_options.SHMConfig" type="string">on</merge> | |||
</match> | |||
</device> | |||
</deviceinfo> | |||
</nowiki></pre> | </nowiki></pre> | ||
Save and close that file, reboot, and SHMConfig should be enabled. | |||
<<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 [[UbuntuHelp:[gui|GUI Preference tool]]] is installed. | '''synclient''' can be used to adjust touchpad settings from the command line. This will work even if a [[UbuntuHelp:[gui|GUI Preference tool]]] is installed. | ||
Enable SHMConfig | Enable SHMConfig as described in the section [[UbuntuHelp:[shmconfig|Enabling SHMConfig]]]. | ||
List all settings: | List all settings: | ||
<pre><nowiki> | <pre><nowiki> | ||
第136行: | 第142行: | ||
<<Anchor(hal)>> | <<Anchor(hal)>> | ||
== Configuration with HAL fdi files == | == Configuration with HAL fdi files == | ||
Touchpad options can be set permanently through HAL. See [[UbuntuWiki:X/Config/Input#Input_Configuration_with_HAL|the|HAL input section of the X config documentation]] for details. | |||
<<Anchor(troubleshooting)>> | <<Anchor(troubleshooting)>> | ||
== Troubleshooting == | == Troubleshooting == | ||
=== Determine whether a touchpad has been detected === | |||
=== Determine | To check if a touchpad has been detected open a [[UbuntuHelp:UsingTheTerminal|terminal]] and check the input device list given by this command: | ||
To check if a touchpad | |||
<pre><nowiki> | <pre><nowiki> | ||
xinput list | |||
</nowiki></pre> | </nowiki></pre> | ||
If one of the lines mentions a touchpad (perhaps also "Synaptics" or "ALPS"), your touchpad has been detected. | |||
If one of the lines mentions an "ADB mouse", then your touchpad is old. Use the trackpad command line tool to configure it. Here's an example to switch on tapping and dragging: | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo trackpad show | |||
sudo trackpad tap | |||
sudo trackpad drag | |||
</nowiki></pre> | </nowiki></pre> | ||
If nothing else works, see [[UbuntuWiki:DebuggingTouchpadDetection|the|other touchpad debugging pages]]. | |||
== 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: | [[category:CategoryXwindowSystem]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月20日 (四) 00:20的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/SynapticsTouchpad }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/af | • {{#if: UbuntuHelp:SynapticsTouchpad|Afrikaans| [[::SynapticsTouchpad/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/ar | • {{#if: UbuntuHelp:SynapticsTouchpad|العربية| [[::SynapticsTouchpad/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/az | • {{#if: UbuntuHelp:SynapticsTouchpad|azərbaycanca| [[::SynapticsTouchpad/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/bcc | • {{#if: UbuntuHelp:SynapticsTouchpad|جهلسری بلوچی| [[::SynapticsTouchpad/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/bg | • {{#if: UbuntuHelp:SynapticsTouchpad|български| [[::SynapticsTouchpad/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/br | • {{#if: UbuntuHelp:SynapticsTouchpad|brezhoneg| [[::SynapticsTouchpad/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/ca | • {{#if: UbuntuHelp:SynapticsTouchpad|català| [[::SynapticsTouchpad/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/cs | • {{#if: UbuntuHelp:SynapticsTouchpad|čeština| [[::SynapticsTouchpad/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/de | • {{#if: UbuntuHelp:SynapticsTouchpad|Deutsch| [[::SynapticsTouchpad/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/el | • {{#if: UbuntuHelp:SynapticsTouchpad|Ελληνικά| [[::SynapticsTouchpad/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/es | • {{#if: UbuntuHelp:SynapticsTouchpad|español| [[::SynapticsTouchpad/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/fa | • {{#if: UbuntuHelp:SynapticsTouchpad|فارسی| [[::SynapticsTouchpad/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/fi | • {{#if: UbuntuHelp:SynapticsTouchpad|suomi| [[::SynapticsTouchpad/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/fr | • {{#if: UbuntuHelp:SynapticsTouchpad|français| [[::SynapticsTouchpad/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/gu | • {{#if: UbuntuHelp:SynapticsTouchpad|ગુજરાતી| [[::SynapticsTouchpad/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/he | • {{#if: UbuntuHelp:SynapticsTouchpad|עברית| [[::SynapticsTouchpad/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/hu | • {{#if: UbuntuHelp:SynapticsTouchpad|magyar| [[::SynapticsTouchpad/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/id | • {{#if: UbuntuHelp:SynapticsTouchpad|Bahasa Indonesia| [[::SynapticsTouchpad/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/it | • {{#if: UbuntuHelp:SynapticsTouchpad|italiano| [[::SynapticsTouchpad/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/ja | • {{#if: UbuntuHelp:SynapticsTouchpad|日本語| [[::SynapticsTouchpad/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/ko | • {{#if: UbuntuHelp:SynapticsTouchpad|한국어| [[::SynapticsTouchpad/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/ksh | • {{#if: UbuntuHelp:SynapticsTouchpad|Ripoarisch| [[::SynapticsTouchpad/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/mr | • {{#if: UbuntuHelp:SynapticsTouchpad|मराठी| [[::SynapticsTouchpad/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/ms | • {{#if: UbuntuHelp:SynapticsTouchpad|Bahasa Melayu| [[::SynapticsTouchpad/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/nl | • {{#if: UbuntuHelp:SynapticsTouchpad|Nederlands| [[::SynapticsTouchpad/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/no | • {{#if: UbuntuHelp:SynapticsTouchpad|norsk| [[::SynapticsTouchpad/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/oc | • {{#if: UbuntuHelp:SynapticsTouchpad|occitan| [[::SynapticsTouchpad/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/pl | • {{#if: UbuntuHelp:SynapticsTouchpad|polski| [[::SynapticsTouchpad/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/pt | • {{#if: UbuntuHelp:SynapticsTouchpad|português| [[::SynapticsTouchpad/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/ro | • {{#if: UbuntuHelp:SynapticsTouchpad|română| [[::SynapticsTouchpad/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/ru | • {{#if: UbuntuHelp:SynapticsTouchpad|русский| [[::SynapticsTouchpad/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/si | • {{#if: UbuntuHelp:SynapticsTouchpad|සිංහල| [[::SynapticsTouchpad/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/sq | • {{#if: UbuntuHelp:SynapticsTouchpad|shqip| [[::SynapticsTouchpad/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/sr | • {{#if: UbuntuHelp:SynapticsTouchpad|српски / srpski| [[::SynapticsTouchpad/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/sv | • {{#if: UbuntuHelp:SynapticsTouchpad|svenska| [[::SynapticsTouchpad/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/th | • {{#if: UbuntuHelp:SynapticsTouchpad|ไทย| [[::SynapticsTouchpad/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/tr | • {{#if: UbuntuHelp:SynapticsTouchpad|Türkçe| [[::SynapticsTouchpad/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/vi | • {{#if: UbuntuHelp:SynapticsTouchpad|Tiếng Việt| [[::SynapticsTouchpad/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/yue | • {{#if: UbuntuHelp:SynapticsTouchpad|粵語| [[::SynapticsTouchpad/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/zh | • {{#if: UbuntuHelp:SynapticsTouchpad|中文| [[::SynapticsTouchpad/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/zh-hans | • {{#if: UbuntuHelp:SynapticsTouchpad|中文(简体)| [[::SynapticsTouchpad/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SynapticsTouchpad | UbuntuHelp:SynapticsTouchpad | {{#if: | :}}SynapticsTouchpad}}/zh-hant | • {{#if: UbuntuHelp:SynapticsTouchpad|中文(繁體)| [[::SynapticsTouchpad/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:SynapticsTouchpad|:SynapticsTouchpad|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :SynapticsTouchpad/zh | | {{#ifexist: SynapticsTouchpad/zh | | {{#ifeq: {{#titleparts:SynapticsTouchpad|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:SynapticsTouchpad|1|-1|}} | zh | | }}
- 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.
Disabling Touchpad for X.Org
The easiest way to disable the Touchpad for X.Org system-wide, is to uninstall the package xserver-xorg-input-synaptics.
Other Configuration Methods
For Ubuntu 8.04 and earlier, see the older instructions. <<Anchor(gui)>>
Basic Configuration with a Graphical Interface
Ubuntu provides configuration of the most common touchpad options in System > Preferences > Mouse, under the Touchpad tab. If you cannot find this tab, see the Troubleshooting section at the end of this page. Try the touchpad after unchecking the Enable mouse clicks with touchpad check box. Check operation after Enable horizontal scrolling is checked. This may not have been the default setting. If all else fails, when using two hands for operation, remember to lift your finger off of the touchpad when leaving a scroll bar, window or workspace.
Advanced 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 [[UbuntuHelp:[synclient|synclient]]] on the command line, or by [[UbuntuHelp:[hal|adding options]]] to HAL fdi files. <<Anchor(gsynaptics)>>
Ubuntu
- [[UbuntuHelp:[shmconfig|Enable 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
- [[UbuntuHelp:[shmconfig|Enable SHMConfig]]].
- The preference tool which integrates into the KDE desktop environment, ksynaptics package from the universe repository, is no longer in the Intrepid Repositories. Until the tool is updated, please use the method for Xubuntu and others below.
<<Anchor(qsynaptics)>>
Xubuntu and others
- [[UbuntuHelp:[shmconfig|Enable 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.
- Note: qsynaptics is no longer in the repositories either as of Jaunty. gsynaptics is the only remaining option for a full featured gui currently. There is a gui program called touchfreeze which can pause your touchpad while you are typing to help reduce erroneous touchpad actions using syndaemon below automatically.
<<Anchor(resume)>>
Restoring gsynaptics settings on resume
- Upon resuming from suspend gsynaptics-init needs to be run for each open X session, I've written a script to put in /etc/pm/sleep.d/98gsynaptics to do that automatically
#!Shell #!/bin/bash # Only run on resume/thaw if [[ ${1} =~ (thaw|resume) ]] ; then synaptics() { # sleep to give time for X sleep 4s who | while read line ; do a=(${line}) regex="^:[[:digit:]]" if [[ ${a[1]} =~ $regex ]] ; then init="sudo -H -u ${a[0]} DISPLAY=${a[1]} gsynaptics-init" eval "${init}" fi done } # run in background so sleep doesn't hold up resume synaptics & # disown so exiting shell doesn't kill function disown %1 fi
<<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. 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
If syndaemon doesn't work properly out of the box, try [[UbuntuHelp:[shmconfig|enabling SHMConfig]]], and force syndaemon to use it by passing the -S option. (This might generally be the case if you only use HAL fdi(as described further below) to configure your input interfaces for xorg)
syndaemon -d -i 1 -S
Further options can be found by reviewing the man page with:
man syndaemon
The following example invokes syndaemon for 4 seconds after any keyboard activity (-i 4), except when modifier keys such as Alt or Shift are used (-K), and only disables tapping and scrolling (-t) for this period.
syndaemon -i 4 -d -t -K
To make syndaemon start up each time you login, add the desired command to the list of Startup Programs in System > Preferences > Sessions or System > Preferences > Startup Applications. See AddingProgramToSessionStartup. In Ubuntu Karmic (9.10) syndaemon is started automatically by gsynaptics-init but can be turned off in System > Preferences > Mouse > Touchpad > Disable touchpad while typing (which alters the gconf setting: /desktop/gnome/peripherals/touchpad/disable_while_typing ) <<Anchor(shmconfig)>>
Enabling SHMConfig
Note: Tools such as xinput and syndaemon can now alter touchpad settings without needing SHMConfig to be enabled. However, SHMConfig is still required for some functionality. In order for tools such as [[UbuntuHelp:[synclient|synclient]]], [[UbuntuHelp:[syndaemon|syndaemon]]], [[UbuntuHelp:[gsynaptics|gsynaptics]]], [[UbuntuHelp:[ksynaptics|ksynaptics]]], and [[UbuntuHelp:[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 [[UbuntuHelp:[hal|a HAL fdi file]]] and rebooting. In a terminal type (for Gnome/Ubuntu):
gksudo gedit /etc/hal/fdi/policy/shmconfig.fdi
(for KDE/Kubuntu):
kdesudo kate /etc/hal/fdi/policy/shmconfig.fdi
Put this into the file:
<?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device> <match key="input.x11_driver" string="synaptics"> <merge key="input.x11_options.SHMConfig" type="string">on</merge> </match> </device> </deviceinfo>
Save and close that file, reboot, and SHMConfig should be enabled. <<Anchor(synclient)>>
Configuration with synclient
synclient can be used to adjust touchpad settings from the command line. This will work even if a [[UbuntuHelp:[gui|GUI Preference tool]]] is installed. Enable SHMConfig as described in the section [[UbuntuHelp:[shmconfig|Enabling SHMConfig]]]. List all settings:
synclient -l
Examples
Turn touchpad off:
synclient TouchpadOff=1
Turn touchpad on:
synclient TouchpadOff=0
<<Anchor(hal)>>
Configuration with HAL fdi files
Touchpad options can be set permanently through HAL. See the|HAL input section of the X config documentation for details. <<Anchor(troubleshooting)>>
Troubleshooting
Determine whether a touchpad has been detected
To check if a touchpad has been detected open a terminal and check the input device list given by this command:
xinput list
If one of the lines mentions a touchpad (perhaps also "Synaptics" or "ALPS"), your touchpad has been detected. If one of the lines mentions an "ADB mouse", then your touchpad is old. Use the trackpad command line tool to configure it. Here's an example to switch on tapping and dragging:
sudo trackpad show sudo trackpad tap sudo trackpad drag
If nothing else works, see the|other touchpad debugging pages.