View previous topic :: View next topic |
Author |
Message |
Frautoincnam Apprentice
Joined: 19 May 2017 Posts: 294
|
Posted: Sun Oct 28, 2018 11:23 pm Post subject: powerdevil doesn't read /etc/pm/sleep.d/* anymore |
|
|
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 |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Mon Oct 29, 2018 2:19 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|