Gentoo Archives: gentoo-doc-cvs

From: Josh Saddler <nightmorph@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: power-management-guide.xml
Date: Tue, 20 Feb 2007 17:44:29
Message-Id: E1HJZ2G-0002Xb-33@lark.gentoo.org
1 nightmorph 07/02/20 17:44:15
2
3 Modified: power-management-guide.xml
4 Log:
5 updated power management guide for the new hibernate-script configuration, bug 167098
6
7 Revision Changes Path
8 1.24 xml/htdocs/doc/en/power-management-guide.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/power-management-guide.xml?rev=1.24&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/power-management-guide.xml?rev=1.24&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/power-management-guide.xml?r1=1.23&r2=1.24
13
14 Index: power-management-guide.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v
17 retrieving revision 1.23
18 retrieving revision 1.24
19 diff -u -r1.23 -r1.24
20 --- power-management-guide.xml 17 Dec 2006 03:42:50 -0000 1.23
21 +++ power-management-guide.xml 20 Feb 2007 17:44:15 -0000 1.24
22 @@ -1,6 +1,6 @@
23 <?xml version='1.0' encoding="UTF-8"?>
24 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
25 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.23 2006/12/17 03:42:50 nightmorph Exp $ -->
26 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.24 2007/02/20 17:44:15 nightmorph Exp $ -->
27 <guide link="/doc/en/power-management-guide.xml">
28 <title>Power Management Guide</title>
29
30 @@ -20,8 +20,8 @@
31 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
32 <license/>
33
34 -<version>1.30</version>
35 -<date>2006-12-16</date>
36 +<version>1.31</version>
37 +<date>2007-02-20</date>
38
39 <chapter>
40 <title>Introduction</title>
41 @@ -1294,19 +1294,26 @@
42
43 <p>
44 Some configuration has to be done in <path>/etc/hibernate</path> The default
45 -package introduces two configuration files <path>hibernate.conf</path> and
46 -<path>ram.conf</path>.
47 +package introduces a few configuration files for each sleep state. Options that
48 +are common to all suspend methods are placed in <path>common.conf</path>; make
49 +sure this file is properly set up for your system.
50 </p>
51
52 <p>
53 -To configure sleep, edit <path>ram.conf</path> in <path>/etc/hibernate</path>.
54 -<c>UseSysfsPowerState mem</c> is already setup correctly, but you have to go
55 -through the rest of the configuration file and set it up for your system. The
56 -comments and option names will guide you. If you use nfs or samba shares over
57 -the network, make sure to shutdown the appropriate init scripts to avoid
58 -timeouts.
59 +To configure sleep, edit <path>sysfs-ram.conf</path> in
60 +<path>/etc/hibernate</path>. <c>UseSysfsPowerState mem</c> is already setup
61 +correctly, but you need to make further changes to this particular sleep state
62 +(or any other sleep state) you should add them to
63 +<path>/etc/hibernate/hibernate.conf</path>. The comments and option names will
64 +guide you. If you use nfs or samba shares over the network, make sure to
65 +shutdown the appropriate init scripts to avoid timeouts.
66 </p>
67
68 +<note>
69 +For more information on setting up sleep states, read <c>man
70 +hibernate.conf</c>.
71 +</note>
72 +
73 <p>
74 Ready? Now is the last chance to backup any data you want to keep after
75 executing the next command. Notice that you probably have to hit a special key
76 @@ -1319,10 +1326,9 @@
77
78 <p>
79 If you're still reading, it seems to work. You can also setup standby (S1) in a
80 -similar way by copying <path>ram.conf</path> to <path>standby.conf</path> and
81 -creating a symlink <path>/usr/sbin/hibernate-standby</path> pointing to
82 -<path>/usr/sbin/hibernate</path>. S3 and S4 are the more interesting sleep
83 -states due to greater energy savings however.
84 +similar way by editing <path>sysfs-ram.conf</path> and changing
85 +"UseSysfsPowerState mem" to "UseSysfsPowerState standby". S3 and S4 are the more
86 +interesting sleep states due to greater energy savings however.
87 </p>
88
89 </body>
90 @@ -1397,7 +1403,7 @@
91
92 <p>
93 To activate hibernate with swsusp, use the hibernate script and set
94 -<c>UseSysfsPowerState disk</c> in <path>/etc/hibernate/hibernate.conf</path>.
95 +<c>UseSysfsPowerState disk</c> in <path>/etc/hibernate/sysfs-disk</path>.
96 </p>
97
98 <warn>
99 @@ -1409,11 +1415,11 @@
100 <p>
101 If you experience kernel panics due to uhci or similar, try to compile USB
102 support as module and unload the modules before sending your laptop to sleep
103 -mode. There are configuration options for this in <path>hibernate.conf</path>
104 +mode. There are configuration options for this in <path>common.conf</path>
105 </p>
106
107 <pre caption="Hibernating with swsusp">
108 -# <i>nano -w /etc/hibernate.conf</i>
109 +# <i>nano -w /etc/hibernate/common.conf</i>
110 <comment>(Make sure you have a backup of your data)</comment>
111 # <i>hibernate</i>
112 </pre>
113 @@ -1438,14 +1444,13 @@
114 </pre>
115
116 <p>
117 -Now edit <path>/etc/hibernate/hibernate.conf</path>, enable the <c>suspend2</c>
118 -section and comment everything in the <c>sysfs_power_state</c> and
119 -<c>acpi_sleep</c> sections. Do not enable the <c>fbsplash</c> part in global
120 -options yet.
121 +Now edit <path>/etc/hibernate/suspend2.conf</path>, enable the <c>suspend2</c>
122 +options you need. Do not enable the <c>fbsplash</c> options in
123 +<c>common.conf</c> just yet.
124 </p>
125
126 <pre caption="Hibernating with suspend2">
127 -# <i>nano -w /etc/hibernate.conf</i>
128 +# <i>nano -w /etc/hibernate/suspend2.conf</i>
129 <comment>(Make sure you have a backup of your data)</comment>
130 # <i>hibernate</i>
131 </pre>
132 @@ -1458,8 +1463,9 @@
133 </p>
134
135 <pre caption="Installing suspend2-userui">
136 -# <i>mkdir -p /etc/portage</i>
137 # <i>echo "sys-apps/suspend2-userui fbsplash" >> /etc/portage/package.use</i>
138 +<comment>(It may be marked ~arch, so first it must be keyworded)</comment>
139 +# <i>echo "sys-apps/suspend2-userui" >> /etc/portage/package.keywords</i>
140 # <i>emerge suspend2-userui</i>
141 </pre>
142
143 @@ -1491,10 +1497,10 @@
144 </pre>
145
146 <p>
147 -Afterwards adjust <path>grub.conf</path> respectively <path>lilo.conf</path> so
148 -that your suspend2 kernel uses
149 -<path>/boot/fbsplash-suspend2-emergence-1024x768</path> as initrd image. You
150 -can now test a dry run to see if everything is setup correctly.
151 +Afterwards adjust <path>grub.conf</path> (or <path>lilo.conf</path>) so that
152 +your suspend2 kernel uses
153 +<path>/boot/fbsplash-suspend2-emergence-1024x768</path> as initrd image. You can
154 +now test a dry run to see if everything is setup correctly.
155 </p>
156
157 <pre caption="Test run for fbsplash hibernation">
158 @@ -1502,8 +1508,8 @@
159 </pre>
160
161 <p>
162 -Afterwards open <path>/etc/hibernate/hibernate.conf</path> again and activate
163 -the fbsplash options. Execute <c>hibernate</c> and enjoy.
164 +Afterwards open <path>/etc/hibernate/common.conf</path> and activate the
165 +fbsplash options. Execute <c>hibernate</c> and enjoy.
166 </p>
167
168 </body>
169
170
171
172 --
173 gentoo-doc-cvs@g.o mailing list