[systemd-devel] Linux 3.6 hybrid-sleep

poma pomidorabelisima at gmail.com
Wed Oct 17 00:59:19 PDT 2012


On 10/15/2012 05:06 PM, Lennart Poettering wrote:
> On Mon, 15.10.12 11:40, Federico Di Pierro (nierro92 at gmail.com) wrote:
> 
>> Hi!
>> I'm using systemd 194 in archlinux. I read that linux 3.6 comes with
>> hybrid-sleep, finally.
>> I only rely on systemd to suspend/hibernate (well i use it together with
>> tuxonice to hibernate, but i don't think this can be a problem). So I was
>> wondering: will i be able to hybrid-sleep with systemd only systemd? Or
>> hybrid sleep is still a pm-utils only feature?
> 
> systemd currently has no native support for hybrid suspend+hibernate. It
> should be easy to add this though, but I am not entirely sure how to do
> this best:
> 
> a) it could be a special option of normal suspend, that is enabled
> globally. "systemctl suspend" would then result in this hybrid
> suspend+hibernate state to be entered.
> 
> b) or it could be a special option of normal hibernation, that is
> enabled globally. "systemctl hibernate" would then result in this hybrid
> suspend+hibernate state to be entered.
> 
> c) or it could be an entirely new operation, so that "systemctl hybrid"
> or so would be the way to enter this state.
> 
> The low-level kernel implementation implemented this as b).
> 
> Implementing it as a) is probably a bad idea, since the hybrid
> suspend+hibernate scheme is much slower than suspend. Newer MacOS
> however always goes into hybrid suspend+hibernate where we go into
> suspend-only.
> 
> I am tempted to say that we should expose this as c) instead. But that
> requires us to think how we should actually call this. "systemctl
> hybrid", "systemctl both", "systemctl suspend+hibernate"? All names I
> could come up with suck badly, for a variety of reasons.
> 
> Dunno, opinions?
> 
> Lennart
> 

Reading a topic -
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=62c552ccc3eda1198632a4f344aa32623d226bab
… suspend to both …
"systemctl suspend-to-both" ;)

Cheers,
poma




More information about the systemd-devel mailing list