Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cpu freq
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Sun Sep 10, 2006 5:49 am    Post subject: cpu freq Reply with quote

According to a gnome panel applet, my cpu runs at one of two speeds, 66% or 100%. My fan is running almost all of the time if not constantly. How do I get "normal" operation and cpu speeds?
Code:
$ grep CPU_FREQ /usr/src/linux/.config
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_PMAC=y

I have pbbuttonsd and powernowd installed accoring to the ppc faq.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Sep 10, 2006 6:16 am    Post subject: Reply with quote

Have you checked that powernowd is actually running? That configuration looks okay. What does cat /proc/cpuinfo show? Are there any processes using the CPU?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Sun Sep 10, 2006 6:40 am    Post subject: Reply with quote

Code:
$ cat /proc/cpuinfo
processor       : 0
cpu             : 7455, altivec supported
clock           : 1000.000000MHz
revision        : 0.3 (pvr 8001 0303)
bogomips        : 99.79
timebase        : 33331380
platform        : PowerMac
machine         : PowerBook3,5
motherboard     : PowerBook3,5 MacRISC2 MacRISC Power Macintosh
detected as     : 80 (PowerBook Titanium IV)
pmac flags      : 0000001b
L2 cache        : 256K unified
pmac-generation : NewWorld

at present, emerge is compiling... gnome system monitor shows powernowd as sleeping.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Sep 10, 2006 8:34 am    Post subject: Reply with quote

If you're emerging, the fans will definitely be on. Check the load when you're not emerging, is there anything eating up CPU? Does the CPU speed drop down to the lower speed?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Sun Sep 10, 2006 3:23 pm    Post subject: Reply with quote

It may be working now. The fan is not running. Gnome system monitor displays normal cpu activity (0-15%) when I'm not doing much. The problem may just be that the gnome toolbar applet I mentioned was only displaying either 66% or 100% cpu usage. But I could have changed something, in pbbuttonsd.conf or some other file, as I was attempting to fix the problem and posting in the forums at around the same time, that fixed the problem. The fan is running now. I'll have to get back to you to confirm but I think usually once the fan starts it doesn't stop until shutdown which tells me the computer is not cooling properly. I have not done anything very processor intensive since I booted my machine this morning. I've run gnome system monitor and firefox. The computer's been on for approx 10 mins.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Mon Sep 11, 2006 5:34 am    Post subject: Reply with quote

Here are some ideas for managing the fans beyond scaling the CPU freq. Assuming:
Code:

# zgrep ADT746X /proc/config.gz
CONFIG_THERM_ADT746X=y

Adjusting the contents of the following file will adjust the threshold for the fans:
Code:

/sys/devices/temperatures/limit_adjust

Normally, the value is zero (0). I using various events to automate the following:
Code:

# when on ac
echo 0 > /sys/devices/temperatures/limit_adjust
# when on ac, watching video, not charging battery
echo 1 > /sys/devices/temperatures/limit_adjust
# when on battery *and* staying at low-freq
echo 2 > /sys/devices/temperatures/limit_adjust

So when I am typing (not anything intensive), the laptop stays quiet in class.

You should note that this in inherently dangerous if you don't understand motherboard temperatures and the specifications of your laptop, as you could overheat your laptop and fry something.

For my particular Alubook model, Mac OS X Panther scales the fans to an equivalent of setting the above value approx. to five (5). But I seldom set it this high since Mac OS X actually overheats the CPU slightly beyond Motorola's published recommendations, and beyond the recommendations off the ADT device.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Sep 11, 2006 3:34 pm    Post subject: Reply with quote

I'm not sure that his TiBook (867 I think?) uses thermadt, but it's a good suggestion :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Mon Sep 11, 2006 3:45 pm    Post subject: Reply with quote

Code:
#  zgrep ADT746X /proc/config.gz
CONFIG_THERM_ADT746X=m

My TiBook is the 1Ghz model.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Sep 11, 2006 5:19 pm    Post subject: Reply with quote

Do you see something like:
adt746x: ADT7467 initializing
adt746x: Thermostat bus: 0, address: 0x2e, limit_adjust: 0, fan_speed: -1

when the module is loading? (In dmesg) If so, you should really build this module in since it will keep the machine from overheating.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Mon Sep 11, 2006 5:34 pm    Post subject: Reply with quote

No. I don't see anything related to ADT746X. Should I change something in my kernel?
_________________
gentoo good to be true
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Sep 11, 2006 5:42 pm    Post subject: Reply with quote

Did you modprobe the module?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3706
Location: Hamburg

PostPosted: Mon Sep 11, 2006 6:18 pm    Post subject: Re: cpu freq Reply with quote

nss wrote:
According to a gnome panel applet, my cpu runs at one of two speeds, 66% or 100%. My fan is running almost all of the time if not constantly. How do I get "normal" operation and cpu speeds?
Code:
$ grep CPU_FREQ /usr/src/linux/.config
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_PMAC=y

I have pbbuttonsd and powernowd installed accoring to the ppc faq.

Why you don't use the governor ondemand ? You would no longer need any external utility .
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Mon Sep 11, 2006 6:57 pm    Post subject: Reply with quote

It is my understanding that ONDEMAND is not supported for use on my computer (ppc 7455).
_________________
gentoo good to be true
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3706
Location: Hamburg

PostPosted: Mon Sep 11, 2006 7:03 pm    Post subject: Reply with quote

nss wrote:
It is my understanding that ONDEMAND is not supported for use on my computer (ppc 7455).
Ough, sorry
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Tue Sep 12, 2006 1:37 pm    Post subject: Reply with quote

Code:
# modprobe adt746x
FATAL: Module adt746x not found.

_________________
gentoo good to be true
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Sep 12, 2006 1:46 pm    Post subject: Reply with quote

The module name is therm_adt746x
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Tue Sep 12, 2006 4:29 pm    Post subject: Reply with quote

Code:
 # modprobe therm_adt746x
FATAL: Error inserting therm_adt746x (/lib/modules/2.6.17-gentoo-r7/kernel/drivers/macintosh/therm_adt746x.ko): No such device

_________________
gentoo good to be true
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Tue Sep 12, 2006 4:34 pm    Post subject: Reply with quote

If you read the comments of the driver, it indicates that this driver is the 2004 and newer iBook G4s (and correspondingly, the Aluminum Powerbooks).

My apologies for suggesting it; I didn't notice that you were referring to a TiBook. I do know for certain that this driver was intended for newer Apple laptops and did not appear in the kernel until ~1 year after such newer laptops arrived.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
johnson_steve
n00b
n00b


Joined: 30 Apr 2005
Posts: 62

PostPosted: Tue Sep 19, 2006 3:20 am    Post subject: Reply with quote

on my ibook g4 (1.2Ghz) it only supports 2 speeds 1.2ghz and 600Mhz no matter what I set it to or what governer I use I think it's a hardware limitation; I use 1.2Ghz on AC and 600Mhz on battery (I can set it manualy if I realy need it.)

Code:

steve@iBook_G4 ~ $ cat /proc/cpuinfo
processor       : 0
cpu             : 7447A, altivec supported
clock           : 1199.999000MHz
revision        : 0.1 (pvr 8003 0101)
bogomips        : 73.47
timebase        : 18432000
platform        : PowerMac
machine         : PowerBook6,5
motherboard     : PowerBook6,5 MacRISC3 Power Macintosh
detected as     : 287 (iBook G4)
pmac flags      : 0000001b
L2 cache        : 512K unified
pmac-generation : NewWorld

iBook_G4 ~ # cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: powermac
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 600 MHz - 1.20 GHz
  available frequency steps: 1.20 GHz, 600 MHz
  available cpufreq governors: powersave, userspace, performance
  current policy: frequency should be within 600 MHz and 1.20 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.20 GHz (asserted by call to hardware).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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