Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30971 - [pm-utils] hooks in /etc/pm/sleep.d not executed properly

Attached to Project: Arch Linux
Opened by Scott (firecat53) - Wednesday, 01 August 2012, 22:54 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Saturday, 17 November 2012, 21:30 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
Hooks placed into /etc/pm/sleep.d are not executing. For example:

/etc/pm/sleep.d/02test

Will not execute unless I additionally do:

sudo touch /usr/lib/pm-utils/sleep.d/02test

Additional info:
* package version(s)
pm-utils 1.4.1-5

* config and/or log files etc.


Steps to reproduce:

1. Create a hook script in etc/pm/sleep.d (example in the wiki)
2. chmod +x <hook>
3. sudo pm-suspend
4. less /var/log/pm-suspend.log -> hooks in /etc/pm/sleep.d are not executed.
This task depends upon

Closed by  Gerardo Exequiel Pozzi (djgera)
Saturday, 17 November 2012, 21:30 GMT
Reason for closing:  None
Additional comments about closing:  (last comment) I have switched completely to systemd and no longer use pm-utils, so I won't be able to comment on this bug anymore.
Comment by Tomas Mudrunka (harvie) - Tuesday, 25 September 2012, 09:04 GMT
This is problem... For me even moving script to /usr/lib/pm-utils/sleep.d/ does not help... :(
Comment by Dennis Groenen (iDont) - Thursday, 01 November 2012, 11:16 GMT
The hooks in /etc/pm/sleep.d/ and /usr/lib/pm-utils/sleep.d/ do not execute on suspend/resume in my installation as well. Power.d hooks work just fine however.
All hooks are owned by root:root and are executable. Nothing is written to /var/log/pm-suspend.log on supend/resume.

Please let me know if you need more information.

Edit: doh, I completely missed that systemd is not compatible with pm-utils. No sleep.d hooks get executed when suspending with systemd. Please consider my vote for this bug as non-existant.
Comment by Tuomo LempiƤinen (Tuxe) - Saturday, 17 November 2012, 18:48 GMT
I also fell for the systemd incompatibility. As a workaround, one can use the pm-suspend command to suspend. Apparently systemd provides its own mechanism to run custom scripts, so it might be better to migrate to it. (This is of course unrelated to the original bug, which I never encountered.)
Comment by Scott (firecat53) - Saturday, 17 November 2012, 20:14 GMT
I guess I can't formally request closure, as I'm not sure if it affects anyone else. However, I have switched completely to systemd and no longer use pm-utils, so I won't be able to comment on this bug anymore.

Thanks!
Scott

Loading...