/[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.38 Revision 1.39
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.38 2008/09/28 20:29:25 nightmorph Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.39 2009/05/14 15:01:19 nightmorph 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>
21 21
22<!-- The content of this document is licensed under the CC-BY-SA license --> 22<!-- The content of this document is licensed under the CC-BY-SA license -->
23<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 23<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
24<license/> 24<license/>
25 25
26<version>1.41</version> 26<version>1.42</version>
27<date>2008-09-28</date> 27<date>2009-05-14</date>
28 28
29<chapter> 29<chapter>
30<title>Introduction</title> 30<title>Introduction</title>
31<section> 31<section>
32<body> 32<body>
158for TuxOnIce, see the chapter about <uri link="#doc_chap7">sleep states</uri> 158for TuxOnIce, see the chapter about <uri link="#doc_chap7">sleep states</uri>
159for more details. When configuring the kernel, activate at least these options: 159for more details. When configuring the kernel, activate at least these options:
160</p> 160</p>
161 161
162<pre caption="Minimum kernel setup for Power Management (Kernel 2.6)"> 162<pre caption="Minimum kernel setup for Power Management (Kernel 2.6)">
163Power Management Options ---&gt; 163Power management and ACPI options ---&gt;
164 [*] Power Management Support 164[*] Power Management Support
165 [ ] Software Suspend 165 [ ] Software Suspend
166 166
167 ACPI( Advanced Configuration and Power Interface ) Support ---&gt; 167 ACPI( Advanced Configuration and Power Interface ) Support ---&gt;
168 [*] ACPI Support 168 [ ] Deprecated /proc/acpi/ files
169 [ ] Sleep States
170 [ ] /proc/acpi/sleep (deprecated)
171 [*] AC Adapter 169 [*] AC Adapter
172 [*] Battery 170 [*] Battery
173 &lt;M&gt; Button 171 &lt;M&gt; Button
174 &lt;M&gt; Video 172 &lt;M&gt; Video
175 [ ] Generic Hotkey 173 [ ] Generic Hotkey
1324Shutdown any NFS or samba server/client before hibernating. 1322Shutdown any NFS or samba server/client before hibernating.
1325</warn> 1323</warn>
1326 1324
1327<p> 1325<p>
1328There are two different implementations for S4. The original one is swsusp, 1326There are two different implementations for S4. The original one is swsusp,
1329then there is the newer tuxonice (former suspend2) with a nicer interface 1327then there is the newer tuxonice (formerly suspend2) with a nicer interface
1330(including fbsplash support). A <uri 1328(including fbsplash support). A <uri
1331link="http://tuxonice.net/features.html#compare"> feature comparison</uri> is 1329link="http://tuxonice.net/features.html#compare">feature comparison</uri> is
1332available at the <uri link="http://www.tuxonice.net">tuxonice Homepage</uri>. 1330available at the <uri link="http://www.tuxonice.net">tuxonice homepage</uri>.
1333There used to be Suspend-to-Disk (pmdisk), a fork of swsusp, but it has been 1331There used to be Suspend-to-Disk (pmdisk), a fork of swsusp, but it has been
1334merged back. 1332merged back.
1335</p> 1333</p>
1336 1334
1337<p> 1335<p>
1338TuxOnIce is not included in the mainline kernel yet, therefore you either have 1336TuxOnIce is not included in the mainline kernel yet, therefore you either have
1339to patch your kernel sources with the patches provided by <uri 1337to patch your kernel sources with the patches provided by <uri
1340link="http://tuxonice.net">tuxonice.net</uri> or use 1338link="http://www.tuxonice.net">tuxonice.net</uri> or use
1341<c>sys-kernel/tuxonice-sources</c>. 1339<c>sys-kernel/tuxonice-sources</c>.
1342</p> 1340</p>
1343 1341
1344<p> 1342<p>
1345The kernel part for both swusp and TuxOnIce is as follows: 1343The kernel part for both swusp and TuxOnIce is as follows:
1346</p> 1344</p>
1347 1345
1348<pre caption="Kernel configuration for the various suspend types"> 1346<pre caption="Kernel configuration for the various suspend types">
1349Power Management Options ---&gt; 1347Power Management and ACPI options ---&gt;
1350 <comment>(hibernate with swsusp)</comment> 1348 <comment>(hibernate with swsusp)</comment>
1351 [*] Software Suspend 1349 [*] Hibernation (aka 'suspend to disk')
1352 <comment>(replace /dev/SWAP with your swap partition)</comment> 1350 <comment>(replace /dev/SWAP with your swap partition)</comment>
1353 (/dev/SWAP) Default resume partition 1351 (/dev/SWAP) Default resume partition
1354 1352
1355 <comment>(hibernate with TuxOnIce)</comment> 1353 <comment>(hibernate with TuxOnIce)</comment>
1356 Enhanced Hibernation (TuxOnIce) 1354 Enhanced Hibernation (TuxOnIce)
1357 --- Image Storage (you need at least one writer) 1355 --- Image Storage (you need at least one allocator)
1358 [*] File Writer 1356 [*] File Allocator
1359 [*] Swap Writer 1357 [*] Swap Allocator
1360 --- General Options 1358 --- General Options
1361 [*] LZF image compression 1359 [*] Compression support
1362 <comment>(replace /dev/SWAP with your swap partition)</comment>
1363 (swap:/dev/SWAP) Default resume device name
1364 [ ] Allow Keep Image Mode 1360 [ ] Allow Keep Image Mode
1361 [*] Replace swsusp by default
1365</pre> 1362</pre>
1366 1363
1367<p> 1364<p>
1368The configuration for swsusp is rather easy. If you didn't store the location 1365The configuration for swsusp is rather easy. If you didn't store the location
1369of your swap partition in the kernel config, you can also pass it as a 1366of your swap partition in the kernel config, you can also pass it as a
1418<pre caption="Invalidating TuxOnIce images during the boot process"> 1415<pre caption="Invalidating TuxOnIce images during the boot process">
1419# <i>rc-update add hibernate-cleanup boot</i> 1416# <i>rc-update add hibernate-cleanup boot</i>
1420</pre> 1417</pre>
1421 1418
1422<p> 1419<p>
1423Now edit <path>/etc/hibernate/suspend2.conf</path>, enable the <c>TuxOnIce</c> 1420Now edit <path>/etc/hibernate/tuxonice.conf</path>, enable the <c>TuxOnIce</c>
1424options you need. Do not enable the <c>fbsplash</c> options in 1421options you need. Do not enable the <c>fbsplash</c> options in
1425<c>common.conf</c> just yet. 1422<c>common.conf</c> just yet.
1426</p> 1423</p>
1427 1424
1428<pre caption="Hibernating with TuxOnIce"> 1425<pre caption="Hibernating with TuxOnIce">
1429# <i>nano -w /etc/hibernate/suspend2.conf</i> 1426# <i>nano -w /etc/hibernate/tuxonice.conf</i>
1430<comment>(Make sure you have a backup of your data)</comment> 1427<comment>(Make sure you have a backup of your data)</comment>
1431# <i>hibernate</i> 1428# <i>hibernate</i>
1432</pre> 1429</pre>
1433 1430
1434<p> 1431<p>
1448The ebuild tells you to make a symlink to the theme you want to use. For 1445The ebuild tells you to make a symlink to the theme you want to use. For
1449example, to use the <c>livecd-2005.1</c> theme, run the following command: 1446example, to use the <c>livecd-2005.1</c> theme, run the following command:
1450</p> 1447</p>
1451 1448
1452<pre caption="Using the livecd-2005.1 theme during hibernation"> 1449<pre caption="Using the livecd-2005.1 theme during hibernation">
1453# <i>ln -sfn /etc/splash/livecd-2005.1 /etc/splash/suspend2</i> 1450# <i>ln -sfn /etc/splash/livecd-2005.1 /etc/splash/tuxonice</i>
1454</pre> 1451</pre>
1455 1452
1456<p> 1453<p>
1457If you don't want a black screen in the first part of the resume process, you 1454If you don't want a black screen in the first part of the resume process, you
1458have to add the <c>tuxoniceui_fbsplash</c> tool to your initrd image. Assuming 1455have to add the <c>tuxoniceui_fbsplash</c> tool to your initrd image. Assuming

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20