Starting script when computer starts
I found out way to make program run when machine boots. Just type in Terminal
cd /etc/init.d - going to init directory
And now we gonna write script that will do your command. For that type
sudo gedit trackpad and paste this code in
xinput set-prop "Cypress APA Trackpad (cyapa)" "Synaptics Finger" 15 20 256
Save that file. With this step you have created script that must run and 'start' your trackpad. Important to make file executable using
chmod 755 fileName
Now we will need to say computer to run that script when computer boots. For that type this command:
sudo update-rc.d trackpad defaults
Now you're done, just try to reboot computer :)
Starting script when user will login using 'Startup applications'
Just add that to startup, and it will work when your computer will start. To do that just go to Unity and search for Startup Applications, click Add and type name link Trackpad start and in Command field fill in:
bash -c 'xinput set-prop "Cypress APA Trackpad (cyapa)" "Synaptics Finger" 15 20 256'
Notice that second way will work only when you will log in, not when computer will start.