https://wiki.archlinux.org/api.php?action=feedcontributions&user=Zplouf&feedformat=atomArchWiki - User contributions [en]2024-03-29T01:52:35ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Touchpad_Synaptics&diff=28418Touchpad Synaptics2007-09-03T16:29:03Z<p>Zplouf: /* Stopping the mouse from clicking while typing */</p>
<hr />
<div>[[Category:Input devices (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Touchpad Synaptics}}<br />
{{i18n_entry|German|Touchpad Synaptics (Deutsch)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
synaptics is a driver for the Synaptics TouchPad which is manufactured in most laptops. This article will help install and configure the driver according to your needs.<br />
<br />
==Installation==<br />
You can install the synaptics modules via pacman from the extra repository:<br />
# pacman -S synaptics<br />
<br />
Both '''evdev''' and '''psmouse''' kernel modules have to be loaded. They may be loaded automatically but it is always safe to add them to your MODULES array in the /etc/rc.conf file:<br />
MODULES = (... evdev psmouse ...)<br />
<br />
In case you are using the gnome or kde desktop environment or just want an graphical interface to configure your touchpad, you can install gsynaptics for gnome (community repository) or <br />
ksynaptics for kde.<br />
<br />
This article will stick to the configuration without a graphical interface.<br />
<br />
==Configuration==<br />
Configuration for the synaptics driver is most likely done in the Xorg configuration file.<br />
<br />
At least you have to load the synaptics module by adding it to your Modules section:<br />
Section "Module"<br />
...<br />
Load "synaptics"<br />
...<br />
EndSection<br />
<br />
And you have to add your synaptics input device to your server layout:<br />
Section "ServerLayout"<br />
...<br />
InputDevice "Touchpad" "AlwaysCore"<br />
...<br />
EndSection<br />
<br />
Further more you have to configure your new input device named ''Touchpad''. We recommend using some kind of template which you can modify if you want or need to:<br />
<br />
Section "InputDevice"<br />
Identifier "Touchpad"<br />
Driver "synaptics"<br />
Option "Device" "/dev/input/mouse0"<br />
Option "Protocol" "auto-dev"<br />
Option "LeftEdge" "1700"<br />
Option "RightEdge" "5300"<br />
Option "TopEdge" "1700"<br />
Option "BottomEdge" "4200"<br />
Option "FingerLow" "25"<br />
Option "FingerHigh" "30"<br />
Option "MaxTapTime" "180"<br />
Option "MaxTapMove" "220"<br />
Option "MinSpeed" "0.06"<br />
Option "MaxSpeed" "0.12"<br />
Option "AccelFactor" "0.0010"<br />
Option "SHMConfig" "on"<br />
EndSection<br />
<br />
'''Identifier''' is the name of this input device you've specified in the server layout section above.<br />
<br />
'''Device''' defines where your synaptic device is located. See Troubleshooting to find your device handler if it isn't /dev/input/mouse0 for you.<br />
<br />
'''LeftEdge''', '''RightEdge''', '''TopEdge''' and '''BottomEdge''' are integer values which indicate the dimensions of your touchpad as x or y coordinates.<br />
<br />
'''FingerLow''' and '''FingerHigh''' are integer value which indicate the 'pressure value' at which the driver counts a touch (pressure value goes above FingerHigh) or a release (pressure value drops below FingerLow).<br />
<br />
'''MaxTapTime''' is an integer value that defines the maximum time for detecting a tap (in milliseconds).<br />
<br />
'''MaxTapMove''' is an integer value which defines the maximum movement of your finger for detecting a tap.<br />
<br />
'''MinSpeed''' and '''MaxSpeed''' are set to determine the minimum and maximum speed factor. An floating point value is expected.<br />
<br />
'''AccelFactor''' is the acceleration factor as well defined as a floating point value.<br />
<br />
'''SHMConfig''' is a boolean value (on/off) for activating or deactivating shared memory. This needs to be enabled if you want to monitor or configure your synaptics device with clients as synclient, which will be using in this article.<br />
<br />
More options are explained in the synaptics' manpage, accessible with:<br />
man 5 synaptics<br />
<br />
Those values given are sane defaults and will most probably work for you. However if you read on, you'll get to know how you can fine tune your configuration.<br />
<br />
===Fine tuning your configuration===<br />
An easy way to do so is the synclient monitor. It is important for the monitor that the option "SHMConfig" is set to "on".<br />
<br />
You can start the synaptics monitor with the following command:<br />
$ 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 are explained as following:<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 thouchpad.<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 means that this option is not supported by your device.<br />
<br />
With this in mind you should be able to figure the proper values out for you.<br />
<br />
==Features of the synaptics driver==<br />
===Circular scrolling===<br />
Circular scrolling is a feature that synaptics offers which you probably know from the iPod. 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, you have to add the following options to your input device section as defined above:<br />
<br />
Section "InputDevice"<br />
...<br />
Option "CircularScrolling" "on"<br />
Option "CircScrollTrigger" "0"<br />
...<br />
EndSection<br />
<br />
As you've might guessed '''CircularScrolling''' enables or disables circular scrolling.<br />
The option '''CircScrollTrigger''' may be one of the following values, determining on 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're starting.<br />
<br />
To scroll fast, draw small circles in the center of your touchpad. To scroll slow and more precise, draw large circles.<br />
<br />
==Troubleshooting==<br />
===My touchpad device isn't located at /dev/input/mouse0===<br />
If that's the case, you can use this command to display information about your all input devices:<br />
cat /proc/bus/input/devices<br />
Search for an input device which has the name "SynPS/2 Synaptics TouchPad". The Handler in this section will tell you which Device you have to specify in your xorg.conf.<br />
<br />
'''Example output:'''<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 />
<br />
As your Handlers are mouse0 and event1, you use /dev/input/mouse0.<br />
<br />
===Stopping the mouse from clicking while typing===<br />
This is a neat little trick incorporated with the synaptics driver, you can actually make sure that the touchpad is disabled while typing. It is a very simple procedure, so here is how it is done.<br />
<br />
Just add the following line to your .xinitrc before you run your window manager:<br />
syndaemon -i 2 &<br />
<br />
The '''-i 2''' switch 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 />
<br />
Additionally you can add the '''-t''' switch that tells the daemon not to disable mouse movement when typing and only disable tapping and scrolling:<br />
syndaemon -t -i 2 &<br />
<br />
As usual you may find further information in the manpage:<br />
$ man syndaemon<br />
<br />
===Firefox misinterprets horizontal scrolling===<br />
Even though this problem isn't concerning the synaptics drivers, you will probably look up here for a solution anyway.<br />
To prevent firefox from scrolling through the history and make it scroll the site, you have to set the following settings:<br />
mousewheel.horizscroll.withnokey.action = 1<br />
mousewheel.horizscroll.withnokey.sysnumlines = true<br />
You can edit them by opening '''about:config'''. (Tip taken from [http://gentoo-wiki.com/HARDWARE_Synaptics_Touchpad#Horizontal_Scroll_Issues_with_Firefox gentoo wiki].)<br />
<br />
==Links==<br />
<br />
Synaptics TouchPad driver for XOrg/XFree86 :<br />
[http://web.telia.com/~u89404340/touchpad/index.html]</div>Zplouf