Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CPUFreqd BUG!! (AC and no BATT)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Phk
Guru
Guru


Joined: 02 Feb 2004
Posts: 428
Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time

PostPosted: Thu Nov 17, 2005 12:58 am    Post subject: CPUFreqd BUG!! (AC and no BATT) Reply with quote

Hi there!

I'm having a strange behaviour from the cpufreqd..
Code:
            cpufreqd | boot
        cpufrequtils |

This is my "rc-update show" section about the cpufreq stuff.

The behaviour is: The daemon switches the desired frequency automatically, even when i set it to userspace mode, using
Code:
cpufreqd-set -g userspace && cpufreqd-set -f 2.53Ghz


When i have the computer plugged to AC, the system chooses "ondemand" schedule, and keeps activating it until i
Code:
/etc/init.d/cpufreqd stop


so it stops bothering me after that.

Why's this?

Thanks,
Phk!
_________________
"# cat /dev/urandom >> /tmp/life"


Last edited by Phk on Mon Nov 21, 2005 1:48 am; edited 1 time in total
Back to top
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Thu Nov 17, 2005 7:08 am    Post subject: Reply with quote

You're mixing ttwo things:
What you want to do is
Code:
cpufreq-set -g userspace && cpufreq-set -f 2.53 Ghz

cpufreqd is a daemon to control your cpu. The config file for this is in
/etc/cpufreqd.conf
Look at this and all will be clear.
If you want to set your freq by hand, do an /etc/init.d/cpufreqd stop
before you set something with the cpufreq-set command.
Also I would suggest to use cpufreqd on the default runlevel, not on the boot
Back to top
View user's profile Send private message
Phk
Guru
Guru


Joined: 02 Feb 2004
Posts: 428
Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time

PostPosted: Thu Nov 17, 2005 3:57 pm    Post subject: Reply with quote

Yes, i know the conf file you've mentioned, and i know the supposed behaviour of the Daemon.

However, there is a strange bug:
Why does it change to "ON DEMAND" or "POWER SAVE"
WHEN
i don't even have my battery plugged? :D

If it's on powercable, it should always be at maximum speed... don't you think?! ;)

Phk
_________________
"# cat /dev/urandom >> /tmp/life"
Back to top
View user's profile Send private message
Phk
Guru
Guru


Joined: 02 Feb 2004
Posts: 428
Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time

PostPosted: Mon Nov 21, 2005 1:47 am    Post subject: Reply with quote

Well, this is INDEED a bug within cpufreqd....

Try booting with AC and no BATT plugged in.

Although the system should use it's hyperpower, it uses a 316Mhz ultra-fast-cpu 8)

Funny, isn't it?

Cheers,
Phk
_________________
"# cat /dev/urandom >> /tmp/life"
Back to top
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Mon Nov 21, 2005 9:08 am    Post subject: Reply with quote

If the cpu is getting to hot, it automatically slows down the cpu
Look at the etc/cpufreqd.conf and post this file as well as an output from cpufreq-info

Cpufreqd works not like other frequency tools. It uses the kernel internal mechanism to set the cpuspeed and the kernel intern govenors. For my own opinion this is a good behavior, but I know other daemons ( I think powernow ) which have an own implementation to scale the cpu.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3943
Location: Hamburg

PostPosted: Mon Nov 21, 2005 1:25 pm    Post subject: Reply with quote

Why you use an external tool instead of the well-working internal kernel governor 'ondemand' ? What is the advantage of cpufreqd compared to the feature of newer kernels ?
Back to top
View user's profile Send private message
Phk
Guru
Guru


Joined: 02 Feb 2004
Posts: 428
Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time

PostPosted: Mon Nov 21, 2005 10:42 pm    Post subject: Reply with quote

toralf wrote:
Why you use an external tool instead of the well-working internal kernel governor 'ondemand' ? What is the advantage of cpufreqd compared to the feature of newer kernels ?


Sorry but i couldn't understand you. What Internal Kernel Feature?! I have a P4 (not a normal scalable centrino), and i can only downclock my CPU if i use CPUFreqDaemon.

feivelda wrote:
If the cpu is getting to hot, it automatically slows down the cpu

Don't worry, i'm too careful with temps and voltages :D O\C addiction has taken me :D

This IS a CpuFREQd bug. I haven't configured the /etc/cpufreqd.conf, although i've look at it and everything seemed fine.
Try this:
with a P4 Mobile (2.5Ghz normally) plug the AC cable, unplug the battery, and boot with CPUfreqD at boot

then report it back ;)

Thanks,
Phk
_________________
"# cat /dev/urandom >> /tmp/life"
Back to top
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Tue Nov 22, 2005 1:55 pm    Post subject: Reply with quote

I have a 1.6 GHz P4 Mobile
I load cpufreqd in the default runlevel and have the speedstep_ich and p4-clockmod as modules ( For some scripts, first setting the voltage and then the frequency :roll: )
At my place all is running fine
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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