<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Please add the ability to go into standby mode to systemd-sleep."
href="https://bugs.freedesktop.org/show_bug.cgi?id=57793#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Please add the ability to go into standby mode to systemd-sleep."
href="https://bugs.freedesktop.org/show_bug.cgi?id=57793">bug 57793</a>
from <span class="vcard"><a class="email" href="mailto:lennart@poettering.net" title="Lennart Poettering <lennart@poettering.net>"> <span class="fn">Lennart Poettering</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=57793#c14">comment #14</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=76668" name="attach_76668" title="add --action=freeze,standby,etc to systemd-sleep">attachment 76668</a> <a href="attachment.cgi?id=76668&action=edit" title="add --action=freeze,standby,etc to systemd-sleep">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=57793&attachment=76668'>[review]</a> [review]
> add --action=freeze,standby,etc to systemd-sleep
>
> Here's a patch (two actually, the first one is prep), which allows freeze
> and standby to be used. I'm not terribly happy with the way it works because
> modyfing a unit file is a relatively complex thing for the administrator,
> and thus making the change requires 3 lines of code:
> # /etc/systemd/system/systemd-suspend.service.d/suspend.conf
> [Service]
> ExecStart=
> ExecStart=/usr/lib/systemd/systemd-sleep --action=freeze suspend
>
> But OTOH, changing the suspend mode is a relatively uncommon request, so
> maybe it's OK.</span >
Hmm, I'd prefer if --action= would simply pull the selected actions to the
front instead of just dropping all others? Note that we have to update logind's
CanSuspend() code to look for the other verbs too, and it would be good if we
wouldn't have to make that code configurable too. Hence: Make CanSuspend() (and
friends) simply return true if *any* suspend/freeze/standby verb is available,
but then allow the user via --action to choose which ones is preferredly used.
And yupp, I think making this configurable via copying a unit file sounds good
enough to me. This should be an exotic setting, and not a common one, and hence
a clean but possibly somewhat obscure way to configure this sounds perfect to
me.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>