https://wiki.archlinux.org/api.php?action=feedcontributions&user=Recharge330&feedformat=atomArchWiki - User contributions [en]2024-03-28T09:39:56ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Touchpad_Synaptics&diff=192841Touchpad Synaptics2012-04-04T14:12:18Z<p>Recharge330: /* Buttonless TouchPads (aka ClickPads) */ Changed very to vary.</p>
<hr />
<div>{{i18n|Touchpad Synaptics}}<br />
[[de:Synaptics Touchpad Treiber]]<br />
[[fr:Touchpad Synaptics]]<br />
[[Category:Input devices (English)]]<br />
{{Article summary start}}<br />
{{Article summary text|This article details the installation and configuration of the Synaptics input driver in Arch Linux. }}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
This article details the installation and configuration process of the '''''Synaptics input driver''''' for Synaptics (and ALPS) touchpads found on most notebooks.<br />
<br />
== Installation ==<br />
The Synaptics driver can be [[pacman|installed]] with the package {{Pkg|xf86-input-synaptics}}, available in the [[official repositories]]:<br />
<br />
== Configuration ==<br />
The primary method of configuration for the touchpad is through an [[Xorg]] server configuration file. After installation of {{ic|xf86-input-synaptics}}, a default configuration file is located at {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}. <br />
<br />
Users can edit this file to configure the various driver options available, for a complete list of all available options users should refer to the synaptics manual page:<br />
<br />
{{bc|$ man synaptics}}<br />
<br />
=== Frequently used options ===<br />
The following lists options that many users may wish to configure. Note that all these options can simply be added to the main configuration file in {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}, as shown in this example configuration file where we have enabled vertical, horizontal and circular scrolling:<br />
{{hc|/etc/X11/xorg.conf.d/10-synaptics.conf|<nowiki><br />
Section "InputClass"<br />
Identifier "touchpad"<br />
Driver "synaptics"<br />
MatchIsTouchpad "on"<br />
Option "TapButton1" "1"<br />
Option "TapButton2" "2"<br />
Option "TapButton3" "3"<br />
Option "VertEdgeScroll" "on"<br />
Option "VertTwoFingerScroll" "on"<br />
Option "HorizEdgeScroll" "on"<br />
Option "HorizTwoFingerScroll" "on"<br />
Option "CircularScrolling" "on"<br />
Option "CircScrollTrigger" "2"<br />
Option "EmulateTwoFingerMinZ" "40"<br />
Option "EmulateTwoFingerMinW" "8"<br />
...<br />
EndSection<br />
</nowiki>}}<br />
<br />
; '''TapButton1''': (integer) configures which mouse-button is reported on a non-corner, one finger tap.<br />
; '''TapButton2''': (integer) configures which mouse-button is reported on a non-corner, two finger tap<br />
; '''TapButton3''': (integer) configures which mouse-button is reported on a non-corner, three finger tap<br />
; '''RBCornerButton''': (integer) configures which mouse-button is reported on a right bottom corner, one finger tap (use {{ic|Option "RBCornerButton" "3"}} to achieve Ubuntu style tap behaviour for right mouse button in lower right corner)<br />
; '''RTCornerButton''': (integer) as above, but for top right corner, one finger tap.<br />
; '''VertEdgeScroll''': (boolean) enables vertical scrolling while dragging across the right edge of the touch pad.<br />
; '''HorizEdgeScroll''': (boolean) enables horizontal scrolling while dragging across the bottom edge of the touch pad.<br />
; '''VertTwoFingerScroll''': (boolean) enables vertical scrolling using two fingers.<br />
; '''HorizTwoFingerScroll''': (boolean) enables horizontal scrolling using two fingers.<br />
; '''EmulateTwoFingerMinZ/W''': (integer) play with this value to set the precision of two finger scroll.<br />
<br />
[[Touchpad_Synaptics/10-synaptics.conf_example|An example]] with a brief description of all options. As usual settings will vary between machines. It is recommended that you discover your own options using [[Touchpad_Synaptics#Fine-tuning_with_synclient|synclient]].<br />
<br />
{{Note|If you find that your hand frequently brushes your touchpad, causing the TapButton2 option to be triggered (which will more than likely paste from your clipboard), and you do not mind losing two-finger-tap functionality, set {{ic|TapButton2}} to 0.}}<br />
<br />
=== GNOME ===<br />
Users of [[GNOME]] may have to edit its configuration as well, because in default it is set to disable tapping to click, horizontal scrolling and not to allow touchpad disabling while typing.<br />
<br />
To change these settings in '''Gnome 2''':<br />
# Run {{ic|gconf-editor}}<br />
# Edit the keys in the {{ic|/desktop/gnome/peripherals/touchpad/}} folder.<br />
<br />
To change these settings in '''Gnome 3''':<br />
# Open ''System Settings''.<br />
# Click ''Mouse and Touchpad''.<br />
# Change the settings on the ''Touchpad'' tab.<br />
<br />
Gnome settings daemon may override existing settings (for example ones set in {{ic|xorg.conf.d}}) for which there is no equivalent in any of the graphical configuration utilities. It is possible to stop gnome from touching mouse settings at all:<br />
# Run {{ic|dconf-editor}}<br />
# Edit {{ic|/org/gnome/settings-daemon/plugins/mouse/}}<br />
# Uncheck the '''active''' setting<br />
It will now respect your system's existing synaptics configuration.<br />
<br />
=== Configuration on the fly ===<br />
Next to the traditional method of configuration, the Synaptics driver also supports on the fly configuration. This means that users can set certain options through a software application, these options are applied immediately without needing a restart of X. This is useful to test configuration options before you include them in the configuration file. On-the-fly configuration is non-permanent and will not remain active though a reboot, suspend / resume or restart of udev. This should only be used to test, fine-tune or script configuration features.<br />
<br />
In order for many of this tools to work you need to have the {{ic|SHMConfig Option}} in your '''10-synaptic.conf'''<br />
{{hc|/etc/X11/xorg.conf.d/10-synaptics.conf|<br />
…<br />
Option "SHMConfig" "on" # or Option "SHMConfig" "true"<br />
…<br />
}}<br />
<br />
==== Console tools ====<br />
* '''Recommended''': {{App|[[Touchpad_Synaptics#Synclient|Synclient]]|command line utility to configure and query Synaptics driver settings on a live system, the tool is developed by the synaptics driver maintainers and is provided with the synaptics driver|http://xorg.freedesktop.org/|{{Pkg|xf86-input-synaptics}}}}<br />
* {{App|[[Touchpad_Synaptics#xinput|xinput]]|small general-purpose CLI tool to configure devices|http://xorg.freedesktop.org/|{{Pkg|xorg-xinput}}}}<br />
<br />
==== Graphical tools ====<br />
* {{App|GPointing Device Settings|provides graphical on the fly configuration for several pointing devices connected to the system, including your synaptics touch pad. This application replaces GSynaptics as the preferred tool for graphical touchpad configuration through the synaptics driver|http://live.gnome.org/GPointingDeviceSettings|{{AUR|gpointing-device-settings}}}}<br />
:{{Note|For GPointingDeviceSettings to work with Synaptics touchpads both {{Pkg|xf86-input-synaptics}} and {{Pkg|libsynaptics}} have to be installed!}}<br />
* '''Deprecated!''' {{App|GSynaptics|allows the user to configure options such as horizontal, vertical and circular scrolling as well as the option to enable or disable the touchpad. The [http://gsynaptics.sourceforge.jp/ GSynaptics website] mentions that its development has stopped and that it will eventually be outdated, the application functions perfectly with xorg 1.11, through users looking for a graphical tools are suggested to use '''GPointingDeviceSettings''' instead, GSynaptics should only be used as a last resort|http://gsynaptics.sourceforge.jp/|{{Pkg|gsynaptics}}}}<br />
<br />
== Advanced Configuration ==<br />
=== xinput ===<br />
Depending on your model, synaptic touchpads may or may not these features:<br />
* left, middle or right hardware buttons<br />
* two finger detection<br />
* three finger detection<br />
* configurable resolution<br />
<br />
Use {{ic|xinput list}} to find your device name.<br />
<br />
First, find the name of your touchpad:<br />
{{bc|$ xinput -list}}<br />
<br />
You can now use {{ic|xinput}} to find your touchpad's capabilities:<br />
$ xinput list-props "SynPS/2 Synaptics TouchPad" | grep Capabilities<br />
<br />
Synaptics Capabillities (309): 1, 0, 1, 0, 0, 1, 1<br />
<br />
From left to right, this shows:<br />
* (1) device has a physical left button<br />
* (0) device does not have a physical middle button<br />
* (1) device has a physical right button<br />
* (0) device does not support two-finger detection<br />
* (0) device does not support three-finger detection<br />
* (1) device can configure vertical resolution<br />
* (1) device can configure horizontal resolution<br />
<br />
Use {{ic|xinput list-props "SynPS/2 Synaptics TouchPad"}} to list the device properties.<br />
<br />
Read the xinput and synaptics manuals and such.<br />
<br />
=== Synclient ===<br />
Synclient can configure every option available to the user as documented in {{ic|$ man synaptics}}. A full list of the current user settings can be brought up:<br />
{{bc|$ synclient -l}}<br />
<br />
Every listed configuration option can be controlled through synclient, for example:<br />
$ synclient PalmDetect=1 (to enable palm detection)<br />
$ synclient TapButton1=1 (configure button events)<br />
$ synclient TouchpadOff=1 (disable the touchpad)<br />
<br />
After you have successfully tried and tested your options through synclient, you can make these changes permanent by adding them to {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}. <br />
<br />
The synclient monitor can display pressure and placement on the touchpad in real-time, allowing further refinement of the default Synaptics settings.<br />
<br />
You can start the Synaptics monitor with the following command:<br />
{{bc|$ synclient -m 100}}<br />
Where -m activates the monitor and the following number specifies the update interval in milliseconds.<br />
<br />
This monitor provides information about the current state of your touchpad. For example, if you move the mouse with the touchpad, the x and y values in the monitor will change. Therewith you can easy figure out your touchpad's dimension which is defined in the LeftEdge-, RightEdge-, BottomEdge- and TopEdge-Options.<br />
<br />
The abbreviations for the parameters are as follow:<br />
<br />
{| class="wikitable"<br />
|- align="left"<br />
!width="200"|Abbreviation<br />
!width="400|Description<br />
|-<br />
|'''time'''<br />
|Time in seconds since the logging was started.<br />
|-<br />
|'''x, y'''<br />
|The x/y coordinates of the finger on the touchpad. The origin is in the upper left corner.<br />
|-<br />
|'''z'''<br />
|The pressure value. It represents the pressure you are using to navigate on your touchpad.<br />
|-<br />
|'''f'''<br />
|Number of fingers currently touching the touchpad.<br />
|-<br />
|'''w'''<br />
|Value that represents the finger width.<br />
|-<br />
|'''l,r,u,d,m,multi'''<br />
|Those values represent the state of the left, right, up, down, middle and multi buttons pressed where zero means not pressed and one means pressed.<br />
|-<br />
|'''gl,gm,gr'''<br />
|For touchpads which have a guest device, this are the associated button states for guest left, guest middle and guest right pressed (1) and not pressed (0).<br />
|-<br />
|'''gdx, gdy'''<br />
|x/y coordinates of the guest device.<br />
|}<br />
If a value constantly is zero, it implies that this option is not supported by your device.<br />
<br />
Now use {{ic|synclient}} to test new values. For example, to adjust minimum pointer speed:<br />
<br />
$ synclient MinSpeed=0.5<br />
<br />
To make the changes permanent, they will need to be put in your {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}} file.<br />
<br />
=== Circular scrolling ===<br />
Circular scrolling is a feature that Synaptics offers which closely resembles the behaviour of iPods. Instead of (or additional to) scrolling horizontally or vertically, you can scroll circularly. Some users find this faster and more precise.<br />
To enable circular scrolling, add the following options to the touchpad device section of {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}:<br />
{{hc|/etc/X11/xorg.conf.d/10-synaptics.conf|<nowiki><br />
Section "InputClass"<br />
...<br />
Option "CircularScrolling" "on"<br />
Option "CircScrollTrigger" "0"<br />
...<br />
EndSection<br />
</nowiki>}}<br />
<br />
The option '''CircScrollTrigger''' may be one of the following values, determining which edge circular scrolling should start:<br />
0 All Edges<br />
1 Top Edge<br />
2 Top Right Corner<br />
3 Right Edge<br />
4 Bottom Right Corner<br />
5 Bottom Edge<br />
6 Bottom Left Corner<br />
7 Left Edge<br />
8 Top Left Corner<br />
<br />
Specifying something different from zero may be useful if you want to use circular scrolling in conjunction with horizontal and/or vertical scrolling. If you do so, the type of scrolling is determined by the edge you start from.<br />
<br />
To scroll fast, draw small circles in the center of your touchpad. To scroll slowly and more precise, draw large circles.<br />
<br />
=== Software Toggle ===<br />
You may find it useful to have a software toggle that will turn on or off your touchpad, especially if it is extremely sensitive and you are doing a lot of typing. Please also see [[#Disable touchpad upon external mouse detection]] as that may be better solution, a matter of choice. The advantage here is you have the control, while the other solution has a daemon determine when to turn off the trackpad.<br />
<br />
You will want to grab [[xbindkeys]] if you do not already have key binding software.<br />
<br />
Then save this script to something such as {{ic|/sbin/trackpad-toggle.sh}}:<br />
{{hc|/sbin/trackpad-toggle.sh|<nowiki><br />
#!/bin/bash<br />
<br />
synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0')<br />
<br />
</nowiki>}}<br />
<br />
Then finally add a key binding to use the script. It is best to call with xbindkeys like so (file {{ic|~/.xbindkeysrc}}):<br />
{{hc|~/.xbindkeysrc|<nowiki><br />
"/sbin/trackpad-toggle.sh"<br />
m:0x5 + c:65<br />
Control+Shift + space<br />
</nowiki>}}<br />
<br />
Now just (re)start {{ic|xbindkeys}} and {{keypress|Ctrl}}+{{keypress|Shift}}+{{keypress|Space}} will now toggle your trackpad!<br />
<br />
Of course you could easily use any other keybinding software, such as the ones provided by Xfce4 and GNOME.<br />
<br />
== Troubleshooting ==<br />
=== ALPS Touchpads ===<br />
{{Expansion}}<br />
{{Box YELLOW|TODO|needs to be rewritten for udev}}<br />
<br />
For ALPS Touchpads, if the above configuration does not provide the desired results, try the following configuration instead:<br />
<br />
Section "ServerLayout"<br />
...<br />
InputDevice "USB Mouse" "CorePointer"<br />
InputDevice "Touchpad" "SendCoreEvents"<br />
EndSection<br />
<br />
Section "InputDevice"<br />
Identifier "Touchpad"<br />
Driver "synaptics"<br />
Option "Device" "/dev/input/mouse0"<br />
Option "Protocol" "auto-dev"<br />
Option "LeftEdge" "130"<br />
Option "RightEdge" "840"<br />
Option "TopEdge" "130"<br />
Option "BottomEdge" "640"<br />
Option "FingerLow" "7"<br />
Option "FingerHigh" "8"<br />
Option "MaxTapTime" "180"<br />
Option "MaxTapMove" "110"<br />
Option "EmulateMidButtonTime" "75"<br />
Option "VertScrollDelta" "20"<br />
Option "HorizScrollDelta" "20"<br />
Option "MinSpeed" "0.25"<br />
Option "MaxSpeed" "0.50"<br />
Option "AccelFactor" "0.010"<br />
Option "EdgeMotionMinSpeed" "200"<br />
Option "EdgeMotionMaxSpeed" "200"<br />
Option "UpDownScrolling" "1"<br />
Option "CircularScrolling" "1"<br />
Option "CircScrollDelta" "0.1"<br />
Option "CircScrollTrigger" "2"<br />
Option "SHMConfig" "on"<br />
Option "Emulate3Buttons" "on"<br />
EndSection<br />
<br />
=== The touchpad is not working, Xorg.0.log shows "Query no Synaptics: 6003C8" ===<br />
Due to the way synaptics is currently set-up, 2 instances of the synaptics module are loaded. We can recognize this situation by opening the xorg log file ({{ic|/var/log/Xorg.0.log}}) and noticing this:<br />
{{hc|/var/log/Xorg.0.log|<nowiki><br />
[ 9304.803] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"<br />
[ 9304.803] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"<br />
</nowiki>}}<br />
<br />
Notice how 2 differently named instances of the module are being loaded. In some cases, this causes the touchpad to become nonfunctional.<br />
<br />
We can prevent this double loading by adding {{ic|MatchDevicePath "/dev/input/event*"}} to our {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}} file:<br />
{{hc|/etc/X11/xorg.conf.d/10-synaptics.conf|<nowiki><br />
Section "InputClass"<br />
Identifier "touchpad catchall"<br />
Driver "synaptics"<br />
MatchIsTouchpad "on"<br />
MatchDevicePath "/dev/input/event*"<br />
Option "TapButton1" "1"<br />
Option "TapButton2" "2"<br />
Option "TapButton3" "3"<br />
EndSection <br />
</nowiki>}}<br />
<br />
Restart X and check xorg logs again, the error should be gone and the touchpad should be functional.<br />
<br />
related bugreport: {{Bug|20830}}<br />
<br />
related forum topics:<br />
* https://bbs.archlinux.org/viewtopic.php?id=104769<br />
* https://bbs.archlinux.org/viewtopic.php?pid=825690<br />
<br />
=== Touchpad detected as "PS/2 Generic Mouse" or "Logitech PS/2 mouse" ===<br />
This is caused by a [https://bugzilla.kernel.org/show_bug.cgi?id=27442 kernel bug]. Wrongly detected touchpads cannot be configured with the Synaptic input driver. To fix this, simply install the [[AUR]] package {{AUR|psmouse-elantech}}.<br />
<br />
Among the affected notebooks are the following models:<br />
<br />
* Acer Aspire 7750G<br />
* Dell Latitude e6520 (ALPS touchpad), Inspiron N5110 (ALPS GlidePoint)<br />
* Samsung NC110/NF210/QX310/QX410/QX510/SF310/SF410/SF510/RF410/RF510/RF710/RV515<br />
<br />
You can check whether your touchpad is correctly detected by running:<br />
<br />
{{bc|$ xinput list}}<br />
<br />
More information can be found in [https://bbs.archlinux.org/viewtopic.php?id=117109 this thread].<br />
<br />
=== Non-functional Synaptics Special Abilities (multi-tap, scrolling, etc.) ===<br />
In some cases Synaptics touchpads only work partially. Features like two-finger scrolling or two-finger middle-click do not work even if properly enabled. This is probably related to the [[#The_touchpad_is_not_working.2C_Xorg.0.log_shows_.22Query_no_Synaptics:_6003C8.22|The touchpad is not working]] problem mentioned above. Fix is the same, prevent double module loading.<br />
<br />
If preventing the module from loading twice does not solve your issue, try commenting out the toggle "MatchIsTouchpad" (which is now included by default in the synaptics config).<br />
<br />
=== Disable touchpad upon external mouse detection ===<br />
With the assistance of [[udev]], it is possible to automatically disable the touchpad if an external mouse has been plugged in. To achieve this, add the following udev rules to {{ic|/etc/udev/rules.d/01-touchpad.rules}}:<br />
{{hc|/etc/udev/rules.d/01-touchpad.rules|<nowiki><br />
ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[1-9]", ENV{DISPLAY}=":0.0",<br />
ENV{XAUTHORITY}="/home/USERNAME/.Xauthority", ENV{ID_CLASS}="mouse", RUN+="/usr/bin/synclient TouchpadOff=1"<br />
ACTION=="remove", SUBSYSTEM=="input", KERNEL=="mouse[1-9]", ENV{DISPLAY}=":0.0",<br />
ENV{XAUTHORITY}="/home/USERNAME/.Xauthority", ENV{ID_CLASS}="mouse", RUN+="/usr/bin/synclient TouchpadOff=0"<br />
</nowiki>}}<br />
<br />
GDM stores Xauthority files in {{ic|/var/run/gdm}} in a randomly-named directory. So udev rules will look like this:<br />
<br />
ACTION=="add", KERNEL=="mouse[0-9]", SUBSYSTEM=="input", PROGRAM="/usr/bin/find /var/run/gdm -name *username*", ENV{DISPLAY}=":0.0",<br />
ENV{XAUTHORITY}="$result/database", RUN+="/usr/bin/synclient TouchpadOff=1"<br />
ACTION=="remove", KERNEL=="mouse[0-9]", SUBSYSTEM=="input", PROGRAM="/usr/bin/find /var/run/gdm -name *username*", ENV{DISPLAY}=":0.0",<br />
ENV{XAUTHORITY}="$result/database", RUN+="/usr/bin/synclient TouchpadOff=0"<br />
<br />
{{Note|[[udev]] rules must be a single line each, so format accordingly.}}<br />
<br />
{{ic|SHMConfig}} must be enabled (see the [[#Configuration]] section for details)<br />
<br />
{{Note|{{ic|SHMConfig}} has been deprecated.}}<br />
<br />
=== Cursor Jump ===<br />
Some users have their cursor inexplicably ''jump'' around the screen. There currently no patch for this, but the developers are aware of the problem and are working on it.<br />
<br />
Another posibility is that you're experiencing ''IRQ losses'' related to the i8042 controller (this device handles the keyboard and the touchpad of many laptops), so you have two posibilities here:<br />
<br />
1. rmmod && insmod the psmouse module.<br />
2. append i8042.nomux=1 to the boot line and reboot your machine.<br />
<br />
=== Touchpad device is not located at {{ic|/dev/input/*}} ===<br />
If that is the case, you can use this command to display information about your input devices:<br />
{{bc|$ cat /proc/bus/input/devices}}<br />
<br />
Search for an input device which has the name "SynPS/2 Synaptics TouchPad". The "Handlers" section of the output specifies what device you need to specify.<br />
<br />
'''Example output:'''<br />
{{hc|$ cat /proc/bus/input/devices|<nowiki><br />
I: Bus=0011 Vendor=0002 Product=0007 Version=0000<br />
N: Name="SynPS/2 Synaptics TouchPad"<br />
P: Phys=isa0060/serio4/input0<br />
S: Sysfs=/class/input/input1<br />
H: Handlers=mouse0 event1<br />
B: EV=b<br />
B: KEY=6420 0 7000f 0<br />
</nowiki>}}<br />
<br />
In this case, the {{ic|Handlers}} are {{ic|mouse0}} and {{ic|event1}}, so {{ic|/dev/input/mouse0}} would be used.<br />
<br />
{{Expansion}}<br />
{{Box YELLOW|TODO|explain how to apply this in {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}}}<br />
<br />
=== Disable Trackpad while Typing ===<br />
==== Using automatic palm detection ====<br />
First of all you should test if it works properly for your trackpad and if the settings are accurate:<br />
<br />
$ synclient PalmDetect=1<br />
<br />
Then test the typing. You can tweak the detection with:<br />
<br />
$ synclient PalmMinWidth=<br />
which is the width of the area your hand touches, and<br />
<br />
$ synclient PalmMinZ=<br />
<br />
which is the minimum Z distance at which the detection is performed.<br />
<br />
Once you have found the correct settings, save them into {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}} like this:<br />
<br />
{{bc|<nowiki>#synclient PalmDetect=1<br />
Option "PalmDetect" "1"<br />
#synclient PalmMinWidth=10<br />
Option "PalmMinWidth" "10"<br />
#synclient PalmMinZ=200<br />
Option "PalmMinZ" "200"</nowiki>}}<br />
<br />
==== Using .xinitrc ====<br />
{{Note|You will need to have {{ic|SHMConfig}} enabled in your {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}.}}<br />
<br />
To have the touchpad disabled automatically when you begin typing, add the following line to your {{ic|~/.xinitrc}} before you run your window manager (if not using a login manager):<br />
{{bc|$ syndaemon -t -k -i 2 -d &}}<br />
<br />
; '''-i 2''': sets the idle time to 2 seconds. The idle time specifies how many seconds to wait after the last key-press before enabling the touchpad again.<br />
; '''-t''': tells the daemon not to disable mouse movement when typing and only disable tapping and scrolling.<br />
; '''-k''': tells the daemon to ignore modifier keys when monitoring keyboard activity (e.g.: allows Ctrl+Left Click).<br />
; '''-d''': starts as a daemon, in the background.<br />
<br />
More details are available in the man page:<br />
{{bc|$ man syndaemon}}<br />
<br />
If you are using a login manager, you will need to specify the command where your DE allows you to do so.<br />
<br />
==== Using a Login Manager ====<br />
{{Note|You will need to have {{ic|SHMConfig}} enabled in your {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}.}}<br />
<br />
The "-d" option is necessary to start syndaemon as a background process for post Login instructions.<br />
<br />
'''For GNOME: (GDM)'''<br />
<br />
To start syndaemon you need to use Gnome's Startup Applications Preferences program. Login to Gnome and go to '''System > Preferences > Startup Applications'''. In the Startup Programs tab click the '''Add''' button. Name the Startup Program whatever you like and input any comments you like (or leave this field blank). In the command field add:<br />
<br />
{{bc|$ syndaemon -t -k -i 2 -d &}}<br />
<br />
When you are done, click the '''Add''' button in the '''Add Startup Program''' dialogue. Make sure the check box next to the startup program you have created is checked, in the list of additional startup programs. Close the '''Startup Applications Preferences''' window and you are done.<br />
<br />
'''For KDE: (KDM)'''<br />
<br />
Goto '''System Settings > Advanced Tab > Autostart''', then click '''Add Program''', enter:<br />
<br />
{{bc| syndaemon -t -k -i 2 -d &}}<br />
<br />
Then check '''Run in terminal'''.<br />
<br />
=== Firefox and special touchpad events ===<br />
By default, Firefox is set up to do special events upon tapping or scrolling certain parts of your touchpad.<br />
You can edit the settings of those actions by typing '''about:config''' in your Firefox address bar.<br />
To alter these options, double-click on the line in question, changing "true" to "false" and vise versa.<br />
<br />
To prevent Firefox from scrolling (backward/forward) through browser history and instead scroll through pages, edit these settings as shown:<br />
mousewheel.horizscroll.withnokey.action = 1<br />
mousewheel.horizscroll.withnokey.sysnumlines = true<br />
<br />
To prevent Firefox from redirecting you to URLs formed from your clipboard content upon tapping the upper-right corner of your touchpad (or middle mouse button), set the following option to "false":<br />
middlemouse.contentLoadURL = false<br />
<br />
=== Opera: horizontal scrolling issues ===<br />
Same as above.<br />
To fix it, go to Tools -> Preferences -> Advanced -> Shortcuts. Select "Opera Standard" mouse setup and click "Edit". In "Application" section:<br />
* assign key "Button 6" to command "Scroll left"<br />
* assign key "Button 7" to command "Scroll right"<br />
<br />
=== Scrolling and multiple actions with Synaptics on LG Laptops ===<br />
These problems seem to be occurring on several models of LG laptops.<br />
Symptoms include: when pressing Mouse Button 1, Synaptics interprets it as ScrollUP and a regular button 1 click; same goes for button 2.<br />
<br />
The scrolling issue can be resolved by entering in {{ic|xorg.conf}}:<br />
{{hc|/etc/X11/xorg.conf.d/xorg.conf|Option "UpDownScrolling" "0"}}<br />
<br />
NOTE that this will make Synaptics interpret one button push as three. There is a patch written by Oskar Sandberg[http://www.math.chalmers.se/~ossa/linux/lg_tx_express.html] that removes these clicks.<br />
<br />
Apparently, when trying to compile this against the latest version of Synaptics it fails. The solution to this is using the GIT repository for Synaptics[http://web.telia.com/~u89404340/touchpad/synaptics/.git].<br />
<br />
There is also a package build file in the AUR to automate this: {{AUR|xf86-input-synaptics-lg}}.<br />
<br />
To build the package after downloading the tarball and unpacking it, execute:<br />
{{bc|$ cd synaptics-git}}<br />
{{bc|$ makepkg}}<br />
<br />
=== Other external mouse issues ===<br />
First, make sure your section describing the external mouse contains this line (or that the line looks like this):<br />
<br />
{{hc|/etc/X11/xorg.conf.d/xorg.conf|Option "Device" "/dev/input/mice"}}<br />
<br />
If the "Device" line is different, change it to the above and try to restart X. If this does not solve your problem, make your '''touchpad''' the CorePointer in the "Server Layout" section:<br />
<br />
{{hc|/etc/X11/xorg.conf.d/xorg.conf|InputDevice "Touchpad" "CorePointer"}}<br />
<br />
and make your external device "SendCoreEvents":<br />
<br />
{{hc|/etc/X11/xorg.conf.d/xorg.conf|InputDevice "USB Mouse" "SendCoreEvents"}}<br />
<br />
finally add this to your external device's section:<br />
<br />
{{hc|/etc/X11/xorg.conf.d/xorg.conf|Option "SendCoreEvents" "true"}}<br />
<br />
If all of the above does not work for you, please check relevant bug trackers for possible bugs, or go through the forums to see if anyone has found a better solution.<br />
<br />
=== Touchpad synchronization issues ===<br />
Sometimes the cursor may freeze for several seconds or start acting on its own for no apparent reason. This behavior is accompanied by records in {{ic|/var/log/messages.log}}<br />
<br />
{{hc|/var/log/messages.log|psmouse.c: TouchPad at isa0060/serio1/input0 lost synchronization, throwing 3 bytes away}}<br />
<br />
This problem has no general solution, but there are several possible workarounds.<br />
* If you use CPU frequency scaling, avoid using the "ondemand" governor and use the "performance" governor when possible, as the touchpad may lose sync when the CPU frequency changes.<br />
* Avoid using an ACPI battery monitor.<br />
* Attempt to load psmouse with "proto=imps" option. To do that, add this line to your {{ic|/etc/modprobe.d/modprobe.conf}}:<br />
<br />
{{hc|/etc/modprobe.d/modprobe.conf|2=options psmouse proto=imps}}<br />
<br />
* Try another desktop environment. Some users report that this problem only occurs when using XFCE or GNOME, for whatever reason<br />
<br />
=== Delay between a button tap and the actual click ===<br />
If you experience a delay between the tap on the touchpad and the actual click that is registered you need to enable FastTaps:<br />
<br />
To do so, you should add '''Option "FastTaps" "1"''' to {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}} so that you have:<br />
{{hc|/etc/X11/xorg.conf.d/10-synaptics.conf|<nowiki><br />
Section "InputClass"<br />
Identifier "Synaptics Touchpad"<br />
Driver "synaptics"<br />
...<br />
Option "FastTaps" "1"<br />
...<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== SynPS/2 Synaptics TouchPad can not grab event device, errno=16 ===<br />
If you are using Xorg 7.4, you may get a warning like this from {{ic|/var/log/Xorg.0.log}}, thais is because the driver will grab the event device for exclusive use when using the Linux 2.6 event protocol. When it fails, X will return this error message.<br />
<br />
Grabbing the event device means that no other user space or kernel space program sees the touchpad events. This is desirable if the X config file includes {{ic|/dev/input/mice}} as an input device, but is undesirable if you want to monitor the device from user space.<br />
<br />
If you want to control it, add or modify the "GrabEventDevice" option in you touchpad section in {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}:<br />
{{hc|/etc/X11/xorg.conf.d/10-synaptics.conf|<nowiki><br />
...<br />
Option "GrabEventDevice" "''boolean''"<br />
...<br />
</nowiki>}}<br />
This will come into effect when X is restarted, though you can also change it by using synclient. When changing this parameter with the synclient program, the change will not take effect until the Synaptics driver is disabled and re-enabled. This can be achieved by switching to a text console and then switching back to X.<br />
<br />
=== Synaptics Loses Multitouch Detection After Rebooting From Windows ===<br />
Many drivers include a firmware that is loaded into flash memory when the computer boots. This firmware is not necessarily cleared upon shutdown, and is not always compatible with Linux drivers. The only way to clear the flash memory is to shutdown completely rather than using reboot. It is generally considered best practice to never use reboot when switching between operating systems.<br />
<br />
=== Buttonless TouchPads (aka ClickPads) ===<br />
Some laptops have a special kind of touchpad which has the mouse buttons as part of the tracking plate, instead of being external buttons. HP series 4500 Probooks and X220 and X1 Thinkpads have this kind of a touchpad. By default, both of the mouse buttons are detected as one resulting in the second mouse button being unusable and click + drag will not work. To enable the second mouse button, modify the touchpad section in {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}:<br />
{{hc|/etc/X11/xorg.conf.d/10-synaptics.conf|<nowiki><br />
...<br />
Option "ClickPad" "true"<br />
Option "SoftButtonAreas" "3507 0 3918 0 0 0 0 0"<br />
...<br />
</nowiki>}}<br />
The format for the SoftButtonAreas option is:<br />
{{bc|RightButtonAreaLeft RightButtonAreaRight RightButtonAreaTop RightButtonAreaBottom MiddleButtonAreaLeft MiddleButtonAreaRight MiddleButtonAreaTop MiddleButtonAreaBottom}}<br />
For more information, read {{ic|man 4 synaptics}}.<br />
<br />
The soft button areas vary from touchpad to touchpad and the above values may not work with yours. To view the current soft button areas, run {{ic|<nowiki>synclient -l | grep ButtonArea</nowiki>}}. To modify them temporarily, run {{ic|<nowiki>synclient var=value</nowiki>}}.<br />
<br />
=== Touchpad detected as mouse (elantech touchpads) ===<br />
This can happend on some laptops with elantech touchpad, for example ASUS x53s. In this situation you need {{AUR|psmouse-elantech}} package from [[AUR]].<br />
<br />
== External Resources ==<br />
* [http://cgit.freedesktop.org/xorg/driver/xf86-input-synaptics/ Synaptics TouchPad driver]<br />
<!-- vim: set ft=Wikipedia: --></div>Recharge330https://wiki.archlinux.org/index.php?title=Xmodmap&diff=120761Xmodmap2010-11-07T01:36:11Z<p>Recharge330: changed comlicated to complicated</p>
<hr />
<div>[[Category:Input devices (English)]] [[Category:X Server (English)]]<br />
<br />
== Xmodmap == <br />
<br />
If you're typing a key on your keyboard, the kernel is generating a code. This code will be compared to a ''table of keycodes'' defining a figure. And it will be displayed i.e. the letter a.<br />
<br />
With [[X]], it's a bit more complicated, because it's starting its own table of keycodes. Each keycode can belong to a ''keysym''. A keysym is like a function, started by typing a key. You can edit these keycode-keysym relations with ''xmodmap''.<br />
<br />
== Structure ==<br />
<br />
keycode n = keysym1 keysym2 keysym3 keysym4 keysym5 keysym6<br />
n is representing a number. The keysymX stands for:<br />
1 only the key<br />
2 shift + key<br />
3 mode_switch + key<br />
4 mode_switch + shift + key<br />
5 AltGr + key<br />
6 AltGr + shift + key<br />
Not all keysyms have to be set. But if you want i.e. keysym5, you have to set keysym1 till keysym5. Therefore, you can use ''NoSymbol'' which is doing nothing.<br />
<br />
Comments start with a ''!''<br />
<br />
== Editing ==<br />
<br />
Extract your actual table of keycodes in a file (here: .xmod)<br />
xmodmap -pke > ~/.xmod<br />
Now you can edit .xmod. The new .xmod get loaded by<br />
xmodmap ~/.xmod<br />
'''This has be done after each start of X!''' So put it in your autostart...<br />
<br />
You can get the keycode (and more information) of a key with xev (or xkeycaps). If you start xev within a shell, a window will be opened and if you type a key, there will be some informations about it in the shell. Among others you get the keycode.<br />
<br />
=== Example ===<br />
<br />
If I'ld to get an 'e' if I type 'l' and an 'E' if I type 'L', I'ld have to change <br />
keycode 46 = l L l L lstroke Lstroke lstroke<br />
to<br />
keycode 46 = e E l L lstroke Lstroke lstroke<br />
(Maybe my standard keycode differs from yours. This will be an result of using different keyboard layouts)<br />
<br />
=== Keysym ===<br />
<br />
It is also possible, to change the keysym. I.e: <br />
keysym a = e E<br />
* a -> e<br />
* shift+a -> E<br />
It has the same effect as editting the corresponding keycode.<br />
<br />
=== xmodmap within a shell ===<br />
<br />
Within a shell, you can type make changes for this session. It's useful for testing. Examples:<br />
xmodmap -e "keycode 46 = l L l L lstroke Lstroke lstroke"<br />
xmodmap -e "keysym a = e E"<br />
<br />
== Special keys/signals ==<br />
<br />
You can also also edit the keys: shift, ctrl alt and super (there always exists a left and a right one (Alt_R=AltGr))<br />
<br />
At first you have to delete/clear the signals that should be edited. Write at the beginning of your Xmodmap file (here: ~/.xmod) :<br />
!clear Shift<br />
!clear Lock<br />
clear Control<br />
!clear Mod1<br />
!clear Mod2<br />
!clear Mod3<br />
clear Mod4<br />
!clear Mod5<br />
keycode 8 =<br />
...<br />
Remember: ! is a comment. So only Control and Mod4 (Standard: Super_L Super_R) get cleared.<br />
<br />
Write the new signals at the end of ~/.xmod:<br />
keycode 255 =<br />
!add Shift = Shift_L Shift_R<br />
!add Lock = Caps_Lock<br />
add Control = Super_L Super_R<br />
!add Mod1 = Alt_L Alt_R<br />
!add Mod2 = Mode_switch<br />
!add Mod3 =<br />
add Mod4 = Control_L Control_R<br />
!add Mod5 =<br />
Here: We changed the Super-keys with the ctrl-keys. My lil' finger likes that really ;).<br />
<br />
<br />
== LINKS ==<br />
<br />
[http://cweiske.de/howto/xmodmap/allinone.html HOWTO]<br />
<br />
[http://wiki.archlinux.org/index.php/X xmodmap and mouse]<br />
<br />
[http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Xorg extra keys]<br />
<br />
[http://dev-loki.blogspot.com/2006/04/mapping-unsupported-keys-with-xmodmap.html an example]</div>Recharge330