You are not logged in.
Hi guys,
I'm looking for a way to permanently change /sys/power/disk to 'shutdown' and to ensure that 'systemctl hibernate' uses 'shutdown' mode. I'm having trouble trouble with platform mode and ACPI on my laptop during hibernate. The kernel documentation recommends trying 'shutdown' mode vs 'platform' mode. Documentation can be found here: https://www.kernel.org/doc/Documentatio … ugging.txt
I can temporarily change /sys/power/disk to shutdown by issuing 'echo shutdown > /sys/power/disk'. However after a reboot 'cat /sys/power/disk' returns '[platform] shutdown reboot suspend'.
I think maybe this can be accomplished with a udev rule, but I don't know how to write it. If there is another/better way please let me know.
Thanks!
Offline
Maybe use tmpfiles, see 'man tmpfiles.d'.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Wouldn't it be power.disk=shutdown in /etc/sysctl.conf? Haven't actually tried it.
Edit: Oh, I think that was for /proc/sys, not /sys, hmm...
Last edited by frostschutz (2015-09-15 00:19:40)
Offline
Sorry for refreshing, but i have the same problem with my desktop. Could somebody tell how to do it?
Offline
You can do this using systemd. Simply put the following in /etc/systemd/sleep.conf:
[Sleep]
HibernateMode=shutdownOffline