2010-04-13 12:43:13

by Mohamed Ikbel Boulabiar

[permalink] [raw]
Subject: Low-Level and Long-Term Battery Control

Hi,

Is there any function in the Linux kernel that control the
charging/discharging of the battery to provide better lifespan ?
(add some years to its life ?)

For Laptops, it is better to extract the battery from the Laptop when
the computer will be on power for a long period.
I ask if the kernel can do such control without the user intention and
in an automatic way.

Some BIOS provide to the user to select whether to block the battery
charging to 50% to make it stand for more time.
And Many people (like me) forget their laptops on power until the
battery no more can hold energy after 2minutes of no power.

I am not sure for the MacBook side, but it seems they don't suffer
from such problem in the same degree as other laptop users.

I think it is a serious problem because if you keep you battery on
power for one week you will detect it becomes holding only 50% of its
energy compared to when first bought.

Thanks,

Mohamed-Ikbel BOULABIAR


2010-04-13 13:24:46

by Tony Vroon

[permalink] [raw]
Subject: Re: Low-Level and Long-Term Battery Control

On Tue, 2010-04-13 at 14:35 +0200, Mohamed Ikbel Boulabiar wrote:
> I ask if the kernel can do such control without the user intention and
> in an automatic way.

Battery charge control is generally a function of the system firmware,
not of the operating system. You might be able to disassemble your DSDT
to see if there is any control of the overall charging schema.
Most firmware does not expose this though.

> Some BIOS provide to the user to select whether to block the battery
> I am not sure for the MacBook side, but it seems they don't suffer
> from such problem in the same degree as other laptop users.

It sounds like those MacBook machines have well-written firmware in that
case, at least where the charging of batteries is concerned.

> I think it is a serious problem because if you keep you battery on
> power for one week you will detect it becomes holding only 50% of its
> energy compared to when first bought.

I would suggest contacting the manufacturer, overcharging of certain
battery chemistries can be a safety hazard. If the machine is in
warranty, it sounds like time for an RMA.

> Thanks,
> Mohamed-Ikbel BOULABIAR

Regards,
--
Tony Vroon
UNIX systems administrator
London Internet Exchange Ltd, Trinity Court, Trinity Street,
Peterborough, PE1 1DA
Registered in England number 3137929
E-Mail: [email protected]


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part

2010-04-19 04:31:33

by Andy Lutomirski

[permalink] [raw]
Subject: Re: Low-Level and Long-Term Battery Control

Mohamed Ikbel Boulabiar wrote:
> Hi,
>
> Is there any function in the Linux kernel that control the
> charging/discharging of the battery to provide better lifespan ?
> (add some years to its life ?)
>
> For Laptops, it is better to extract the battery from the Laptop when
> the computer will be on power for a long period.
> I ask if the kernel can do such control without the user intention and
> in an automatic way.
>
> Some BIOS provide to the user to select whether to block the battery
> charging to 50% to make it stand for more time.
> And Many people (like me) forget their laptops on power until the
> battery no more can hold energy after 2minutes of no power.
>

On ThinkPads, tp_smapi (not in the kernel.org kernel) can do it. I'd
like to see this feature standardized in sysfs.

--Andy

2010-04-20 13:37:39

by Pavel Machek

[permalink] [raw]
Subject: Re: Low-Level and Long-Term Battery Control

Hi!

> >Is there any function in the Linux kernel that control the
> >charging/discharging of the battery to provide better lifespan ?
> >(add some years to its life ?)
> >
> >For Laptops, it is better to extract the battery from the Laptop when
> >the computer will be on power for a long period.
> >I ask if the kernel can do such control without the user intention and
> >in an automatic way.
> >
> >Some BIOS provide to the user to select whether to block the battery
> >charging to 50% to make it stand for more time.
> >And Many people (like me) forget their laptops on power until the
> >battery no more can hold energy after 2minutes of no power.
> >
>
> On ThinkPads, tp_smapi (not in the kernel.org kernel) can do it.
> I'd like to see this feature standardized in sysfs.

Yep, it does, and it would make sense to make it standardized. (But I
don't think setting it as low as 50% is practical -- nor do I think
anyone sets it this low).
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html