linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Low-Level and Long-Term Battery Control
@ 2010-04-12 13:28 Mohamed Ikbel Boulabiar
  2010-04-15 18:02 ` Pavel Machek
  0 siblings, 1 reply; 9+ messages in thread
From: Mohamed Ikbel Boulabiar @ 2010-04-12 13:28 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Low-Level and Long-Term Battery Control
  2010-04-12 13:28 Low-Level and Long-Term Battery Control Mohamed Ikbel Boulabiar
@ 2010-04-15 18:02 ` Pavel Machek
  2010-04-15 23:42   ` David Rees
  0 siblings, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2010-04-15 18:02 UTC (permalink / raw)
  To: Mohamed Ikbel Boulabiar; +Cc: linux-kernel

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 ?)

No, I don't think so.

> 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.

Where have you seen that?

> 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.

Normally, smart battery should control charging itself; and it usually
does pretty well.

Exceptions are very small devices such as spitz, but for those
batteries CCCV charging with temperature monitor is usually enough.
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Low-Level and Long-Term Battery Control
  2010-04-15 18:02 ` Pavel Machek
@ 2010-04-15 23:42   ` David Rees
  2010-04-16  4:15     ` Pavel Machek
  0 siblings, 1 reply; 9+ messages in thread
From: David Rees @ 2010-04-15 23:42 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Mohamed Ikbel Boulabiar, linux-kernel

On Thu, Apr 15, 2010 at 11:02 AM, Pavel Machek <pavel@ucw.cz> wrote:
>> 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.
>
> Where have you seen that?

I do recall that some older ThinkPads had a utility that would let you
determine what "empty" and "full" was by setting artificial limits.
It's well known that by keeping batteries from being fully
charged/discharged can significantly extend it's useful life although
you will suffer from shorter run-times.  How sensitive a battery is to
this depends on it's exact chemistry, but all are affected by this to
some degree.

For example, by keeping your battery from charging above 85% and below
15% can increase the number of charge/discharge cycles a large amount
often on the order of 5-10 times more charge/discharge cycles - much
more than the 30% reduction in total capacity.  Limiting to 25-75%
will help even more.

-Dave

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Low-Level and Long-Term Battery Control
  2010-04-15 23:42   ` David Rees
@ 2010-04-16  4:15     ` Pavel Machek
  2010-04-22  9:25       ` Mohamed Ikbel Boulabiar
  0 siblings, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2010-04-16  4:15 UTC (permalink / raw)
  To: David Rees; +Cc: Mohamed Ikbel Boulabiar, linux-kernel

On Thu 2010-04-15 16:42:56, David Rees wrote:
> On Thu, Apr 15, 2010 at 11:02 AM, Pavel Machek <pavel@ucw.cz> wrote:
> >> 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.
> >
> > Where have you seen that?
> 
> I do recall that some older ThinkPads had a utility that would let you
> determine what "empty" and "full" was by setting artificial limits.
> It's well known that by keeping batteries from being fully
> charged/discharged can significantly extend it's useful life although
> you will suffer from shorter run-times.  How sensitive a battery is to
> this depends on it's exact chemistry, but all are affected by this to
> some degree.
> 
> For example, by keeping your battery from charging above 85% and below
> 15% can increase the number of charge/discharge cycles a large
> amount

>From charging below 15%?

> often on the order of 5-10 times more charge/discharge cycles - much
> more than the 30% reduction in total capacity.  Limiting to 25-75%
> will help even more.

I believe I've seen "don't charge above 85%", but "don't charge above
50%" is quite excessive...

Anyway, this is done by smartbattery, not by OS.
									Pavel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Low-Level and Long-Term Battery Control
  2010-04-16  4:15     ` Pavel Machek
@ 2010-04-22  9:25       ` Mohamed Ikbel Boulabiar
  0 siblings, 0 replies; 9+ messages in thread
From: Mohamed Ikbel Boulabiar @ 2010-04-22  9:25 UTC (permalink / raw)
  To: Pavel Machek; +Cc: David Rees, linux-kernel, linux-acpi

> Anyway, this is done by smartbattery, not by OS.

I've found this for IBM laptops :
http://www.thinkwiki.org/wiki/Tp_smapi#Battery_charge_control_features

The features exist in windows for Sony Vaio laptops as the users say here
http://forum.notebookreview.com/showthread.php?t=288638
http://ubuntuforums.org/showthread.php?t=1225557

And it seems the same for Acer.


But it is very strange that only some companies exposes such features.
We can't find a way to do that by some reverse engineering ?
How does the lm_sensors guys discovering sensors in laptops ?
http://www.lm-sensors.org/


Any way, I always think that it can be controlled in some way, but we
don't have a public api explained for that.

M-I

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Low-Level and Long-Term Battery Control
  2010-04-19  4:31 ` Andy Lutomirski
@ 2010-04-20 13:37   ` Pavel Machek
  0 siblings, 0 replies; 9+ messages in thread
From: Pavel Machek @ 2010-04-20 13:37 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: Mohamed Ikbel Boulabiar, linux-acpi, linux-kernel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Low-Level and Long-Term Battery Control
  2010-04-13 12:35 Mohamed Ikbel Boulabiar
  2010-04-13 13:24 ` Tony Vroon
@ 2010-04-19  4:31 ` Andy Lutomirski
  2010-04-20 13:37   ` Pavel Machek
  1 sibling, 1 reply; 9+ messages in thread
From: Andy Lutomirski @ 2010-04-19  4:31 UTC (permalink / raw)
  To: Mohamed Ikbel Boulabiar; +Cc: linux-acpi, linux-kernel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Low-Level and Long-Term Battery Control
  2010-04-13 12:35 Mohamed Ikbel Boulabiar
@ 2010-04-13 13:24 ` Tony Vroon
  2010-04-19  4:31 ` Andy Lutomirski
  1 sibling, 0 replies; 9+ messages in thread
From: Tony Vroon @ 2010-04-13 13:24 UTC (permalink / raw)
  To: Mohamed Ikbel Boulabiar; +Cc: linux-acpi, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1375 bytes --]

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: tony@linx.net

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Low-Level and Long-Term Battery Control
@ 2010-04-13 12:35 Mohamed Ikbel Boulabiar
  2010-04-13 13:24 ` Tony Vroon
  2010-04-19  4:31 ` Andy Lutomirski
  0 siblings, 2 replies; 9+ messages in thread
From: Mohamed Ikbel Boulabiar @ 2010-04-13 12:35 UTC (permalink / raw)
  To: linux-acpi; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-04-22  9:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-12 13:28 Low-Level and Long-Term Battery Control Mohamed Ikbel Boulabiar
2010-04-15 18:02 ` Pavel Machek
2010-04-15 23:42   ` David Rees
2010-04-16  4:15     ` Pavel Machek
2010-04-22  9:25       ` Mohamed Ikbel Boulabiar
2010-04-13 12:35 Mohamed Ikbel Boulabiar
2010-04-13 13:24 ` Tony Vroon
2010-04-19  4:31 ` Andy Lutomirski
2010-04-20 13:37   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).