<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gthomassen</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gthomassen"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Gthomassen"/>
	<updated>2026-05-10T14:30:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_make_use_of_Power_Management_features&amp;diff=822</id>
		<title>How to make use of Power Management features</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_make_use_of_Power_Management_features&amp;diff=822"/>
		<updated>2004-11-16T13:49:25Z</updated>

		<summary type="html">&lt;p&gt;Gthomassen: Added DynamicClocks in the Radeon Xorg driver&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==APM==&lt;br /&gt;
&lt;br /&gt;
===general===&lt;br /&gt;
You need to enable the APM Power Management support in the kernel and install the [[apmd]] to handle the events triggered by the kernel driver.&lt;br /&gt;
The configuration for what to do at the different events is done in the proxy script which is usually found in /etc/apmd_proxy.&lt;br /&gt;
See &amp;lt;tt&amp;gt;man apmd&amp;lt;/tt&amp;gt; for further information on this.&lt;br /&gt;
&lt;br /&gt;
===Screen blanking (Standby)===&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
===Suspend to RAM (Sleep)===&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
===Suspend to disk (Hibernate)===&lt;br /&gt;
The Phoenix BIOS allows you two ways to hibernate with APM: using a special partition or using a hibernation file on a dos type partition.&lt;br /&gt;
&lt;br /&gt;
====using a hibernation partition====&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
====using a hibernation file on a dos partition====&lt;br /&gt;
The partition to put the file on must be a dos or vfat partition. Fat32 formatted partitions have been reported successful as well as Fat16 formatted ones. The file is either created with phdisk.exe, if you happen to have a floppy drive and a bootable dos floppy disk that you can start it from.&lt;br /&gt;
Under Linux [[tphdisk]] will do this job for you.&lt;br /&gt;
&lt;br /&gt;
Todo... (how to create the file, partition size)&lt;br /&gt;
&lt;br /&gt;
==ACPI==&lt;br /&gt;
&lt;br /&gt;
===general===&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
===Screen blanking (Standby)===&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
===Suspend to RAM (Sleep)===&lt;br /&gt;
ACPI Sleep and suspend-to-ram with recent 2.6.x kernels usually works fine, too.&lt;br /&gt;
&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
===Suspend to disk (Hibernate)===&lt;br /&gt;
There are two drivers for this available:&lt;br /&gt;
* swsusp, which is in the kernel and&lt;br /&gt;
* [http://developer.berlios.de/projects/softwaresuspend/ SoftwareSuspend2] which is more feature rich, but not yet in the kernel, so you have to patch it in yourself&lt;br /&gt;
Both are reported to work fine as long as you use open-source graphic drivers. A comparison of the features can be found on [http://softwaresuspend.berlios.de/features.html this page].&lt;br /&gt;
&lt;br /&gt;
====using swsusp====&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
====using SoftwareSuspend2====&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
==Dynamic Frequency Scaling (SpeedStep)==&lt;br /&gt;
&lt;br /&gt;
===configuring the kernel===&lt;br /&gt;
&lt;br /&gt;
====2.4 kernels====&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
====2.6 kernels====&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
If you have a Coppermine-piix-smi based Thinkpads like from the A2x, X2x and T2x series you might want to look at [[How to get SpeedStep working on Coppermine-piix4-smi based Thinkpads | this page]].&lt;br /&gt;
&lt;br /&gt;
===configuring SpeedStep daemons===&lt;br /&gt;
*[[How to configure cpufreqd | cpufreqd]]&lt;br /&gt;
*[[Hot to configure powersaved | powersaved]]&lt;br /&gt;
&lt;br /&gt;
==Harddisk Power Management==&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
===enabling the harddisks power management features===&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # I' using this on FC2 and FC3&lt;br /&gt;
 # cpu throttling off as FC does thisout-of-the-box&lt;br /&gt;
 # turning swap off is only for those that feel comfortable&lt;br /&gt;
 # doing something this nasty.&lt;br /&gt;
 #&lt;br /&gt;
 # pcfe, 2004-11-15&lt;br /&gt;
                                                                                                                                      &lt;br /&gt;
 # cpu throttling&lt;br /&gt;
 # cat /proc/acpi/processor/CPU0/throttling for more info&lt;br /&gt;
 ACAD_THR=0&lt;br /&gt;
 BATT_THR=2&lt;br /&gt;
                                                                                                                                     &lt;br /&gt;
 # spindown time for HD (man hdparm for valid values)&lt;br /&gt;
 # I prefer 2 hours for acad and 2 min for batt&lt;br /&gt;
 ACAD_HD=244&lt;br /&gt;
 BATT_HD=24&lt;br /&gt;
                                                                                                                                     &lt;br /&gt;
 # Power management level&lt;br /&gt;
 # 255 (off) on AC&lt;br /&gt;
 # 128 (medium) on batt&lt;br /&gt;
 # lowered to 32, pcfe, 2004-06-23&lt;br /&gt;
 # upped to 64, pcfe, 2004-07-14&lt;br /&gt;
 # upped to 96, pcfe, 2004-10-20&lt;br /&gt;
 ACAD_PM=255&lt;br /&gt;
 BATT_PM=96&lt;br /&gt;
                                                                                                                                     &lt;br /&gt;
 # ac/battery event handler&lt;br /&gt;
                                                                                                                                     &lt;br /&gt;
 status=`awk '/^state: / { print $2 }' /proc/acpi/ac_adapter/AC/state`&lt;br /&gt;
                                                                                                                                      &lt;br /&gt;
 case $status in&lt;br /&gt;
        &amp;quot;on-line&amp;quot;)&lt;br /&gt;
                logger &amp;quot;Running /sbin/laptop_mode stop&amp;quot;&lt;br /&gt;
                /sbin/laptop_mode stop&lt;br /&gt;
                logger &amp;quot;Setting HD spindown for AC mode with hdparm -S $ACAD_HD /dev/hda.&amp;quot;&lt;br /&gt;
                /sbin/hdparm -S $ACAD_HD /dev/hda &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
                logger &amp;quot;Setting HD powersaving for AC mode with hdparm -B $ACAD_PM /dev/hda.&amp;quot;&lt;br /&gt;
                /sbin/hdparm -B $ACAD_PM /dev/hda &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
                #logger &amp;quot;Turning on swap.&amp;quot;&lt;br /&gt;
                #/sbin/swapon -a&lt;br /&gt;
                #echo -n $ACAD_CPU:$ACAD_THR &amp;gt; /proc/acpi/processor/CPU0/limit&lt;br /&gt;
                exit 0&lt;br /&gt;
        ;;&lt;br /&gt;
        &amp;quot;off-line&amp;quot;)&lt;br /&gt;
                #logger &amp;quot;Turning off swap.&amp;quot;&lt;br /&gt;
                #/sbin/swapoff -a&lt;br /&gt;
                logger &amp;quot;Running /sbin/laptop_mode start&amp;quot;&lt;br /&gt;
                /sbin/laptop_mode start&lt;br /&gt;
                logger &amp;quot;Setting HD spindown for battery mode with hdparm -S $BATT_HD /dev/hda.&amp;quot;&lt;br /&gt;
                /sbin/hdparm -S $BATT_HD /dev/hda &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
                logger &amp;quot;Setting HD powersaving for battery mode with hdparm -B $BATT_PM /dev/hda.&amp;quot;&lt;br /&gt;
                /sbin/hdparm -B $BATT_PM /dev/hda &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
                #echo -n $BATT_CPU:$BATT_THR &amp;gt; /proc/acpi/processor/CPU0/limit&lt;br /&gt;
                exit 0&lt;br /&gt;
        ;;&lt;br /&gt;
 esac&lt;br /&gt;
&lt;br /&gt;
===Laptop-mode===&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
==DynamicClocks in the Radeon Xorg driver==&lt;br /&gt;
The xorg X server have support for a power saving feature from ATI called PowerPlay. Xorg calls this feature DynamicClocks. It can be enabled in the server by adding '''Option  &amp;quot;DynamicClocks&amp;quot; &amp;quot;on&amp;quot;''' in the '''Device''' section in /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
        Identifier  &amp;quot;Videocard0&amp;quot;&lt;br /&gt;
        Driver      &amp;quot;radeon&amp;quot;&lt;br /&gt;
        VendorName  &amp;quot;IBM Thinkpad&amp;quot;&lt;br /&gt;
        BoardName   &amp;quot;ATI Radeon Mobility M9&amp;quot;&lt;br /&gt;
        '''Option      &amp;quot;DynamicClocks&amp;quot; &amp;quot;on&amp;quot;'''&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With this option enabled, the X11 server should print (/var/log/Xorg.0.log):&lt;br /&gt;
&lt;br /&gt;
 (**) RADEON(0): Option &amp;quot;DynamicClocks&amp;quot; &amp;quot;on&amp;quot;&lt;br /&gt;
 (II) RADEON(0): Dynamic Clock Scaling Enabled&lt;br /&gt;
&lt;br /&gt;
http://www.ati.com/products/pdf/powerplaywp2.pdf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==other Hardware==&lt;br /&gt;
Todo...(if any - other ways of saving power and such)&lt;/div&gt;</summary>
		<author><name>Gthomassen</name></author>
		
	</entry>
</feed>