[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 07:27:51 PDT 2013


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

--- Comment #18 from Zbigniew Jedrzejewski-Szmek <zbyszek at in.waw.pl> ---
On Mon, Mar 18, 2013 at 01:00:48PM +0000, bugzilla-daemon at freedesktop.org
wrote:
> --- Comment #15 from Lennart Poettering <lennart at poettering.net> ---
> Hmm, I'd prefer if --action= would simply pull the selected actions to the
> front instead of just dropping all others?
People might use it in cases when e.g. 'mem' hangs, but 'freeze'
works. So if they took the pains to configure something, let's just
use whatever they specified. The switch already accepts multiple options in
order of preference.

> Note that we have to update logind's
> CanSuspend() code to look for the other verbs too, and it would be good if we
Oh, I missed that. Making CanSuspend() smart enough to look only at configured
verbs is not really an option, unless the configuration was done in a different
way. Making CanSuspend() only look at configured verbs would be a good reason
to move the configuration to e.g. /etc/systemd/system.conf and read it from
there in both programs.

> 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.
I don't know, see above.

> 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/1c910c55/attachment.html>


More information about the systemd-bugs mailing list