From: Christopher Meredith <theophile@saintmail.net>
To: linux-kernel@vger.kernel.org
Subject: Re: PowerNow!, cpufreq, and swsusp
Date: Sat, 15 Mar 2003 07:56:26 -0500 [thread overview]
Message-ID: <20030315075626.5cfda32f.theophile@saintmail.net> (raw)
In-Reply-To: <20030312183954.GA13653@suse.de>
On Wed, 12 Mar 2003 17:40:01 -0100
Dave Jones <davej@codemonkey.org.uk> wrote:
> On Wed, Mar 12, 2003 at 12:06:33PM -0500, Christopher Meredith wrote:
>
> > Also, cpufreq doesn't seem to do anything. Should it be
> > working automatically?
>
> no.
>
> > Even when the machine sits unattended
> > for over 8 hours, the fan never turns off and the cpu
> > temperature is consustently 69-70 degrees C.
>
> The kernel doesn't define policy, but exposes the necessary
> interface to userspace. There are a few folks working on
> tools / scripts to adjust the speed dynamically.
> look through the cpufreq mailing list archives to find them
> (or google)
>
> > What must I do here?
>
> Read Documentation/cpu-freq/user-guide.txt
>
> short: mount sysfs, and ..
>
> (root@evo:cpufreq)# cd /sys/class/cpu/cpufreq/cpu0/cpufreq
> (root@evo:cpufreq)# cat /proc/cpuinfo | grep MHz
> cpu MHz : 1390.536
> (root@evo:cpufreq)# echo powersave >scaling_governor
> (root@evo:cpufreq)# cat /proc/cpuinfo | grep MHz
> cpu MHz : 529.728
> (root@evo:cpufreq)# echo performance >scaling_governor
>
All right, it seems that for me, these things reside in /sys/devices/sys/cpu0:
root@Judea:/sys/devices/sys/cpu0# ls
available_scaling_governors name scaling_governor
cpuinfo_max_freq power scaling_max_freq
cpuinfo_min_freq scaling_driver scaling_min_freq
At any rate, 'cat available_scaling_governors' gives this:
performance powersave
If I 'echo powersave > scaling_governor', the fan slows down and the processor registers at about 600+ MHz (down from 1500+). So far so good. But when I 'echo performance > scaling_governor', the entire system locks up and I have to hard reset. Am I still missing something here? Also, I had thought the purpose of this technology was to incrementally scale the clock speed depending upon what the computer was doing, this saving battery power. Is this correct? If so, how do I enable this?
Also, with regard to swsusp, after creating a swap partition and seemingly adding the 'resume' line to lilo.conf, whenever I do 'echo 4 > /proc/acpi/sleep', the computer ditches X and prints ACPI information on all consoles. This seems good at first, but no matter how long I let it sit, it doesn't ever suspend or try to do anything similar (that I can tell). Am I still doing something wrong?
Thanks!
~Christopher
next prev parent reply other threads:[~2003-03-15 13:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-12 17:06 Christopher Meredith
2003-03-12 18:40 ` Dave Jones
2003-03-15 12:56 ` Christopher Meredith [this message]
2003-03-13 1:31 ` Nigel Cunningham
2003-03-12 23:37 Christopher Meredith
2003-03-12 23:41 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030315075626.5cfda32f.theophile@saintmail.net \
--to=theophile@saintmail.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®