2008-10-06 11:16:35

by Renato S. Yamane

[permalink] [raw]
Subject: [Bug 10797] Battery is drained after poweroff

Hi,

Can someone help us with this bug?
<http://bugzilla.kernel.org/show_bug.cgi?id=10797>

Same problem is reported in Ubuntu:
<https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784>

This is not a hardware problem, because if the same laptop is poweroff
by Windows, battery charge don't change.

And, if I suspend to ram/disk BEFORE poweroff, battery charge don't
change (suspend to ram/disk --> WakeUp --> Poweroff).

Best regards,
Renato


2008-10-07 13:42:43

by Pavel Machek

[permalink] [raw]
Subject: Re: [Bug 10797] Battery is drained after poweroff

On Mon 2008-10-06 08:16:24, Renato S. Yamane wrote:
> Hi,
>
> Can someone help us with this bug?
> <http://bugzilla.kernel.org/show_bug.cgi?id=10797>
>
> Same problem is reported in Ubuntu:
> <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784>
>
> This is not a hardware problem, because if the same laptop is poweroff
> by Windows, battery charge don't change.

...and it is not linux problem because it works okay on my thinkpad. See?

> And, if I suspend to ram/disk BEFORE poweroff, battery charge don't
> change (suspend to ram/disk --> WakeUp --> Poweroff).

Which machine is that? Can you find out which device eats power? (It
should be warm).

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2008-10-07 16:06:38

by Renato S. Yamane

[permalink] [raw]
Subject: Re: [Bug 10797] Battery is drained after poweroff

Pavel Machek wrote:
Renato S. Yamane wrote:
>> Can someone help us with this bug?
>> <http://bugzilla.kernel.org/show_bug.cgi?id=10797>
>>
>> Same problem is reported in Ubuntu:
>> <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784>
>>
>> This is not a hardware problem, because if the same laptop is poweroff
>> by Windows, battery charge don't change.
>
> ...and it is not linux problem because it works okay on my thinkpad. See?

Yes, this is a Linux problem (at least in release >= 2.6.22)
This happening *only* in Linux (Kernel >=2.6.22).

>> And, if I suspend to ram/disk BEFORE poweroff, battery charge don't
>> change (suspend to ram/disk --> WakeUp --> Poweroff).
>
> Which machine is that? Can you find out which device eats power? (It
> should be warm).

This problem is happening in Toshiba Satellite M45-S355, Toshiba Equium
A100-306, HP DV8000, HP DV9500, Dell Latitude D630, Toshiba M110, Sony
Vaio VGN-S2XP, Toshiba Satellite A105-S4384, Toshiba Satellite M55-S3314
and Toshiba Satellite A105-S2201 as you can see in bug report listed above.

And is impossible find wich device eats power (eaten current is too low,
and is not enought to make hot).

Best regards,
Renato

2008-10-07 18:58:41

by Pavel Machek

[permalink] [raw]
Subject: Re: [Bug 10797] Battery is drained after poweroff

On Tue 2008-10-07 13:06:10, Renato S. Yamane wrote:
> Pavel Machek wrote:
> Renato S. Yamane wrote:
> >> Can someone help us with this bug?
> >> <http://bugzilla.kernel.org/show_bug.cgi?id=10797>
> >>
> >> Same problem is reported in Ubuntu:
> >> <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784>
> >>
> >> This is not a hardware problem, because if the same laptop is poweroff
> >> by Windows, battery charge don't change.
> >
> > ...and it is not linux problem because it works okay on my thinkpad. See?
>
> Yes, this is a Linux problem (at least in release >= 2.6.22)
> This happening *only* in Linux (Kernel >=2.6.22).

Wow, now that's useful info.

I guess you _could_ do git bisect? ;-).

> >> And, if I suspend to ram/disk BEFORE poweroff, battery charge don't
> >> change (suspend to ram/disk --> WakeUp --> Poweroff).
> >
> > Which machine is that? Can you find out which device eats power? (It
> > should be warm).
>
> This problem is happening in Toshiba Satellite M45-S355, Toshiba Equium
> A100-306, HP DV8000, HP DV9500, Dell Latitude D630, Toshiba M110, Sony
> Vaio VGN-S2XP, Toshiba Satellite A105-S4384, Toshiba Satellite M55-S3314
> and Toshiba Satellite A105-S2201 as you can see in bug report listed above.
>
> And is impossible find wich device eats power (eaten current is too low,
> and is not enought to make hot).

So how fast is it eating power... can you estimate Watts eaten?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2008-10-07 19:13:00

by Kok, Auke

[permalink] [raw]
Subject: Re: [Bug 10797] Battery is drained after poweroff

Pavel Machek wrote:
> On Tue 2008-10-07 13:06:10, Renato S. Yamane wrote:
>> Pavel Machek wrote:
>> Renato S. Yamane wrote:
>>>> Can someone help us with this bug?
>>>> <http://bugzilla.kernel.org/show_bug.cgi?id=10797>
>>>>
>>>> Same problem is reported in Ubuntu:
>>>> <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784>
>>>>
>>>> This is not a hardware problem, because if the same laptop is poweroff
>>>> by Windows, battery charge don't change.
>>> ...and it is not linux problem because it works okay on my thinkpad. See?
>> Yes, this is a Linux problem (at least in release >= 2.6.22)
>> This happening *only* in Linux (Kernel >=2.6.22).
>
> Wow, now that's useful info.
>
> I guess you _could_ do git bisect? ;-).
>
>>>> And, if I suspend to ram/disk BEFORE poweroff, battery charge don't
>>>> change (suspend to ram/disk --> WakeUp --> Poweroff).
>>> Which machine is that? Can you find out which device eats power? (It
>>> should be warm).
>> This problem is happening in Toshiba Satellite M45-S355, Toshiba Equium
>> A100-306, HP DV8000, HP DV9500, Dell Latitude D630, Toshiba M110, Sony
>> Vaio VGN-S2XP, Toshiba Satellite A105-S4384, Toshiba Satellite M55-S3314
>> and Toshiba Satellite A105-S2201 as you can see in bug report listed above.
>>
>> And is impossible find wich device eats power (eaten current is too low,
>> and is not enought to make hot).
>
> So how fast is it eating power... can you estimate Watts eaten?
> Pavel

perhaps wake-on-lan and friends are enabled? check the bios etc...

Auke

2008-10-07 19:26:36

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [Bug 10797] Battery is drained after poweroff

On Monday, 6 of October 2008, Renato S. Yamane wrote:
> Hi,
>
> Can someone help us with this bug?
> <http://bugzilla.kernel.org/show_bug.cgi?id=10797>
>
> Same problem is reported in Ubuntu:
> <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784>
>
> This is not a hardware problem, because if the same laptop is poweroff
> by Windows, battery charge don't change.
>
> And, if I suspend to ram/disk BEFORE poweroff, battery charge don't
> change (suspend to ram/disk --> WakeUp --> Poweroff).

Have you tried 2.6.27-rc9?

Rafael

2008-10-07 22:27:00

by Pavel Machek

[permalink] [raw]
Subject: Re: [Bug 10797] Battery is drained after poweroff


> >>>> ...and it is not linux problem because it works okay on my thinkpad. See?
> >>>
> >>> Yes, this is a Linux problem (at least in release >= 2.6.22)
> >>> This happening *only* in Linux (Kernel >=2.6.22).
> >>
> >> Wow, now that's useful info.
>
> I don?t comment this before because we already said this in bug reports
> (links above).

Sorry about that. lkml has rather big traffic.

> >> I guess you _could_ do git bisect? ;-).
>
> So sorry, but I really don?t now how can I do this.
> I?m an user, not developer. Can you send me a "how-to" about git
> bisect?

http://kerneltrap.org/node/11753

There may be better HOWTOs around.

> >>> And is impossible find wich device eats power (eaten current is too low,
> >>> and is not enought to make hot).
> >>
> >> So how fast is it eating power... can you estimate Watts eaten?
>
> Eaten ~5% of battery each 10h.

Lets assume 40Wh battery... 0.5% per hour... that means 200 hours to
empty. 0.5% per hour is 40 * 0.005 Wh/h = 0.2 W AFAICT... hmm, that's
quite low. Debugging this will not be easy :-(.
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2008-10-07 22:31:48

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [Bug 10797] Battery is drained after poweroff

On Wednesday, 8 of October 2008, Renato S. Yamane wrote:
> Kok,?Auke wrote:
> > Pavel Machek wrote:
> >> Renato S. Yamane wrote:
> >>> Pavel Machek wrote:
> >>> Renato S. Yamane wrote:
> >>>>> Can someone help us with this bug?
> >>>>> <http://bugzilla.kernel.org/show_bug.cgi?id=10797>
> >>>>>
> >>>>> Same problem is reported in Ubuntu:
> >>>>> <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784>
> >>>>>
> >>>>> This is not a hardware problem, because if the same laptop is poweroff
> >>>>> by Windows, battery charge don't change.
> >>>>
> >>>> ...and it is not linux problem because it works okay on my thinkpad. See?
> >>>
> >>> Yes, this is a Linux problem (at least in release >= 2.6.22)
> >>> This happening *only* in Linux (Kernel >=2.6.22).
> >>
> >> Wow, now that's useful info.
>
> I don?t comment this before because we already said this in bug reports
> (links above).
>
> >> I guess you _could_ do git bisect? ;-).
>
> So sorry, but I really don?t now how can I do this.
> I?m an user, not developer. Can you send me a "how-to" about git bisect?

Seriously, this may be the fastest way to find out where the problem is.

It follows from your reports that the problem is present in 2.6.22, although
it wasn't present in 2.6.21. If that's correct, you can do the following:
1) Clone the Linus' -git repository (if you have a copy already, you can use it)
2) Go to the directory containing your copy of the Linus' repo and do
# git bisect start
# git bisect good v2.6.21
# git bisect bad v2.6.22
3) Wait for git to select a commit to test, build the kernel and test it.
If it works correctly, do
# git bisect good
Otherwise, do
# git bisect bad
4) Repeat 3) until you end up with single commit.

[Unfortunately this procedure may not converge for you (eg. you may encounter
a kernel version that won't compile etc.), but hopefully it will. Then, you
will know which particular commit caused the problem to appear.]

5) When you're done, do
# git bisect reset

Thanks,
Rafael

2008-10-18 20:08:31

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [Bug 10797] Battery is drained after poweroff

On Saturday, 18 of October 2008, Renato S. Yamane wrote:
> Rafael?J.?Wysocki wrote:
> > It follows from your reports that the problem is present in 2.6.22, although
> > it wasn't present in 2.6.21. If that's correct, you can do the following:
> > 1) Clone the Linus' -git repository (if you have a copy already, you can use
> > it)
> > 2) Go to the directory containing your copy of the Linus' repo and do
> > # git bisect start
> > # git bisect good v2.6.21
> > # git bisect bad v2.6.22
> > 3) Wait for git to select a commit to test, build the kernel and test it.
>
> $ git bisect good v2.6.22
> $ git bisect bad v2.6.23
> Bisecting: *3554* revisions left to test after this
>
> This means that I need compile kernel *3554* times?

No, you'll need to compile it approximately log_2(3554) times which is not
that bad. :-)

Thanks,
Rafael

2008-10-25 23:43:09

by Justin P. Mattock

[permalink] [raw]
Subject: Re: [Bug 10797] Battery is drained after poweroff

On Sat, Oct 25, 2008 at 6:23 AM, Renato S. Yamane
<[email protected]> wrote:
> Renato S. Yamane wrote:
>> One more information:
>> This bug don't happening in Kernel 2.6.26-8 from Debian Lenny.
>> But still happening in 2.6.27.3 pristine kernel.
>
> Maybe this is the root problem (from Debian changelog):
> *Fix ACPI EC GPE storm detection. (closes:
> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494546>
>
> <http://lkml.org/lkml/2008/7/19/19>
>
> Best regards,
> Renato
>
>

Could be, can't remember what happened that day
(maybe too much beer), anyways I have noticed
battery power being lost after power off, but not yet for
2.6.28, I think around 2.6.25-or-26, but when it happened
it was seldom, or in any case once or twice, not enough times
for me to say anything, just figured it was leaving the system
unplugged while in suspend.

--
Justin P. Mattock