Help!

default hibernate method

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Laptop RSS
Next:  Accepted mp3diags 0.99.06.042-1 (source i386 all)  
Author Message
Dot Deb
External


Since: Apr 29, 2005
Posts: 6



PostPosted: Sun Oct 25, 2009 9:10 am    Post subject: default hibernate method
Archived from groups: linux>debian>laptop (more info?)

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.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Stefan Monnier
External


Since: Mar 31, 2005
Posts: 79



PostPosted: Sun Oct 25, 2009 3:10 pm    Post subject: Re: default hibernate method [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> 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.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Dot Deb
External


Since: Apr 29, 2005
Posts: 6



PostPosted: Sun Oct 25, 2009 5:10 pm    Post subject: Re: default hibernate method [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, Oct 25, 2009 at 7:35 PM, Stefan Monnier
<monnier.DeleteThis@iro.umontreal.ca> 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.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Stefan Monnier
External


Since: Mar 31, 2005
Posts: 79



PostPosted: Tue Oct 27, 2009 1:10 am    Post subject: Re: default hibernate method [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>> 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.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Laptop All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum