View previous topic :: View next topic |
Author |
Message |
SalsaDoom Tux's lil' helper
Joined: 22 Jan 2003 Posts: 105 Location: Saskatoon, Saskatchewan
|
Posted: Fri Oct 07, 2005 2:40 pm Post subject: cpufreqd not working as expected |
|
|
Hi fellas,
The idea here is that my laptop will use "conservative" when on just battery, "powersave" when the battery interval is 0-20, "ondemand" when on ac, but the battery is between 0-95, and "performance" when the battery is 96-100. It looks like it should work, and it does, except when the battery is full, it doesn't switch from ondemand to performance. I can't figure out why. Anyone have any ideas?
Code: | [General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
pm_type=acpi
verbosity=5
[Profile]
name=cons
minfreq=600000
maxfreq=1700000
policy=conservative
[Profile]
name=ondemand
minfreq=600000
maxfreq=1700000
policy=ondemand
[Profile]
name=powersave
minfreq=600000
maxfreq=1700000
policy=powersave
[Profile]
name=performance
minfreq=0%
maxfreq=100%
policy=performance
[Rule]
name=battery
ac=off
profile=cons
[Rule]
name=battery_low
ac=off
battery_interval=0-20
profile=powersave
[Rule]
name=charging
ac=on
battery_interval=0-95
profile=ondemand
[Rule]
name=ac
ac=on
battery_interval=96-100
profile=performance |
Looks good right? So if ac is on, and the battery is over 95% full, it -should- just switch to performance. But it doesn't... annoying thing!
--SD |
|
Back to top |
|
|
bdz Apprentice
Joined: 15 Jul 2005 Posts: 237 Location: Montpellier (France)
|
Posted: Fri Oct 07, 2005 3:31 pm Post subject: |
|
|
Your performance profile has minfreq and maxfreq in %, unlike the other profiles. Maybe it is the problem.
However in my opinion using the performance governor is not a good idea. Your CPU will always run at full speed. It will become very hot and your fan will always be on. |
|
Back to top |
|
|
SalsaDoom Tux's lil' helper
Joined: 22 Jan 2003 Posts: 105 Location: Saskatoon, Saskatchewan
|
Posted: Tue Oct 11, 2005 5:14 pm Post subject: |
|
|
Hi there.
Thanks for the reply :)
My laptop runs perfectly fine at its max speed, there is something wrong with your laptop if I has overheating issues running at the processors native speed. Its probably a Toshiba and needs its fans cleaned, they clog like you wouldn't believe on a lot of models..
Anyway,
I changed the percentage values to the absolute values like you suggested -- a good idea really, since I'm using an acpi setup which doesn't accept %'s anyway. Performance just maxes it out, but for the sake of correctness its worth fixing... but it still runs on ondemand when the battery is nearly full or full. I cannot figure out why.
I think I'll email the developer and see if perhaps I've got a bug. It might be due to some unforseen factors like the fact I have a dual-battery system. Who knows ;P
--SD |
|
Back to top |
|
|
bdz Apprentice
Joined: 15 Jul 2005 Posts: 237 Location: Montpellier (France)
|
Posted: Tue Oct 11, 2005 6:30 pm Post subject: |
|
|
SalsaDoom wrote: | Thanks for the reply |
You're welcome
SalsaDoom wrote: |
My laptop runs perfectly fine at its max speed, there is something wrong with your laptop if I has overheating issues running at the processors native speed. Its probably a Toshiba and needs its fans cleaned, they clog like you wouldn't believe on a lot of models..
|
Actually my laptop runs perfectly at full speed. The only thing that is a bit annoying for me is the fan noise. If the laptop runs at min speed I almost never hear it. But when running at full speed it is almost always on. And by the way, it's not a toshiba
SalsaDoom wrote: | I think I'll email the developer and see if perhaps I've got a bug. It might be due to some unforseen factors like the fact I have a dual-battery system. Who knows ;P |
Dual-battery... Yes maybe this is something disturbing for cpufredd. As you said, who knows?
Did you try to remove the "battery_interval" line from your "ac" rule to see if it changes something. You can also try to keep this line in the "ac" rule and to remove it from the "charging" rule.
The last thing I can think about is reversing the order of these 2 rules in the config file. It may produce interesting results.
Edit:
If reversing the 2 rules makes your laptop always use the performance profile, even if the battery is not charged, then it should mean that cpufreqd has a problem reading the battery status.
And maybe setting the log verbosity at the max will give some information about what cpufreqd is doing wrong |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|