Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
powerdevil doesn't read /etc/pm/sleep.d/* anymore
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Frautoincnam
Apprentice
Apprentice


Joined: 19 May 2017
Posts: 294

PostPosted: Sun Oct 28, 2018 11:23 pm    Post subject: powerdevil doesn't read /etc/pm/sleep.d/* anymore Reply with quote

Hi,

On my Gentoo Linux, I just updated powerdevil from 5.12.5 to 5.13.5 and I realize that it doesn't do the same thing.
To prevent my computers from suspending during system update, I put a file lock in /tmp, and in a /etc/pm/sleep.d/script, I verify if this lock is present or not.
It seems Plasma automatic suspend doesn't use sys-power/pm-utils anymore. Manually suspending with pm-suspend always works as before.
But now, with automatic suspend, even /var/log/pm-suspend.log is empty.
I just have, in /var/log/syslog :
Code:
Oct 28 13:34:26 medion kernel: [29468.817039] PM: hibernation entry
Oct 28 13:34:27 medion kernel: [29469.307437] PM: Syncing filesystems ...

Any idea ?
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Mon Oct 29, 2018 2:19 am    Post subject: Reply with quote

Are you using elogind instead of ConsoleKit, by any chance? I am and I had to copy my bespoke suspend/resume hook scripts from /etc/pm/sleep.d/ to /lib/elogind/system-sleep/ and modify them to cater for new $1 ('pre' or 'post') and $2 ('suspend', 'hibernate', or 'hybrid-sleep'). For example:

Code:
#!/bin/bash
case $1/$2 in
  pre/*)
    # Put here any commands you want to be run when suspending or hibernating.
    ;;
  post/*)
    # Put here any commands you want to be run when resuming from suspension or thawing from hibernation.
    ;;
esac

(If you happen to be using systemd rather than elogind, I assume something similar would apply, given that elogind is a fork of systemd-logind.)
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum