From: Michael Iatrou on
When the date was Friday 30 of July 2010, Mark wrote:

> I am curious how others on this list manage their laptop batteries while
> using Debian. From doing some research, there doesn't appear to be many
> (if any) software solutions for draining a laptop battery completely,
> before recharging. So what do people on this list do - just keep
> running Debian on battery power until the battery totally dies, which
> sometimes doesn't give you ample time to shut down properly? Or do you
> shutdown when the battery reaches, say, 5%?

Just use a resistor to fully discharge the battery.

Michael



--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/201007301641.25225.m.iatrou(a)freemail.gr
From: Mike Viau on

Date: Fri, 30 Jul 2010 11:24:52 -0700
Subject: [Slightly OT] Laptop battery draining in Lenny
From: mamarcac(a)gmail.com
To: debian-user(a)lists.debian.org

I am curious how others on this list manage their laptop batteries while using Debian. From doing some research, there doesn't appear to be many (if any) software solutions for draining a laptop battery completely, before recharging. So what do people on this list do - just keep running Debian on battery power until the battery totally dies, which sometimes doesn't give you ample time to shut down properly? Or do you shutdown when the battery reaches, say, 5%?


I just ordered a few laptop battery replacements off ebay and would like to manage them better than the ones I inherited, which were mostly dead by the time I got them.

Thanks for any ideas.

Mark


I use Tp_smapi (if you have a thinkpad that is compatible).


It is available at: http://www.thinkwiki.org/wiki/Tp_smapi


Then I run a script like this to load the kernel modules on-demand:

modprobe tp_smapi
if [ $? -ne 0 ]; then
echo "Error loading tp_smapi"
fi
if [ $? -eq 0 ]; then
echo "Loaded tp_smapi"
fi

modprobe hdaps
if [ $? -ne 0 ]; then
echo "Error loading hdaps"
fi
if [ $? -eq 0 ]; then
echo "Loaded hdaps"
fi
if [ $? -eq 0 ]; then
echo "Loaded hdaps"
fi

sleep 1
echo "Setting up BAT0 charging thesholds"
echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 70 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh


I would be interested in knowing if other similar kernel modules exist to set laptop battery charging thresh-holds whether they be vendor specific or generic.


-M

_________________________________________________________________
Learn more ways to connect with your buddies now
http://go.microsoft.com/?linkid=9734388
From: Christian Jaeger on
2010/7/30 Mark <mamarcac(a)gmail.com>:
> Or do you shutdown  when the battery
> reaches, say, 5%?
>
> I just ordered a few laptop battery replacements

I guess you're talking about Lithium ion or Lithium polymer batteries
(as all modern devices are using either of those)? Then you do rather
*not* want to deep discharge them often, or at least not leave them in
this state for a long time. They are said to live longest when about
half full. Unlike NiCd batteries they exhibit no memory effect, so
there is no use for deep discharge except occasionally to let the
electronic fuel gauge recalibrate itself so that the displayed charge
percentage is correct. Aside keeping them half full and keeping them
at cool temperatures, you can do nothing to prevent those batteries
from loosing capacity over time, they age whatever you do.

Ch.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTimHOj++CK11tb6W0vY7G+uTdmbcLnZGW3?DtZ(a)mail.gmail.com
From: Gilbert Sullivan on
On 07/30/2010 08:08 PM, Christian Jaeger wrote:
> 2010/7/30 Mark<mamarcac(a)gmail.com>:
>> Or do you shutdown when the battery
>> reaches, say, 5%?
>>
>> I just ordered a few laptop battery replacements
>
> I guess you're talking about Lithium ion or Lithium polymer batteries
> (as all modern devices are using either of those)? Then you do rather
> *not* want to deep discharge them often, or at least not leave them in
> this state for a long time. They are said to live longest when about
> half full. Unlike NiCd batteries they exhibit no memory effect, so
> there is no use for deep discharge except occasionally to let the
> electronic fuel gauge recalibrate itself so that the displayed charge
> percentage is correct. Aside keeping them half full and keeping them
> at cool temperatures, you can do nothing to prevent those batteries
> from loosing capacity over time, they age whatever you do.

I was going to post exactly this opinion earlier in the day when a
work-related issue interrupted me. I'm not going to claim engineering
level expertise in this matter, but I've been using laptop / notebook
computers as my primary systems since the time when they first became
available. IIRC deep discharge cycling of these more recent batteries is
not what you want to prolong their life-spans. That was the game we
played with NiCad batteries to prevent them from developing "memory"
issues which caused them to think they were low on charge when they were
actually at 40-50% charge. The newer battery and battery charging
circuit technologies have rendered that strategy obsolete, I think.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C537384.8040208(a)comcast.net
From: Mark on
On Fri, Jul 30, 2010 at 5:08 PM, Christian Jaeger <chrjae(a)gmail.com> wrote:

> 2010/7/30 Mark <mamarcac(a)gmail.com>:
> > Or do you shutdown when the battery
> > reaches, say, 5%?
> >
> > I just ordered a few laptop battery replacements
>
> I guess you're talking about Lithium ion or Lithium polymer batteries
> (as all modern devices are using either of those)? Then you do rather
> *not* want to deep discharge them often, or at least not leave them in
> this state for a long time. They are said to live longest when about
> half full. Unlike NiCd batteries they exhibit no memory effect, so
> there is no use for deep discharge except occasionally to let the
> electronic fuel gauge recalibrate itself so that the displayed charge
> percentage is correct. Aside keeping them half full and keeping them
> at cool temperatures, you can do nothing to prevent those batteries
> from loosing capacity over time, they age whatever you do.
>

Thank you Christian. Correct, Li-ion is the discussion here. So is there a
way to keep the battery in the laptop, without it charging to 100%? Both
machines in this case are Dell's, one Inspiron and one XPS, both 5+ years
old.