Peppermint | Linux OS Community Forum
 
It is currently Sun Oct 20, 2019 11:43 pm

All times are UTC - 5 hours [ DST ]





Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Setting Synaptics touchpad
PostPosted: Tue Jul 13, 2010 5:13 pm 
Offline
User avatar

Joined: Thu May 20, 2010 8:56 am
Posts: 2132
Thanks to whatthemeh who sent in this How To, and to Vogan for adding instructions on how to get the script to autostart.

Class: Script invocation
Difficulty: It's easy enough to follow these instructions, but to tweak the settings will take some man page reading and entering of obscure numbers
Time: 5 or 10 minutes just for the basics, a bit longer if you need to consult documentation and implement tweaks
Desirability: If you have and use a touchpad and want it to, e.g., emulate mouse scrolling then this is very nice, indeed.

This is a two-part tutorial (on one page, this time ;) ) for firstly enabling touchpad emulation features, such as emulating a mousewheel for scrolling web pages and disabling edge scroll (which many find annoying), and secondly putting a .desktop entry in the right place to have it start when you log in.

The script

All it takes is a quick bash script. You can put this anywhere you like, but I personally find that you end up getting a collection of these and so I saved mine to ~/.personal_scripts/synaptics.sh. Anyway, use any method to create this bash script:
Code:
#!/bin/sh
#
# Use xinput --list-props "SynPS/2 Synaptics TouchPad" to extract data
#

# Set multi-touch emulation parameters
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 32 10
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 32 8
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Two-Finger Scrolling" 8 1
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 8 1 1

# Disable edge scrolling
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Edge Scrolling" 8 0 0 0

# This will make cursor not to jump if you have two fingers on the touchpad and you list one
# (which you usually do after two-finger scrolling)
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Jumpy Cursor Threshold" 32 110


That done, use any method to make it executable. At this stage it is ready to go by manual invocation from a terminal. The changes are immediate, but you may find you need to tweak some of the numbers to your own liking. Consult xinput's man page using your favorite method for more information.

Autostart

As with any executable you can have it autostart by placing a standards compliant .desktop file in ~/.config/autostart. Using any method create a file called synaptics.desktop in that folder and populate it as follows, replacing YOURPATH with the absolute path to the executable bash script (e.g. /home/rich_roast/.personal_scripts/synaptics.sh).

Code:
[Desktop Entry]
Encoding=UTF-8
Name=Synaptics
Comment=Tweaks Synaptics Touchpad settings
Exec=YOURPATH


And that should do it. Have fun with your new souped up touchpad!

_________________
Admin


Top
 Profile  
 
 

Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL