You are not logged in.
Pages: 1
Hi! I'm using a non-systemd distro (Void Linux).
When I try to hibernate my PC via logout dialog it just goes to sleep, PC is still on.
Void Linux built-in command ZZZ (inherited from OpenBSD I think) works as expected forcing system to hibernate and switching the PC off.
Is there any ability to make XFCE's hibernate option work as expected? Or call ZZZ when Hibernate option is selected in logout dialog? Thanks!
Offline
Hello and welcome.
Unfortunately, it is hard coded. However, they may be a way to fool it to run ZZZ during a hibernate event.
https://git.xfce.org/xfce/xfce4-session … own.c#n317
In the xfsm_shutdown_try_hibernate() function, it first tries systemd hibernate, then consolekit hibernate then a fallback option. You've stated that void linux doesn't come with systemd, it probably doesn't use consolekit, so it would use the fallback option.
https://git.xfce.org/xfce/xfce4-session … ack.c#n359
In the xfsm_shutdown_fallback_try_action() function, for the hibernate case it references the UP_BACKEND_HIBERNATE_COMMAND variable.
https://git.xfce.org/xfce/xfce4-session … n-common.h
The UP_BACKEND_HIBERNATE_COMMAND for Linux systems is set to "/usr/sbin/pm-hibernate"
So you could try to replace the pm-hibernate command with an executable shell script that would run the ZZZ command or directly link the ZZZ command to pm-hibernate.
Not sure if it will work, but might be worth a try.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks for your reply!
The problem turned out to be much more simple. The problem was in confusing Russian localization: the original English entry of "Hibernate" was translated in Russian as "Sleep mode" (I've translated meaning in English for your convenience), and original "Hybrid Sleep" was translated as "Hibernate".
Taking this into account everything works as expected.
Sorry for wasting your time!
Offline
Pages: 1
[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 524.59 KiB (Peak: 525.44 KiB) ]