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

Adam Sloboda linux-thinkpad@linux-thinkpad.org
Thu, 27 Sep 2007 18:05:00 +0200


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