Results 1 to 1 of 1
I'm using Linux Mint Debian Edition with gnome on my lapop. In order to use two finger scrolling on my Synaptics touchpad I need to run the following xinput commands:
...
- 05-05-2011 #1Just Joined!
- Join Date
- May 2011
- Posts
- 1
[SOLVED] problems with touchpad configuration when resuming from stand
I'm using Linux Mint Debian Edition with gnome on my lapop. In order to use two finger scrolling on my Synaptics touchpad I need to run the following xinput commands:
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
I've added these commands to a script that I run each time I use the computer, however, when I put the laptop to sleep I lose the configuration and need to set it up each time I begin using my computer -- this is somewhat annoying. I've tried automating the process by placing a script into the /etc/pm/sleep.d directory, but it doesn't seem to work. The script executes properly, I can see that it echoes anything that I put into it to a log file, it just doesn't affect the touchpad.
I suspect this is because the script is not running from within the current x session, as I can't get this to work from any of the terminals either, only from a virtual terminal in my x session. From another terminal I've also tried "export DISPLAY=:0" then running the script, but I just get:
No protocol specified.
Unable to connect to the X server
I followed a suggestion elsewhere and also tried adding:
xauth merge /home/my_username/.Xauthority
export DISPLAY=:0
to the beginning of the script, but had no change. I've been googling this for days with no luck. Any ideas on how to run this script from within the x session using the sleep.d script, or is there another way to accomplish this?



