[systemd-devel] [PATCH] Add support for TuxOnIce hibernation

Julien Muchembled jm at jmuchemb.eu
Tue Apr 29 05:36:33 PDT 2014


Le 04/29/14 13:39, Kay Sievers a écrit :
> On Tue, Apr 29, 2014 at 1:16 PM, Julien Muchembled <jm at jmuchemb.eu> wrote:
>> Homepage: http://tuxonice.net/
>> ---
>>  src/shared/sleep-config.c | 6 ++++++
>>  1 file changed, 6 insertions(+)
>>
>> diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c
>> index cf1cd40..d1f7fb1 100644
>> --- a/src/shared/sleep-config.c
>> +++ b/src/shared/sleep-config.c
>> @@ -224,6 +224,12 @@ static bool enough_memory_for_hibernation(void) {
>>          size_t size = 0, used = 0;
>>          int r;
>>
>> +        /* TuxOnIce is an alternate implementation for hibernation.
>> +         * It can be configured to compress the image to a file or an inactive
>> +         * swap partition, so there's nothing more we can do here. */
>> +        if (access("/sys/power/tuxonice", F_OK) == 0)
> 
> Is this available in the upstream kernel, or planned to to be merged?

It's not available in vanilla.
I don't know if it's planned to be merged.

> Systemd does not support any unmerged kernel features, unless there a
> very strong strategic reason to do that.

I use Debian, which has just packaged version 208, and hibernate key stopped working after upgrading from 204. Rebuilding systemd with this patch is the only option.

I am the maintainer a TOI user interface for Debian[1] and I recently added systemd support to it[2]
This patch could be a Debian patch to systemd package but it would help all dists that support TOI if it was merged upstream.

I use TOI since 2006 and given its quality, I hope you will accept such a small and simple patch.

Julien

[1] http://packages.qa.debian.org/t/tuxonice-userui.html
[2] http://anonscm.debian.org/gitweb/?p=collab-maint/tuxonice-userui.git;a=commit;h=aed3cfd321440118575d52ee54dbf07ebe5a2987


More information about the systemd-devel mailing list