|
Lines 17-24
Link Here
|
| 17 |
<!-- See http://creativecommons.org/licenses/by-sa/2.0 --> |
17 |
<!-- See http://creativecommons.org/licenses/by-sa/2.0 --> |
| 18 |
<license/> |
18 |
<license/> |
| 19 |
|
19 |
|
| 20 |
<version>1.24</version> |
20 |
<version>1.25</version> |
| 21 |
<date>2005-06-10</date> |
21 |
<date>2005-09-16</date> |
| 22 |
|
22 |
|
| 23 |
<chapter> |
23 |
<chapter> |
| 24 |
<title>Introduction</title> |
24 |
<title>Introduction</title> |
|
Lines 142-148
Link Here
|
| 142 |
Power Management Options ---> |
142 |
Power Management Options ---> |
| 143 |
[*] Power Management Support |
143 |
[*] Power Management Support |
| 144 |
[ ] Software Suspend |
144 |
[ ] Software Suspend |
| 145 |
[ ] Suspend-to-Disk Support |
|
|
| 146 |
|
145 |
|
| 147 |
ACPI( Advanced Configuration and Power Interface ) Support ---> |
146 |
ACPI( Advanced Configuration and Power Interface ) Support ---> |
| 148 |
[*] ACPI Support |
147 |
[*] ACPI Support |
|
Lines 169-177
Link Here
|
| 169 |
</pre> |
168 |
</pre> |
| 170 |
|
169 |
|
| 171 |
<p> |
170 |
<p> |
| 172 |
Decide yourself whether you want to enable Software Suspend, Suspend-to-Disk and |
171 |
Decide yourself whether you want to enable Software Suspend and Sleep States |
| 173 |
Sleep States (see below). If you own an ASUS, Medion or Toshiba laptop, enable |
172 |
(see below). If you own an ASUS, Medion or Toshiba laptop, enable the |
| 174 |
the appropriate section. |
173 |
appropriate section. |
| 175 |
</p> |
174 |
</p> |
| 176 |
|
175 |
|
| 177 |
<p> |
176 |
<p> |
|
Lines 1051-1072
Link Here
|
| 1051 |
|
1050 |
|
| 1052 |
<warn> |
1051 |
<warn> |
| 1053 |
Altough sleep state support is improving much, it's still rather experimental. |
1052 |
Altough sleep state support is improving much, it's still rather experimental. |
| 1054 |
At last I got swsusp2 and suspend to RAM to work, but be warned: This will very |
1053 |
At last I got suspend2 and suspend to RAM to work, but be warned: This will very |
| 1055 |
likely not work but damage your data/system. |
1054 |
likely not work but damage your data/system. |
| 1056 |
</warn> |
1055 |
</warn> |
| 1057 |
|
1056 |
|
| 1058 |
<p> |
1057 |
<p> |
| 1059 |
There are currently three implementations for S4. The original one is swsusp, |
1058 |
There are currently three implementations for S4. The original one is swsusp, |
| 1060 |
then there is swsusp2 which has the nicest interface (including bootsplash |
1059 |
then there is suspend2 which has the nicest interface (including bootsplash |
| 1061 |
support), but requires manual kernel patching. Last not least we have |
1060 |
support), but requires manual kernel patching. We used to have Suspend-to-Disk |
| 1062 |
Suspend-to-Disk, a fork of swsusp. |
1061 |
(pmdisk), a fork of swsusp, but it has been merged back. |
| 1063 |
</p> |
1062 |
</p> |
| 1064 |
|
1063 |
|
| 1065 |
<p> |
1064 |
<p> |
| 1066 |
If this confused you, have a look at a <uri |
1065 |
If this confused you, have a look at a <uri |
| 1067 |
link="http://softwaresuspend.berlios.de/features.html#compare">feature |
1066 |
link="http://softwaresuspend.berlios.de/features.html#compare">feature |
| 1068 |
comparison</uri>. If you still are confused and don't know which one to choose, |
1067 |
comparison</uri>. If you still are confused and don't know which one to choose, |
| 1069 |
first give swsusp2 a try, it looks most promising. |
1068 |
first give suspend2 a try, it looks most promising. |
| 1070 |
</p> |
1069 |
</p> |
| 1071 |
|
1070 |
|
| 1072 |
<p> |
1071 |
<p> |
|
Lines 1082-1100
Link Here
|
| 1082 |
[*] Sleep States |
1081 |
[*] Sleep States |
| 1083 |
|
1082 |
|
| 1084 |
<comment>(hibernate with swsusp)</comment> |
1083 |
<comment>(hibernate with swsusp)</comment> |
| 1085 |
[*] Software Suspend (EXPERIMENTAL) |
1084 |
[*] Software Suspend |
|
|
1085 |
(/dev/"your-swap-here") Default resume partition |
| 1086 |
|
1086 |
|
| 1087 |
<comment>(hibernate with swsusp2)</comment> |
1087 |
<comment>(hibernate with suspend2)</comment> |
| 1088 |
Software Suspend 2 |
1088 |
Software Suspend 2 |
| 1089 |
--- Image Storage (you need at least one writer) |
1089 |
--- Image Storage (you need at least one writer) |
| 1090 |
[*] Swap Writer |
1090 |
[*] Swap Writer |
| 1091 |
--- Page Transformers |
1091 |
--- Page Transformers |
| 1092 |
[*] LZF image compression |
1092 |
[*] LZF image compression |
| 1093 |
(/dev/"your-swap-here") Default resume device name |
1093 |
(/dev/"your-swap-here") Default resume device name |
| 1094 |
|
|
|
| 1095 |
<comment>(hibernate with Suspend-to-Disk)</comment> |
| 1096 |
[*] Suspend-to-Disk Suport |
| 1097 |
(/dev/"your-swap-here") Default resume partition |
| 1098 |
</pre> |
1094 |
</pre> |
| 1099 |
|
1095 |
|
| 1100 |
<p> |
1096 |
<p> |
|
Lines 1103-1110
Link Here
|
| 1103 |
for 2.6 to find out what is supported. The latter gives me <c>standby mem |
1099 |
for 2.6 to find out what is supported. The latter gives me <c>standby mem |
| 1104 |
disk</c>. For swsusp, the kernel parameter <c>resume=/dev/"your-swap-here"</c> |
1100 |
disk</c>. For swsusp, the kernel parameter <c>resume=/dev/"your-swap-here"</c> |
| 1105 |
has to be appended. If booting is not possible due to a broken image, use |
1101 |
has to be appended. If booting is not possible due to a broken image, use |
| 1106 |
<c>noresume</c> for swsusp, <c>pmdisk=off</c> for Suspend-to-Disk and |
1102 |
<c>noresume</c> for swsusp and <c>noresume2</c> for suspend2. |
| 1107 |
<c>noresume2</c> for swsusp2. |
|
|
| 1108 |
</p> |
1103 |
</p> |
| 1109 |
|
1104 |
|
| 1110 |
<p> |
1105 |
<p> |
|
Lines 1120-1132
Link Here
|
| 1120 |
# <i>echo -n standby > /sys/power/state</i> <comment>(standby)</comment> |
1115 |
# <i>echo -n standby > /sys/power/state</i> <comment>(standby)</comment> |
| 1121 |
# <i>echo -n mem > /sys/power/state</i> <comment>(sleep)</comment> |
1116 |
# <i>echo -n mem > /sys/power/state</i> <comment>(sleep)</comment> |
| 1122 |
|
1117 |
|
| 1123 |
<comment>(swsusp)</comment> |
1118 |
<comment>(Hibernation with swsusp:)</comment> |
| 1124 |
# <i>echo 4 > /proc/acpi/sleep</i> <comment>(hibernate)</comment> |
1119 |
# <i>echo shutdown > /sys/power/disk; echo disk > /sys/power/state</i> |
| 1125 |
|
1120 |
<comment>(If you feel ACPI works pretty well on your system, you might try |
| 1126 |
<comment>(Suspend-to-Disk)</comment> |
1121 |
to hibernate via this instead of previous command:)</comment> |
| 1127 |
# <i>echo -n disk > /sys/power/state</i> <comment>(hibernate)</comment> |
1122 |
# <i>echo platform > /sys/power/disk; echo disk > /sys/power/state</i> |
|
|
1123 |
<comment>(For details, please consult |
| 1124 |
/usr/src/linux/Documentation/power/swsusp.txt)</comment> |
| 1128 |
|
1125 |
|
| 1129 |
<comment>(swsusp2)</comment> |
1126 |
<comment>(suspend2)</comment> |
| 1130 |
# <i>/usr/sbin/hibernate</i> <comment>(hibernate, see below)</comment> |
1127 |
# <i>/usr/sbin/hibernate</i> <comment>(hibernate, see below)</comment> |
| 1131 |
</pre> |
1128 |
</pre> |
| 1132 |
|
1129 |
|
|
Lines 1143-1155
Link Here
|
| 1143 |
</p> |
1140 |
</p> |
| 1144 |
|
1141 |
|
| 1145 |
<p> |
1142 |
<p> |
| 1146 |
While the above should be sufficient to get swsusp and Suspend-to-Disk running |
1143 |
While the above should be sufficient to get swsusp running (I didn't say |
| 1147 |
(I didn't say working), swsusp2 needs special care. |
1144 |
working), suspend2 needs special care. The first thing to do is patching the |
| 1148 |
The first thing to do is patching the kernel with the patches provided at <uri |
1145 |
kernel with the patches provided at <uri |
| 1149 |
link="http://softwaresuspend.berlios.de/"> |
1146 |
link="http://softwaresuspend.berlios.de/">http://softwaresuspend.berlios.de/</uri>. |
| 1150 |
http://softwaresuspend.berlios.de/</uri>. Additionally you've got to emerge |
1147 |
Additionally you've got to emerge <c>hibernate-script</c>. Once it is installed, |
| 1151 |
<c>hibernate-script</c>. Once it is installed, configure |
1148 |
configure <path>/etc/hibernate/hibernate.conf</path> and try whether it works: |
| 1152 |
<path>/etc/hibernate/hibernate.conf</path> and try whether it works: |
|
|
| 1153 |
</p> |
1149 |
</p> |
| 1154 |
|
1150 |
|
| 1155 |
<pre caption="Configure hibernation"> |
1151 |
<pre caption="Configure hibernation"> |