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
Touch seeded packages, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1577738

Title:
  pm-utils does not write pm-suspend.log file

Status in pm-utils package in Ubuntu:
  New

Bug description:
  Hello,

  I hope I'm filing this information the proper way and I thank you for
  reading it.

  1) Kubuntu 16.04
  2) pm-utils 1.4.1-16

  3) As far as the info I could find, the package "pm-utils" is supposed
  to write log files in /var/log, such as "pm-suspend.log". These log
  files, as you know, help troubleshoot hibernate/resume issues.

  I happen to have one issue with hooks that don't run on resume, that
  do run prior to hibernate when I run them manually and don't after
  resume when I run them the same manual way. (different issue than this
  bug report)

  4) Therefore I need to scan through pm-suspeng.log file, but the file
  is not created on my machine, anywhere on the HDD.

  I have added my user to the "systemd-journal", "root" and "sudo"
  groups, in case that could help, I still don't see the log file.

  With previous Kubuntu versions (13.10 and others before, didn't try
  between 13.10 and 16.04), this log file was created right away.

  After searching and trying things out, I'm leaning towards the
  possibility of a bug, which is the reason why I am posting here.

  I do not know what other information to provide.

  
  Thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1577738/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to