public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Howto switch system/CPU states?
@ 2002-11-04  6:02 Happy Camper
       [not found] ` <20021104060200.95943.qmail-4PUZMmvJwkCA/QwVtaZbd3CJp6faPEW9@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Happy Camper @ 2002-11-04  6:02 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I am using 2.4.20-pre10-ac1 and an older ACPI patch for that kernel.
Things comiled fine and my processor looks like it always comes up in C2
state.

$ cat /proc/acpi/processor/CPU/power 
active state:            C2
default state:           C1
bus master activity:     ffffffff
states:
    C1:                  promotion[C2] demotion[--] latency[000]
usage[00046380]
   *C2:                  promotion[C3] demotion[C1] latency[001]
usage[01642565]
    C3:                  promotion[--] demotion[C2] latency[065]
usage[00002290]

I am trying to use some very basic ACPI features with my Linux system but
have not been able to.  Things on my wish list:

1. Suspend the system.  I have tried echo 1 > /proc/acpi/sleep and it
locks up one of my systems while my Thinkpad tries to crash and screen
goes half blank and then hitting the power button brings it back (without
a reboot) with this error:
hwsleep-0239 [09] Acpi_enter_sleep_state: Entering S1
acpi_bus-0263 [21] acpi_bus_get_device   : Error getting context for
object [c1a921c8]

2. Switch CPU C states.  When I load the processor module, I get this
in the /var/log/messages : 
Nov  3 16:09:25 localhost kernel: ACPI: Processor [CPU] (supports C1 C2
C3, 8 throttling states)
However I cant figure out how to switch these processor states.

I have tried pmtest from the pmtools package and it claims to be switching
system states, but the CPU states according to
/proc/acpi/processor/CPU/power
are not changing.

I admit I am newbie at this.  However I have not been able to locate any
current documentation on this stuff.  The Howto at : 
http://www.columbia.edu/~ariel/acpi/acpi_howto.txt
is rather out of date.

I would greatly appreciate any help anybody can provide.

Thanks a million.

Atif

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/


-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Howto switch system/CPU states?
@ 2002-11-05 22:41 Grover, Andrew
  0 siblings, 0 replies; 6+ messages in thread
From: Grover, Andrew @ 2002-11-05 22:41 UTC (permalink / raw)
  To: 'Chris Howells',
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> From: Chris Howells [mailto:chris-NvB7AskkBIqIudiWw5vspbVCufUGDwFn@public.gmane.org] 
> > > Nov  3 16:09:25 localhost kernel: ACPI: Processor [CPU] 
> (supports C1 C2
> > > C3, 8 throttling states)
> > > However I cant figure out how to switch these processor states.
> >
> > http://www.brodo.de/english/pub/acpi/proc/processor.html
> 
> In the current ACPI patches (e.g. without the ACPI to cpufreq 
> stuff), does the
> switching CPU states have any actual effect?

You don't want to use throttling states except when the processor overheats.
Your system doesn't have any performance states to speak of.

Regards -- Andy


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-11-05 22:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-04  6:02 Howto switch system/CPU states? Happy Camper
     [not found] ` <20021104060200.95943.qmail-4PUZMmvJwkCA/QwVtaZbd3CJp6faPEW9@public.gmane.org>
2002-11-04  6:57   ` Dominik Brodowski
     [not found]     ` <20021104075706.A635-JhLEnvuH02M@public.gmane.org>
2002-11-04  7:39       ` Happy Camper
2002-11-05  1:29       ` Chris Howells
     [not found]         ` <200211050128.37267.chris-NvB7AskkBIqIudiWw5vspbVCufUGDwFn@public.gmane.org>
2002-11-05  8:35           ` Dominik Brodowski
  -- strict thread matches above, loose matches on Subject: below --
2002-11-05 22:41 Grover, Andrew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox