~ubuntu-branches/ubuntu/karmic/powersave/karmic

« back to all changes in this revision

Viewing changes to docs/README.P4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2006-01-13 21:38:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060113213852-lqnirx6tfj6q76jv
Tags: 0.11.2-1
* New upstream release.
* Removed patches shebang_fix.diff, awk_path_fix.diff and
  wttyhx_fixes.diff, all merged upstream.
* hal and dbus are now mandatory. Added the corresponding dependencies to
  debian/control.
* Added powersaved.postinst, dbus needs to be reloaded after powersaved has
  been installed. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
_This readme is to help to get some powersave features running correctly on
2
 
Pentium 4 processors_
3
 
 
4
 
 
5
 
First: Pentium 4 CPUS are not designed for great energy saving issues. On
6
 
current processors (as far as I know) there is only throttling available to
7
 
decrease CPU performance and to save energy/heat production which is much less
8
 
efficient than SpeedStep technologie provided on modern Pentium M processors.
9
 
 
10
 
Note that there are also "Mobile Intel(R) Pentium(R) 4 - M CPU" (look in
11
 
/proc/cpuinfo) which are different and which do support speedstepping.
12
 
 
13
 
1) Be sure the processor module is loaded.
14
 
 
15
 
2) Check for C-states
16
 
Some machines might support additional C-(sleeping)states.
17
 
Do: cat /proc/acpi/processor/*/power
18
 
Are C2 or higher states supported? Fine you don't have to do anything, if your
19
 
processor is idle, the kernel will take care that those states are activated
20
 
-> just be sure the powersaved is running which loads the processor module at
21
 
boot time.
22
 
 
23
 
3) Throttling
24
 
 
25
 
For Pentium 4 processors there are 2 interfaces supported by kernel:
26
 
p4-clockmod module which exports the same files to /sys as cpufreq modules.
27
 
and the "normal", acpi interface.
28
 
 
29
 
Therefore you have two possibilities (none is set by default) to lower the
30
 
energy output of your CPU:
31
 
 
32
 
Do: cat /proc/acpi/processor/*/throttling
33
 
If you get not supported goto 2)
34
 
 
35
 
1) Use the PROCESSOR_DYNAMIC_LOW event (triggered when your CPU stays longer
36
 
   than 10 seconds below a specific CPU usage value (both are configurable)).
37
 
 
38
 
   Simply add throttle to the POWERSAVE_EVENT_PROCESSOR_DYNAMIC_LOW event in
39
 
   /etc/sysconfig/powersave/events and dethrottle to
40
 
   POWERSAVE_EVENT_PROCESSOR_DYNAMIC_HIGH (see README.events for more details)
41
 
 
42
 
   In case the dynamic low event is triggerd, your machine will be slowed down
43
 
   to the limit you set in your current scheme file (when on AC power
44
 
   scheme_performance by default). Also set the variable
45
 
   POWERSAVE_ALLOW_THROTTLING there.
46
 
 
47
 
2) First check support by doing: modprobe p4-clockmod
48
 
   and: ls /sys/devices/system/cpu/cpufreq/ (must contain files).
49
 
   
50
 
   Set POWERSAVE_CPUFREQD_MODULE="p4-clockmod" in
51
 
   /etc/sysconfig/powersave/cpufreq and be sure you do not use the keyword
52
 
   "throttle" in the events config file (other interface -> double throttling
53
 
   can cause big trouble/slowdown)
54
 
 
55
 
   Now throttling is used as it would be Frequncy scaling.
56
 
   However you may experience your machine to be slower (specially when
57
 
   switching between windows very fast).
58
 
   Have a look into /etc/sysconfig/powersave/cpufreq config file and the
59
 
   README.cpufreq file to adjust the config values for better
60
 
   performance/powersavings.
61
 
 
62