Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#23 Can not set BAT0/start_charge_thresh

open
Multinymous
5
2009-03-08
2009-03-08
Jun Zhang
No

Hi,

I just install tp_smapi module on my laptop. and set the start_charge_thresh by using:

echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh

It is works fine at beginning. but every time when I shutdown and power on the laptop, the value of start_charge_thresh is set back the default value '96'.
it seems like system reload the smapi module when boot up and reset all the values. Can it be keep to the value I want to set?

My OS is Ubuntu 7.04 and kernel is 2.6.20-16-generic. and Laptop module is IBM thinkpad X40 2371.

thanks in advance.

Discussion

  • Jun Zhang
    Jun Zhang
    2009-03-08

    And the tp_smapi version is 0.39 which I am using.

     
  • istram
    istram
    2010-08-29

    As far as I know, the things you set with tp_smapi will go away after reboot.
    So if you want your settings to be "permanent" add the command
    "echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh"
    somwhere in your initscripts.