[systemd-bugs] [Bug 58679] systemd overriding /sys/power/disk with "platform" on hibernate

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 24 05:33:17 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=58679

--- Comment #3 from tekrotzen <tekrotzen+bugzilla at gmail.com> ---
I guess you're right.
I don't know what is visible with a DMI check, and saw the following in the
kernel docs, so I thought I was maybe not alone... ;)

___________
http://www.kernel.org/doc/Documentation/power/swsusp.txt :

You need to append resume=/dev/your_swap_partition to kernel command
line. Then you suspend by

echo shutdown > /sys/power/disk; echo disk > /sys/power/state

. If you feel ACPI works pretty well on your system, you might try

echo platform > /sys/power/disk; echo disk > /sys/power/state
_______________________

Reason I filled this bug.

But I do completely understand your point.

I was just wondering: as some people seem to use other options, as "reboot"
(see attached bug), maybe a solution could be to grep /sys/power/disk for the
selected option and to use that instead of "platform"?

This way "platform" would still be used if it is the system default, but if for
any reason a user wants to use something else instead it wouldn't be
overwritten:
This could be a cheap way to allow testing and customisation...

Not sure if I'm missing something obvious, in this case please accept my
appologies...

And thanks for the quick feedback, in any case!

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20121224/15b21c1d/attachment.html>


More information about the systemd-bugs mailing list