[Pm-utils] [PATCH] Proposal of auto-hibernate feature

Michael Biebl mbiebl at gmail.com
Fri Nov 20 14:33:11 PST 2009


2009/11/20 Christian Krause <chkr at plauener.de>:
> Hi,
>
> Ever since I've started to use my netbook under Linux I've missed
> quite much the feature of "auto-hibernate" which was available in windows:
>
> In order to save as much battery power as possible Windows did the
> following:
>
> - after some minutes of inactivity (or closing the LID) the netbook
> was suspended (to RAM)
>
> - if the user has woken it up during the next 15 minutes, it just
> resumed quickly
>
> - otherwise it woke up automatically only to fully hibernate now
>
> By using this process the user didn't had to think about what would
> be the best option to save power or what he must do to prevent that the
> suspend mode would drain the battery, everything was done completely
> automatically. Especially for only occasional usage of the netbook/laptop
> it was very handy and so the time until the next recharge was quite long.
>
> Using hybrid-suspend was not an option, because even if it would enable
> the user to resume after a complete power-loss it does not prevent draining
> the battery...
>
>
> I've missed that feature so much, that Ingo van Lil and I have put together
> an extension to pm-utils which implements this feature.
>
> It is implemented by only one additional file in /usr/lib/pm-utils/sleep.d/
> and a configuration file in /etc). Both files are attached to this mail.
>
>
> What's your opinion about this idea?
> Is there a chance to integrate this into the official pm-utils?
> If yes, we would certainly help to achieve this! ;-)

I think this is a very neat feature. I would prefer though if it
doesn't use a separate configuration file.
If it is for setting  TIME_TO_HIBERNATE only, I'd rather prefer if it
would use the common mechanism by dropping a file in /etc/pm/config.d.

I also think, that ideally such setting is configured with a GUI in
the desktop session.
Maybe it would make sense to extend DK-power/gnome-power-manager, so
such options can be configured within g-p-m and passed down to
pm-suspend (via a command line switch).

I CCed Richard, as I'm interested what he thinks about that.

Cheers,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the Pm-utils mailing list