NTolerance,
For some reason, I couldn't get the same script you wrote to work. I slightly
modified it and ended with:
--------
#!/bin/sh
RUNUSER=`who | grep tty | sed 's/\([a-z]*\).*/\1/'`
touchpad_init()
{
sleep 5
DISPLAY=:0.0 su ${RUNUSER} -c 'xhost +'
DISPLAY=:0.0 su ${RUNUSER} -c '/usr/bin/gsynaptics-init --sm-disable'
DISPLAY=:0.0 su ${RUNUSER} -c 'xhost -'
}
case "$1" in
thaw|resume)
touchpad_init &
;;
esac
exit 0
--------
I don't see any major differences, but it seems to work. Also, I added
$RUNUSER because it seems that sometimes, I'm logged in under tty9
instead of tty7. There should be a better way to get the user that is
resuming though. <shrug>
--
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
--
universe-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/universe-bugs