FYI, I didn't try until after everything was working, but you don't need the lines with 'xhost' in it. So you can just use the following:
-------- #!/bin/sh RUNUSER=`who | grep tty | sed 's/\([a-z]*\).*/\1/'` touchpad_init() { sleep 5 DISPLAY=:0.0 su ${RUNUSER} -c '/usr/bin/gsynaptics-init --sm-disable' } case "$1" in thaw|resume) touchpad_init & ;; esac exit 0 -------- I guess this works because it runs the function touchpad_init() in the background, exits the script, and allows X to startup before it runs gsynaptics-init. -- Gsynaptics loses settings on resume https://bugs.launchpad.net/bugs/303595 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs