I'm glad not to be the only one. When I use 13.10 my resume script is the following:
=== #!/bin/sh export DISPLAY=:0 case "${1}" in hibernate|suspend) su -c - frank /home/frank/scripts/00_suspend.sh & ;; thaw|resume) service fancontrol restart & su -c - frank /home/frank/scripts/01_resume.sh & ;; esac === The script is located in "/etc/pm/sleep.d", under root and is executable for everyone. The user script hooked in by the root script above when suspending does the following: === ps axf | grep cairo-dock | grep -v grep | awk '{print "kill -9 " $1}' | sh === The script for resume is: === nohup gkrellm > /dev/null 2>&1 & sleep 2 nohup cat /home/frank/scripts/cairo-dock_macro | xmacroplay -d 100 :0 > /dev/null 2>&1 & === My user is part of the following groups: "frank adm cdrom sudo dip plugdev lpadmin sambashare vboxusers" Trying to replicate that under 16.04 doesn't work, nothing is run. And I don't know why cuz I can't read the pm-suspend log files. However I found out that all of these commands but one are no longer required with 16.04 (tnx to the developers). The only one remaining is to restart FANCONTROL, which is obviously very important. But I can't read the log files so I don't know why my command is not run. I tried many many other ways to run my command but none worked. I'd really like to understand why, I need the PM log files for that, unless someone is a guru about PM hooks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577738 Title: pm-utils does not write pm-suspend.log file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1577738/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs