Hi All On Wed, Apr 18 2007, at 10:55 +0200, Uwe Steinmann wrote: > On Tue, Apr 17, 2007 at 06:46:10PM -0400, Andrew J. Barr wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi, what is the recommended method of controlling the CPU clock speed on > > PowerBooks (Alu PowerBook G4, 1.67 GHz PowerPC 7447A)?
Seems we have the same machine: $ cat /proc/cpuinfo processor : 0 cpu : 7447A, altivec supported clock : 833.333000MHz revision : 0.5 (pvr 8003 0105) bogomips : 16.57 timebase : 8320000 platform : PowerMac machine : PowerBook5,8 motherboard : PowerBook5,8 MacRISC3 Power Macintosh detected as : 287 (PowerBook G4 15") pmac flags : 00000019 L2 cache : 512K unified pmac-generation : NewWorld I'm running cpufreqd since quite some time without any hassles that I'd be aware of .. IIRC it was a bit difficult to edit /etc/cpufreqd.conf some time ago, but after that was done it just worked, as it seems. I didn't even remember I had cpufreqd running when I started reading this thread. A quick $ ps ax | grep -i cpufreqd 2021 ? Ss 9:03 /usr/sbin/cpufreqd -f /etc/cpufreqd.conf revealed I had that software installed and running, indeed. For a quick start I attach my current /etc/cpufreqd.conf (No guarantees it's right, but it seems to work ... :). > > I usually use powernowd because it's fairly simple and requires no > > configuration, Sorry, I don't remember having had installed powernowd. So I can't write anything on that ... > > but the package description says that it works best > > with CPUs that have more than two steps on them, which the PowerPC > > I have does not. I'd rather not have to configure cpufreqd to my > > tastes, but if that is what's needed I will. Any suggestions? > Stay with powernowd and read the thread 'bug in cpufreqd?' in this > list. I switched to powernowd because of problems with cpufreqd. I think I never read that thread until today, so I just had a glance on it now, and I confess I can't relate the problems described in there with the minor probs I have on this machine: The "kernel lockups" described in there -- provided we're talking about the same thing, but I doubt that heavily -- seem to have happened here about a year ago when some X package(s?) had issues here on my Powerbook. But I believe this was a veritable X crash here, no kernel lockup. But these problems are gone and everything here, with a relatively fresh unstable Debian, works like a charm. There are minor problems from time to time, but they're so small I don't even remember what they are ... Yes I had some probs here, some months ago, after I played with my hdparm.conf: after that when booting the machine the hard disk was not found by the system at times. I reinstalled my old hdparm.conf, and all seems fine again ... Oh yes, some config here, might be useful: _________________________________________ $ zgrep FREQ /proc/config.gz CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_TABLE=y CONFIG_CPU_FREQ_DEBUG=y CONFIG_CPU_FREQ_STAT=m CONFIG_CPU_FREQ_STAT_DETAILS=y # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=m CONFIG_CPU_FREQ_GOV_POWERSAVE=m CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=m CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m CONFIG_CPU_FREQ_PMAC=y $ cat /proc/version Linux version 2.6.18-rc4-060811-dirty ([EMAIL PROTECTED]) (gcc version 4.1.2 20060729 (prerelease) (Debian 4.1.1-10)) #1 Fri Aug 11 00:16:22 CEST 2006 $ apt-cache policy cpufreqd cpufreqd: Installed: 2.2.1-2 Candidate: 2.2.1-2 -------------------------------------------- HTH Good luck Best Regards Wolfgang -- Wolfgang Pfeiffer: /ICQ: 286585973/ + + + /AIM: crashinglinux/ http://profiles.yahoo.com/wolfgangpfeiffer I made slight changes on Key ID: E3037113. Please refresh it. http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
# this is a comment # see CPUFREQD.CONF(5) manpage for a complete reference [General] pidfile=/var/run/cpufreqd.pid poll_interval=2 enable_plugins= programs,cpu,apm,pmu verbosity=4 enable_remote=1 remote_group=root [/General] [Profile] name=On Demand Low minfreq=20% maxfreq=48% policy=powersave [/Profile] [Profile] name=On Demand High minfreq=40% maxfreq=100% policy=powersave [/Profile] [Profile] name=Performance High minfreq=41% maxfreq=100% policy=performance [/Profile] [Profile] name=Performance Low minfreq=45% maxfreq=80% policy=powersave [/Profile] [Profile] name=Powersave High minfreq=70% maxfreq=70% policy=powersave [/Profile] [Profile] name=Powersave Low minfreq=30% maxfreq=30% policy=powersave [/Profile] ## # Basic states ## # when AC use powersave mode [Rule] name=AC Low Rule ac=on # (on/off) profile=Performance Low [/Rule] # when AC use performance [Rule] name=AC Rule ac=on # (on/off) cpu_interval=9-100 profile=Performance High [/Rule] # conservative mode when not AC [Rule] name=AC Off - Low Battery ac=off # (on/off) battery_interval=0-30 profile=Powersave Low [/Rule] # conservative mode when not AC [Rule] name=AC Off - Medium Battery ac=off # (on/off) battery_interval=30-70 profile=On Demand Low [/Rule] # stay in performance mode for the first minutes [Rule] name=AC Off - High Power ac=off # (on/off) battery_interval=70-100 profile=On Demand High [/Rule] ## # Special Rules ## # CPU Too hot! [Rule] name=CPU Too Hot # acpi_temperature=55-100 cpu_interval=91-100 profile=Performance Low [/Rule] # CPU IDLE! [Rule] name=CPU Idle cpu_interval=0-8 profile=Performance Low [/Rule] # use performance mode if I'm watching a movie # I don't care for batteries! # But don't heat too much. [Rule] name=Movie Watcher programs=xine,mplayer,gmplayer battery_interval=0-100 # acpi_temperature=0-60 cpu_interval=0-100 profile=Performance High [/Rule]