/[gentoo]/xml/htdocs/doc/en/power-management-guide.xml
Gentoo

Diff of /xml/htdocs/doc/en/power-management-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.33 Revision 1.34
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.33 2008/01/21 12:12:12 jkt Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.34 2008/01/21 12:15:56 jkt Exp $ -->
4<guide link="/doc/en/power-management-guide.xml"> 4<guide link="/doc/en/power-management-guide.xml">
5<title>Power Management Guide</title> 5<title>Power Management Guide</title>
6 6
7<author title="Author"> 7<author title="Author">
8 <mail link="earthwings@gentoo.org">Dennis Nienhüser</mail> 8 <mail link="earthwings@gentoo.org">Dennis Nienhüser</mail>
153</p> 153</p>
154 154
155<p> 155<p>
156There are different kernel sources in Portage. I'd recommend using 156There are different kernel sources in Portage. I'd recommend using
157<c>gentoo-sources</c> or <c>tuxonice-sources</c>. The latter contains patches 157<c>gentoo-sources</c> or <c>tuxonice-sources</c>. The latter contains patches
158for TuxOnIce, see the chapter about <uri link="#doc_chap7">sleep 158for TuxOnIce, see the chapter about <uri link="#doc_chap7">sleep states</uri>
159states</uri> for more details. When configuring the kernel, activate at least 159for more details. When configuring the kernel, activate at least these options:
160these options:
161</p> 160</p>
162 161
163<pre caption="Minimum kernel setup for Power Management (Kernel 2.6)"> 162<pre caption="Minimum kernel setup for Power Management (Kernel 2.6)">
164Power Management Options ---&gt; 163Power Management Options ---&gt;
165 [*] Power Management Support 164 [*] Power Management Support
1404<comment>(Make sure you have a backup of your data)</comment> 1403<comment>(Make sure you have a backup of your data)</comment>
1405# <i>hibernate</i> 1404# <i>hibernate</i>
1406</pre> 1405</pre>
1407 1406
1408<p> 1407<p>
1409The following section discusses the setup of TuxOnIce including fbsplash 1408The following section discusses the setup of TuxOnIce including fbsplash support
1410support for a nice graphical progress bar during suspend and resume. 1409for a nice graphical progress bar during suspend and resume.
1411</p> 1410</p>
1412 1411
1413<p> 1412<p>
1414The first part of the configuration is similar to the configuration of swsusp. 1413The first part of the configuration is similar to the configuration of swsusp.
1415In case you didn't store the location of your swap partition in the kernel 1414In case you didn't store the location of your swap partition in the kernel
1416config, you have to pass it as a kernel parameter with the 1415config, you have to pass it as a kernel parameter with the
1417<c>resume=swap:/dev/SWAP</c> directive. If booting is not possible due to a 1416<c>resume=swap:/dev/SWAP</c> directive. If booting is not possible due to a
1418broken image, append the <c>noresume</c> parameter. Additionally, the 1417broken image, append the <c>noresume</c> parameter. Additionally, the
1419<c>hibernate-cleanup</c> init script invalidates TuxOnIce images during the 1418<c>hibernate-cleanup</c> init script invalidates TuxOnIce images during the boot
1420boot process. 1419process.
1421</p> 1420</p>
1422 1421
1423<pre caption="Invalidating TuxOnIce images during the boot process"> 1422<pre caption="Invalidating TuxOnIce images during the boot process">
1424# <i>rc-update add hibernate-cleanup boot</i> 1423# <i>rc-update add hibernate-cleanup boot</i>
1425</pre> 1424</pre>
1436# <i>hibernate</i> 1435# <i>hibernate</i>
1437</pre> 1436</pre>
1438 1437
1439<p> 1438<p>
1440Please configure <c>fbsplash</c> now if you didn't do already. To enable 1439Please configure <c>fbsplash</c> now if you didn't do already. To enable
1441fbsplash support during hibernation, the <c>sys-apps/tuxonice-userui</c> 1440fbsplash support during hibernation, the <c>sys-apps/tuxonice-userui</c> package
1442package is needed. Additionally, you've got to enable the <c>fbsplash</c> USE 1441is needed. Additionally, you've got to enable the <c>fbsplash</c> USE flag.
1443flag.
1444</p> 1442</p>
1445 1443
1446<pre caption="Installing tuxonice-userui"> 1444<pre caption="Installing tuxonice-userui">
1447# <i>echo "sys-apps/tuxonice-userui fbsplash" >> /etc/portage/package.use</i> 1445# <i>echo "sys-apps/tuxonice-userui fbsplash" >> /etc/portage/package.use</i>
1448<comment>(It may be marked ~arch, so first it must be keyworded)</comment> 1446<comment>(It may be marked ~arch, so first it must be keyworded)</comment>
1509</p> 1507</p>
1510 1508
1511<p> 1509<p>
1512<e>A:</e> Make sure your processor supports CPU frequency scaling and you chose 1510<e>A:</e> Make sure your processor supports CPU frequency scaling and you chose
1513the right CPUFreq driver for your processor. Here is a list of processors that 1511the right CPUFreq driver for your processor. Here is a list of processors that
1514are supported by cpufreq (kernel 2.6.7): ARM Integrator, ARM-SA1100, 1512are supported by cpufreq (kernel 2.6.7): ARM Integrator, ARM-SA1100, ARM-SA1110,
1515ARM-SA1110, AMD Elan - SC400, SC410, AMD mobile K6-2+, AMD mobile K6-3+, AMD 1513AMD Elan - SC400, SC410, AMD mobile K6-2+, AMD mobile K6-3+, AMD mobile Duron,
1516mobile Duron, AMD mobile Athlon, AMD Opteron, AMD Athlon 64, Cyrix Media GXm, 1514AMD mobile Athlon, AMD Opteron, AMD Athlon 64, Cyrix Media GXm, Intel mobile
1517Intel mobile PIII and Intel mobile PIII-M on certain chipsets, Intel Pentium 4, 1515PIII and Intel mobile PIII-M on certain chipsets, Intel Pentium 4, Intel Xeon,
1518Intel Xeon, Intel Pentium M (Centrino), National Semiconductors Geode GX, 1516Intel Pentium M (Centrino), National Semiconductors Geode GX, Transmeta Crusoe,
1519Transmeta Crusoe, VIA Cyrix 3 / C3, UltraSPARC-III, SuperH SH-3, SH-4, several 1517VIA Cyrix 3 / C3, UltraSPARC-III, SuperH SH-3, SH-4, several "PowerBook" and
1520"PowerBook" and "iBook2" and various processors on some ACPI 2.0-compatible 1518"iBook2" and various processors on some ACPI 2.0-compatible systems (only if
1521systems (only if "ACPI Processor Performance States" are available to the 1519"ACPI Processor Performance States" are available to the ACPI/BIOS interface).
1522ACPI/BIOS interface).
1523</p> 1520</p>
1524 1521
1525<p> 1522<p>
1526<e>Q:</e> My laptop supports frequency scaling, but 1523<e>Q:</e> My laptop supports frequency scaling, but
1527<path>/sys/devices/system/cpu/cpu0/cpufreq/</path> is empty. 1524<path>/sys/devices/system/cpu/cpu0/cpufreq/</path> is empty.
1540 1537
1541<p> 1538<p>
1542<e>A:</e> Probably you have activated symmetric multiprocessing support 1539<e>A:</e> Probably you have activated symmetric multiprocessing support
1543(CONFIG_SMP) in your kernel. Deactivate it and it should work. Some older 1540(CONFIG_SMP) in your kernel. Deactivate it and it should work. Some older
1544kernels had a bug causing this. In that case, run <c>emerge x86info</c>, update 1541kernels had a bug causing this. In that case, run <c>emerge x86info</c>, update
1545your kernel as asked and check the current frequency with 1542your kernel as asked and check the current frequency with <c>x86info -mhz</c>.
1546<c>x86info -mhz</c>.
1547</p> 1543</p>
1548 1544
1549<p> 1545<p>
1550<e>Q:</e> I can change the CPU frequency, but the range is not as wide as in 1546<e>Q:</e> I can change the CPU frequency, but the range is not as wide as in
1551another OS. 1547another OS.
1552</p> 1548</p>
1553 1549
1554<p> 1550<p>
1555<e>A:</e> You can combine frequency scaling with ACPI throttling to get a lower 1551<e>A:</e> You can combine frequency scaling with ACPI throttling to get a lower
1556minimum frequency. Notice that throttling doesn't save much energy and is 1552minimum frequency. Notice that throttling doesn't save much energy and is mainly
1557mainly used for thermal management (keeping your laptop cool and quiet). You 1553used for thermal management (keeping your laptop cool and quiet). You can read
1558can read the current throttling state with <c>cat 1554the current throttling state with <c>cat /proc/acpi/processor/CPU/throttling</c>
1559/proc/acpi/processor/CPU/throttling</c> and change it with <c>echo -n "0:x" > 1555and change it with <c>echo -n "0:x" > /proc/acpi/processor/CPU/limit</c>, where
1560/proc/acpi/processor/CPU/limit</c>, where x is one of the Tx states listed in 1556x is one of the Tx states listed in
1561<path>/proc/acpi/processor/CPU/throttling</path>. 1557<path>/proc/acpi/processor/CPU/throttling</path>.
1562</p> 1558</p>
1563 1559
1564<p> 1560<p>
1565<e>Q:</e> When configuring the kernel, powersave, performance and userspace 1561<e>Q:</e> When configuring the kernel, powersave, performance and userspace
1631small. Resizing is not an option. 1627small. Resizing is not an option.
1632</p> 1628</p>
1633 1629
1634<p> 1630<p>
1635<e>A:</e> If there is enough free space on your system, you can use the 1631<e>A:</e> If there is enough free space on your system, you can use the
1636filewriter instead of the swapwriter. The <c>hibernate-script</c> supports it 1632filewriter instead of the swapwriter. The <c>hibernate-script</c> supports it as
1637as well. More information can be found in 1633well. More information can be found in
1638<path>/usr/src/linux/Documentation/power/tuxonice.txt</path>. 1634<path>/usr/src/linux/Documentation/power/tuxonice.txt</path>.
1639</p> 1635</p>
1640 1636
1641<p> 1637<p>
1642<e>Q:</e> I just bought a brand new battery, but it only lasts for some 1638<e>Q:</e> I just bought a brand new battery, but it only lasts for some

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.20