[ltp] [tp] tp_smapi doesn't remember battery charge threshold

Alexander Kerner linux-thinkpad@linux-thinkpad.org
Fri, 28 Sep 2007 13:46:24 +0200


-------- Original-Nachricht --------
> Datum: Thu, 27 Sep 2007 18:05:00 +0200
> Von: Adam Sloboda <ja@disorder.sk>
> An: linux-thinkpad@linux-thinkpad.org
> Betreff: Re: [ltp] [tp] tp_smapi doesn\'t remember battery charge threshold

> At Thu, 27 Sep 2007 16:24:39 +0200,
>   wrote:
> > 
> > Hello,
> > 
> > i am using tp_smapi-0.32 with ubuntu 7.10 (kernel: 2.6.22-11).
> > 
> > i set the loading thresholds as described here
> > 
> > http://www.thinkwiki.org/wiki/Tp_smapi:
> > 
> > 
> > sudo bash -c "echo 40 >
> /sys/devices/platform/smapi/BAT0/start_charge_thresh"
> > 
> > sudo bash -c "echo 80 >
> /sys/devices/platform/smapi/BAT0/stop_charge_thresh"
> > 
> > but everytime i reboot the values have changed back to "96" and
> > "100" (default values i believe)
> > 
> > does anyome know why these settings are not permanent?
> 
> It's written in ThinkWiki [1].  Settings are remembered "as long as
> you don't power off your machine with AC disconnected; suspend to RAM
> is OK".
> 
> [1] http://www.thinkwiki.org/wiki/Maintenance
> 
> Adam
> -- 
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad


Thanks for the hint!

If i turn off the notebook and leave it connected to AC, is it not right that in this case the bios will takeover charge controll?

I used to unplug the pc from AC after shutdown to prevent battery charging beyond the threshold i've set in the smapi files.