You are not logged in.

#1 2012-06-23 13:13:24

smilzoboboz
Member
Registered: 2010-06-01
Posts: 21

sleep.d user-scripts won't run unless pm-suspend is directly executed

I'm sorry, I searched the forum and found similar issues, but I did not manage to understand well the problem.

I have some scripts in /etc/pm/sleep.d/ that run only if I run

# pm-suspend

else if I use xfce's suspend or

$ dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

only /usr/lib/pm-utils/sleep.d/ scripts are executed (checked through /var/log/pm-suspend.log).

NOTE: All scripts permission in /etc/pm/sleep.d/ is set to executable

Last edited by smilzoboboz (2012-06-23 13:15:17)

Offline

#2 2012-06-23 15:24:59

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: sleep.d user-scripts won't run unless pm-suspend is directly executed

Check if their owner is root...

Offline

#3 2012-06-23 15:42:57

smilzoboboz
Member
Registered: 2010-06-01
Posts: 21

Re: sleep.d user-scripts won't run unless pm-suspend is directly executed

lol, hi nierro... actually one the post I mentioned at the beginning of previous message was yours

anyway, yup all owned by root:root

I think for some reason Upower modifies (or doesn't set) some path var related to pm-utils , so that only "system" scripts are executed

Offline

#4 2012-06-23 18:47:28

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: sleep.d user-scripts won't run unless pm-suspend is directly executed

Yeah, i' with you, i had (and i'm having) lots of troubles with pm-utils and upowerd... smile
Hope you can find your answer, contrary to me! The root thing was the only i came up with...
I only can tell you i'm using xfce too, and i'm not having this sort of problem, so look at your configs; don't know if it can help (i think no, sorry sad  )

Offline

#5 2013-11-22 20:58:19

archbawks
Banned
Registered: 2013-03-17
Posts: 75

Re: sleep.d user-scripts won't run unless pm-suspend is directly executed

@OP. Did you manage to fix this?

Offline

#6 2013-11-22 22:39:06

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: sleep.d user-scripts won't run unless pm-suspend is directly executed

@archbawks Please leave the dead to rest in peace: https://wiki.archlinux.org/index.php/Fo … Bumping.22

Closing.

Offline

Board footer

Powered by FluxBB