Re: laptop suspend and battery runs dry

2009-08-24 Thread David Vasek

On Tue, 25 Aug 2009, Chris wrote:


On Mon, Aug 24, 2009 at 11:54 PM, L. V. Lammert wrote:

On Mon, 24 Aug 2009, Chris wrote:


I have an IBM T41 that runs current snapshot. I put it in suspend mode
with apm -z or zzz but when I wake the system, the battery runs dry.
Is there any way to avoid this other than turning off the the system
completely and turning it back on again?

Thanks.


Check out the difference between suspend & hibernate; suspend uses battery
power to maintain memory state for a quicker restore, hibernate flushes
memory to disk and uses no battery power.


Is there any way to hibernate the box instead of suspending it with
"apm -z" or "zzz"?


You have to create a "hibernation" fdisk partition on your disk and use 
tphdisk utility from ports to create a hibernation file there. Whole 
procedure is described in the built-in help in the utility.


When you are finished, just press Fn-F12. Whether there is any way to 
start hibernation from software is still an unresolved question to me.


Also, bear in mind that hibernation writes all your RAM contents to disk 
unencrypted, making swap and any disk encryption pointless.


Regards,
David



Re: laptop suspend and battery runs dry

2009-08-24 Thread Chris
On Mon, Aug 24, 2009 at 11:54 PM, L. V. Lammert wrote:
> On Mon, 24 Aug 2009, Chris wrote:
>
>> I have an IBM T41 that runs current snapshot. I put it in suspend mode
>> with apm -z or zzz but when I wake the system, the battery runs dry.
>> Is there any way to avoid this other than turning off the the system
>> completely and turning it back on again?
>>
>> Thanks.
>>
> Check out the difference between suspend & hibernate; suspend uses battery
> power to maintain memory state for a quicker restore, hibernate flushes
> memory to disk and uses no battery power.

Is there any way to hibernate the box instead of suspending it with
"apm -z" or "zzz"?

Thanks.



Re: laptop suspend and battery runs dry

2009-08-24 Thread Jonathan Thornburg
David Vasek wrote
> On the other hand, I can confirm similar behaviour with APM - complete
> discharge of battery within around a day in my APM suspended T42. As I
> have never run any other OS on my ThinkPad but OpenBSD, I thought short
> battery life in suspend was normal with ThinkPads and used hibernation
> instead. Now I see it isn't normal. If there is somebody experienced in
> power management working on this issue, I will be happy to help.

I see the same behavior with both of my pair of T42 (currently running
4.4-stable).
[Yes, I know that's out of date.  I pre-ordered the 4.5
CD set, and it's been on my desk for 2 months now.  Maybe
sometime soon life will be un-hectic enough that I'll be
able to install it...]
That this behavior also didn't change when I had to have the motherboard
replaced in one of the T42 last month.

Interestingly, I did *not* see this behavior with a T43p or on any of
2 different T41p, running various OpenBSD versions from 3.9-stable up
through 4.3-stable:  Each of these had a battery lifetime of > 30 days
when in APM suspend-to-RAM state.  (And that "> 30 days" may well be
more a measurement of internal leakage current in the battery than
actual power draw by the laptop.)  Unfortunately, I don't have any of
these machines available for comparison any more (I had to give the T43p
back when I left that job, and both of the T41p suffered fatal hardware
failures).

I wonder what's going on here?

ciao,

-- 
-- "Jonathan Thornburg [remove -animal to reply]" 

   Dept of Astronomy, Indiana University, Bloomington, Indiana, USA
   "Washing one's hands of the conflict between the powerful and the
powerless means to side with the powerful, not to be neutral."
  -- quote by Freire / poster by Oxfam



Re: laptop suspend and battery runs dry

2009-08-24 Thread David Vasek

On Mon, 24 Aug 2009, Jan-Erik Skata wrote:


On Mon, Aug 24, 2009 at 2:30 PM, Chris  wrote:


I have an IBM T41 that runs current snapshot. I put it in suspend mode
with apm -z or zzz but when I wake the system, the battery runs dry.
Is there any way to avoid this other than turning off the the system
completely and turning it back on again?

Thanks.



This is a well-known issue on some ThinkPads. I have the same problem on my
X40 running Linux.

http://www.thinkwiki.org/wiki/Problem_with_high_power_drain_in_ACPI_sleep



The issue mentioned on Thinkwiki seems to be ACPI related, not APM 
related.


On the other hand, I can confirm similar behaviour with APM - complete 
discharge of battery within around a day in my APM suspended T42. As I 
have never run any other OS on my ThinkPad but OpenBSD, I thought short 
battery life in suspend was normal with ThinkPads and used hibernation 
instead. Now I see it isn't normal. If there is somebody experienced in 
power management working on this issue, I will be happy to help.


Regards,
David



Re: laptop suspend and battery runs dry

2009-08-24 Thread David Vasek

On Mon, 24 Aug 2009, L. V. Lammert wrote:


Check out the difference between suspend & hibernate; suspend uses battery
power to maintain memory state for a quicker restore, hibernate flushes
memory to disk and uses no battery power.


Sorry to hijack your thread. Could anybody please answer this (related) 
question: is it possible to start hibernation from software in OpenBSD, or 
is pressing Fn-F12 on the keyboard the only way to do so? Thanks for your 
help.


Regards,
David



Re: laptop suspend and battery runs dry

2009-08-24 Thread Jan-Erik Skata
On Mon, Aug 24, 2009 at 2:30 PM, Chris  wrote:

> I have an IBM T41 that runs current snapshot. I put it in suspend mode
> with apm -z or zzz but when I wake the system, the battery runs dry.
> Is there any way to avoid this other than turning off the the system
> completely and turning it back on again?
>
> Thanks.
>
>
This is a well-known issue on some ThinkPads. I have the same problem on my
X40 running Linux.

http://www.thinkwiki.org/wiki/Problem_with_high_power_drain_in_ACPI_sleep



Re: laptop suspend and battery runs dry

2009-08-24 Thread L. V. Lammert
On Mon, 24 Aug 2009, Chris wrote:

> I have an IBM T41 that runs current snapshot. I put it in suspend mode
> with apm -z or zzz but when I wake the system, the battery runs dry.
> Is there any way to avoid this other than turning off the the system
> completely and turning it back on again?
>
> Thanks.
>
Check out the difference between suspend & hibernate; suspend uses battery
power to maintain memory state for a quicker restore, hibernate flushes
memory to disk and uses no battery power.

Lee



Re: laptop suspend and battery runs dry

2009-08-24 Thread Lars Nooden
Chris wrote:
> I have an IBM T41 that runs current snapshot. I put it in suspend mode
> with apm -z or zzz but when I wake the system, the battery runs dry.
> Is there any way to avoid this other than turning off the the system
> completely and turning it back on again?

I see similar for current on an Asus EEE 701.  zzz won't actually put it
into suspend, but if I close the lid for any length of time it really
burns through the charge on the battery.

-Lars