Comment 57 for bug 489830

Revision history for this message
Alex Burdu (alex.burdu) wrote :

yes, the settings not restoring after resume from suspend is pretty annoying. i have the same problem. to work around it i just created a script that configures all those settings and dragged it's shortcut into the unity bar so i click on it everytime i want them restored... it's a silly workaround but i got used to it... been using this for over a year. here's my script:

[code]
#!/bin/sh
sleep 1
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
xinput set-prop "SynPS/2 Synaptics TouchPad" --type=int "Synaptics Circular Scrolling" 1
xinput set-prop "SynPS/2 Synaptics TouchPad" --type=int "Synaptics Circular Scrolling Trigger" 3
xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 2 #this line sets the touchpad deceleration
#for my mouse
xinput --set-prop --type=float "HP Wireless Optical Mobile Mouse" "Device Accel Constant Deceleration" 1.3 #this line reduces my mouse acceleration because otherwise it just flies on the screen

[/code]

of course, your may have to change de device name according to yours. just check it with:
# xinput list