Laptop battery

Hi,

I have a Compaq Presario CQ61, that is, a cheap HP. Dual boot W7/oS 11.2.
It works fine, but I have a problem that started (or I noticed) a month or
so ago.

I hibernate the machine (linux), and when I awake the thing two or three
days later, the battery applet says that the battery is down from 100% to,
say, 80%.

So, I think, batteries don’t last, the thing is about a year old…

But I did an experiment. I hibernated and then removed the battery. When I
restore, about two days later, the battery says 100% full.

What?

Then there must be something using the battery when hibernated to disk…
how can it be? All LEDs are off.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 12/17/2010 03:08 PM, Carlos E. R. wrote:
> Hi,
>
> I have a Compaq Presario CQ61, that is, a cheap HP. Dual boot W7/oS 11.2.
> It works fine, but I have a problem that started (or I noticed) a month or
> so ago.
>
> I hibernate the machine (linux), and when I awake the thing two or three
> days later, the battery applet says that the battery is down from 100% to,
> say, 80%.
>
> So, I think, batteries don’t last, the thing is about a year old…
>
> But I did an experiment. I hibernated and then removed the battery. When I
> restore, about two days later, the battery says 100% full.
>
> What?
>
> Then there must be something using the battery when hibernated to disk…
> how can it be? All LEDs are off.

The only thing I can think of is “Wake on LAN”. Does your BIOS let you disable
that feature? You can check to see if the wired connector shows a link when in
hibernation.

On 2010-12-17 22:22, Larry Finger wrote:

> The only thing I can think of is “Wake on LAN”. Does your BIOS let you disable
> that feature? You can check to see if the wired connector shows a link when in
> hibernation.

Nope, I normally use the WiFi because my router only has 4 mouths all in
use already.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Wake-on-LAN could be still running even without a network cable in the network port of your PC (it depends on the mainboard/BIOS).

On 2010-12-19 06:36, NIXadmin wrote:
>
> Wake-on-LAN could be still running even without a network cable in the
> network port of your PC (it depends on the mainboard/BIOS).

It was, and is, disabled.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 12/19/2010 07:08 AM, Carlos E. R. wrote:
> On 2010-12-19 06:36, NIXadmin wrote:
>>
>> Wake-on-LAN could be still running even without a network cable in the
>> network port of your PC (it depends on the mainboard/BIOS).
>
> It was, and is, disabled.
>
Does this laptop have nVidia OHGI controllers? If so, then 11.4 should fix the
problem with the following patch:

commit 3df7169e73fc1d71a39cffeacc969f6840cdf52b
Author: Alan Stern <stern@rowland.harvard.edu>
Date: Fri Sep 10 16:37:05 2010 -0400

OHCI: work around for nVidia shutdown problem

This patch (as1417) fixes a problem affecting some (or all) nVidia
chipsets. When the computer is shut down, the OHCI controllers
continue to power the USB buses and evidently they drive a Reset
signal out all their ports. This prevents attached devices from going
to low power. Mouse LEDs stay on, for example, which is disconcerting
for users and a drain on laptop batteries.

The fix involves leaving each OHCI controller in the OPERATIONAL state
during system shutdown rather than putting it in the RESET state.
Although this nominally means the controller is running, in fact it’s
not doing very much since all the schedules are all disabled. However
there is ongoing DMA to the Host Controller Communications Area, so
the patch also disables the bus-master capability of all PCI USB
controllers after the shutdown routine runs.

The fix is applied only to nVidia-based PCI OHCI controllers, so it
shouldn’t cause problems on systems using other hardware. As an added
safety measure, in case the kernel encounters one of these running
controllers during boot, the patch changes quirk_usb_handoff_ohci()
(which runs early on during PCI discovery) to reset the controller
before anything bad can happen.

Reported-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: David Brownell <david-b@pacbell.net>
Tested-by: Pali Rohár <pali.rohar@gmail.com>
CC: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

This patch broke my system a little as I get many, many “unable to enumerate
port 5” messages in my logs, but it may fix yours.

On 2010-12-19 17:14, Larry Finger wrote:

> Does this laptop have nVidia OHGI controllers? If so, then 11.4 should fix the
> problem with the following patch:

> OHCI: work around for nVidia shutdown problem

That’s an interesting one. And this happens during suspend to disk, not
ram? Wow.

Anyway, I think this laptop is mostly Intel. I did a “hwinfo | grep -i
nvidia” which returned blank.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)