Page 1 of 1
Battery management in Fedora?
Posted: Mon Dec 03, 2007 6:14 pm
by spt60
Hi I'm using Fedora 8 and my battery is always fully charged to 100% which is not a good thing when I mostly plug my thinkpad in AC mode. Is there the Power Management software for Unix like the one in Windows provided by IBM? If not then is there anyway to restrict how much charge I can control for the battery in Fedora 8?
Thanks

Posted: Mon Dec 03, 2007 9:01 pm
by aaa
Haven't found one. I control charging by physically removing the battery.
Posted: Wed Dec 05, 2007 12:20 pm
by amwus
TP Smapi works well on Fedora (haven't tried on F8 but should work). Install first kernel-devel (yum install kernel-devel or something like that) and then just compile the smapi kernel module. then try it by loading tp_smapi modulle (modprobe tp_smapi). There is a page on think wiki that explain how to set battery charging tresholds... Works fine for me in F7...
Posted: Sat Dec 08, 2007 10:20 am
by spt60
amwus wrote:TP Smapi works well on Fedora (haven't tried on F8 but should work). Install first kernel-devel (yum install kernel-devel or something like that) and then just compile the smapi kernel module. then try it by loading tp_smapi modulle (modprobe tp_smapi). There is a page on think wiki that explain how to set battery charging tresholds... Works fine for me in F7...
will try, thanks for the tip

Posted: Sat Dec 08, 2007 3:25 pm
by aaa
Well on my machine (T40), it loads, and there's stuff in sysfs, but setting start_threshold or stop_threshold doesn't seem to do anything.
Posted: Sun Dec 09, 2007 7:23 am
by amwus
I wrote the following lines in my /etc/rc.local and it works fine for me... What does not work for you ?
#TP Smapi battery tresholds
echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 70 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
Posted: Sun Dec 09, 2007 7:28 am
by aaa
amwus wrote:I wrote the following lines in my /etc/rc.local and it works fine for me... What does not work for you ?
#TP Smapi battery tresholds
echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 70 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
Running those does not do anything. Well I haven't tested the start threshold, but the stop threshold definitely is not doing anything.
Posted: Sun Dec 09, 2007 10:03 am
by amwus
Try tu put these line in your /etc/rc.local and reboot... It should be working if tp_smapi is loaded....