Battery management in Fedora?

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
spt60
Junior Member
Junior Member
Posts: 250
Joined: Thu Feb 08, 2007 8:59 am
Location: OH

Battery management in Fedora?

#1 Post by spt60 » Mon Dec 03, 2007 6:14 pm

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 :)

aaa
ThinkPadder
ThinkPadder
Posts: 1062
Joined: Fri Jun 08, 2007 2:36 pm

#2 Post by aaa » Mon Dec 03, 2007 9:01 pm

Haven't found one. I control charging by physically removing the battery.

amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

#3 Post by amwus » Wed Dec 05, 2007 12:20 pm

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...
Thinkpad T400

spt60
Junior Member
Junior Member
Posts: 250
Joined: Thu Feb 08, 2007 8:59 am
Location: OH

#4 Post by spt60 » Sat Dec 08, 2007 10:20 am

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 :)

aaa
ThinkPadder
ThinkPadder
Posts: 1062
Joined: Fri Jun 08, 2007 2:36 pm

#5 Post by aaa » Sat Dec 08, 2007 3:25 pm

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.

amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

#6 Post by amwus » Sun Dec 09, 2007 7:23 am

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
Thinkpad T400

aaa
ThinkPadder
ThinkPadder
Posts: 1062
Joined: Fri Jun 08, 2007 2:36 pm

#7 Post by aaa » Sun Dec 09, 2007 7:28 am

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.

amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

#8 Post by amwus » Sun Dec 09, 2007 10:03 am

Try tu put these line in your /etc/rc.local and reboot... It should be working if tp_smapi is loaded....
Thinkpad T400

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 0 guests