[systemd-bugs] [Bug 57793] Please add the ability to go into standby mode to systemd-sleep.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Mar 18 06:00:48 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=57793
--- Comment #15 from Lennart Poettering <lennart at poettering.net> ---
(In reply to comment #14)
> Created attachment 76668 [details] [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.
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130318/7c035982/attachment.html>
More information about the systemd-bugs
mailing list