How to get synclient to set some options after a resume from suspend.
I had the problem that synclient would change my touchpad settings after a
resume (specifically the clickpad settings). In order to fix it, I created
a script which would call
synclient and set the right settings and
I called that script from a file in
Unfortunately, that didn't work. Calling the script manually after the resume did, though.
After some investigation, I found this in
Failed to connect to X Server.
synclient couldn't find the X server, so I googled a bit
and tried the (quite obvious) fix of setting
This gave me:
No protocol specified Failed to connect to X Server.
sh -c 'export -p' > envon a normal terminal and sourcing that
envfile before the call to