Ubuntu – Command works partially when run from startup applications

laptoptouchpad

I have this script (or rather a set of commands which has permission to execute) to enable two finger scrolling and two finger tap = right click
The script is located in /home/gaurav/Multigesture/multigesture.

When I run the following command in terminal, two finger scrolling and two finger tap = right click start working. I have to run this command each time I boot my laptop.

"/home/gaurav/Multigesture/multigesture"

So I put this command in the startup applications so that I dont have to run the command each time I boot but when I reboot two finger scrolling is not working, only two finger tap = right click works.

What could be the problem, If the command works fine from the terminal then how come it is working partially when i put it into startup applications.

Here is the content of the script

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 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

PS. the file which has all the commands (script's) name is multitouch

Best Answer

I came across this fix which works just fine for me and recognizes two fingers (scroll and right click). Just download this package -->

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/308191/+attachment/1735234/+files/synaptics-dkms_1.0.0_all.deb

As per comments on the bug report, this package has worked for most of the multitouch touchpads including Acer. Three finger touch didn't work for me.

read comment #115 and #116 at https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/308191/+index?comments=all