default hibernate method

View: New views
6 Messages — Rating Filter:   Alert me  

default hibernate method

by Dot Deb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Recently I found a problem with the hibernate method on my
lenovo/thinkpad/x200s.
It seems that the platform method performed two actions (see:
http://www.nabble.com/Battery-discharge-during-hibernation-td22417171.html)
- first prepare a ram image
- then suspend to disk
As far as I can understand, this is intended for a quicker resume.

However this causes energy drainage from battery in the "hibernate"
status to keep the RAM image alive. This behaviour is not desirable.

The solution is to use the "shutdown" method instead of the "platform":

                echo shutdown > /sys/power/disk

The problem is that I don't know how to implement it permanently in a
clean way. I'm forced to place a hook somewhere in the boot process in
order to set this option.

I would have expected the existence of some /etc/defaults/pm in which
setting the default hibernate method.

Is that anything that escapes me?

Alberto


--
To UNSUBSCRIBE, email to debian-laptop-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: default hibernate method

by Renaud Casenave-Péré-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have the exact same problem on my x61s...
What kind of hook do you use ?
And when and where do you place such thing ?

I am sorry, I am not really an expert in the boot process...
I tried putting something in sysfs.conf, but it only works after a complete boot.

--
Renaud Casenave-Péré

Re: default hibernate method

by Bob Proulx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dot Deb wrote:
> Recently I found a problem with the hibernate method on my
> lenovo/thinkpad/x200s.

What method do you use to invoke hiberate?  For example having the
GNOME Desktop running and then using the Power Manager icon by default
in the Notification Area and then selecting the Hibernate action.  Or
do you invoke hibernation using a different method?

> The solution is to use the "shutdown" method instead of the "platform":
> echo shutdown > /sys/power/disk
>
> The problem is that I don't know how to implement it permanently in a
> clean way. I'm forced to place a hook somewhere in the boot process in
> order to set this option.

As with any large collection of software there are many different ways
to do something.  Some ways will be preferred by one person more than
a different method.  A lot of it will be personal preference.  I will
suggest one method but that doesn't mean I wouldn't agree that a
different one is better.  :-)

There is a file /etc/rc.local that is invoked at boot time.  If you
add commands there they will be executed every time the machine is
booted.  That might be the easiest place for you to configure this.

  /etc/rc.local

[Note: This became supported in Etch for better compatibility with
other systems that primarily used that feature.]

> I would have expected the existence of some /etc/defaults/pm in which
> setting the default hibernate method.

As far as I know these have not yet been converged into a grand
unified configuration because there are different ways in the kernel
to do it and the default one isn't good for everyone so many need to
patch it.  I don't know if in the upstream one method has clearly one
the battle yet or not.  (I am pulling for suspend2, aka TuxOnIce! :-)
Because there are many different independent systems that may be used
to suspend/hibernate a machine they aren't coordinated.  Each
userspace wrapper has their own configuration process.  GNOME versus
KDE versus systems without X Windows versus other.  But I agree it
would be nice if they were coordinated.

Bob


signature.asc (204 bytes) Download Attachment

Re: default hibernate method

by Stefan Monnier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> The solution is to use the "shutdown" method instead of the "platform":

> echo shutdown > /sys/power/disk

You can do such a thing in /etc/sysfs.conf (assuming you have
installed sysfsutils).  If you have installed uswsusp, then this setting
will be ignored, and instead you need to change /etc/uswsusp to say

   shutdown method = shutdown


-- Stefan


--
To UNSUBSCRIBE, email to debian-laptop-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: default hibernate method

by Dot Deb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Oct 25, 2009 at 7:35 PM, Stefan Monnier
<monnier@...> wrote:
> You can do such a thing in /etc/sysfs.conf (assuming you have
> installed sysfsutils).  If you have installed uswsusp, then this setting
> will be ignored, and instead you need to change /etc/uswsusp to say

I use pm-utils. The I finally found (I've been told) that the right
(debian) way is to create a file in /etc/pm/config.d containing the line
HIBERNATE_MODE="shutdown"

That's it.

Thank you all for the suggestions,
augh


--
To UNSUBSCRIBE, email to debian-laptop-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: default hibernate method

by Stefan Monnier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> You can do such a thing in /etc/sysfs.conf (assuming you have
>> installed sysfsutils).  If you have installed uswsusp, then this setting
>> will be ignored, and instead you need to change /etc/uswsusp to say

> I use pm-utils. The I finally found (I've been told) that the right
> (debian) way is to create a file in /etc/pm/config.d containing the line
> HIBERNATE_MODE="shutdown"

Interesting.  AFAIK, pm-utils uses uswsusp if it's installed, which
I guess is the reason than my /etc/uswsusp.conf setting is
still sufficient.
Thanks for the info,


        Stefan


--
To UNSUBSCRIBE, email to debian-laptop-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...