<?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=Zobel</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=Zobel"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Zobel"/>
	<updated>2026-04-19T17:39:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Swsusp&amp;diff=22355</id>
		<title>Swsusp</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Swsusp&amp;diff=22355"/>
		<updated>2006-05-18T07:34:54Z</updated>

		<summary type="html">&lt;p&gt;Zobel: /* Kernel configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
===Software Suspend - swsusp===&lt;br /&gt;
Software Suspend (&amp;lt;tt&amp;gt;swsusp&amp;lt;/tt&amp;gt;) is a suspend-to-disk implementation included in the 2.6 kernel series. See [[Software Suspend 2]] for an alternative implementation, which has some advantages.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Kernel configuration==&lt;br /&gt;
To enable software suspend change your kernel config as follows:&lt;br /&gt;
:{{kernelconf|CONFIG_PM|&amp;lt;*&amp;gt;|Power management support|Power management options|||}}&lt;br /&gt;
:{{kernelconf|CONFIG_SOFTWARE_SUSPEND|&amp;lt;*&amp;gt;|Software Suspend|Power management options|||}}&lt;br /&gt;
:{{kernelconf|CONFIG_PM_STD_PARTITION|[/dev/resume_partition]|Default resume partition|Power management options|||}}&lt;br /&gt;
&amp;lt;tt&amp;gt;/dev/resume_partition&amp;lt;/tt&amp;gt; needs to be replaced by the swap partition you want to use for suspending. (Use {{cmdroot|fdisk -l /dev/hda}} if unsure.) &lt;br /&gt;
&lt;br /&gt;
You can override the default resume partition anytime by giving {{bootparm|resume|/dev/resume_partition}} as kernel boot parameter.&lt;br /&gt;
Also, in case you suspended, but want to boot up normally (without resuming from the saved image - losing all data that was unsaved at suspend time), you can give the {{bootparm|noresume|}} kernel boot parameter.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|For some people suspending did not work if &amp;lt;tt&amp;gt;resume_partition&amp;lt;/tt&amp;gt; was specified in the kernel config. In such case specify the resume partition as a kernel parameter instead.}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|When using Debian Etch or Sid, you need to use &amp;lt;tt&amp;gt;initramfs-tools&amp;lt;/tt&amp;gt; as yaird is currently (2006-05-18) not supporting swsusp. See [http://wiki.debian.org/InitrdReplacementOptions the Debian Wiki] for more details.}}&lt;br /&gt;
&lt;br /&gt;
==Suspending==&lt;br /&gt;
To suspend you can either do a simple {{cmdroot|echo disk &amp;gt; /sys/power/state}} (recommended) or use the [http://softwaresuspend.berlios.de/old-site/swsusp/sysvinit-2.76-v2-for_swsusp-v5.tar.gz patched SysVInit] and call {{cmdroot|swsusp}} or {{cmdroot|shutdown -z now}}. As the {{path|/proc/acpi/sleep}} interface becomes deprecated in newer kernels you should NOT use the old {{cmdroot|echo -n 4 &amp;gt; /proc/acpi/sleep}} anymore.&lt;br /&gt;
&lt;br /&gt;
Ideally, you would do this from a script like {{path|/etc/acpi/actions/hibernate.sh}}. It has proven to be a good idea to shutdown the following processes/drivers within the script before you do the actual suspend:&lt;br /&gt;
*any running mysql server&lt;br /&gt;
*the linuxant driver may require to be stopped as well ({{cmdroot|dldrstop}} does the trick).&lt;br /&gt;
&lt;br /&gt;
Afterwards you might want to enable them again, as well as run a script that does necessary configurations according to the ac power state.&lt;br /&gt;
Furthermore, the system clock is not readjusted automatically, so you will probably also want the do that from that script (i.e. by restarting your systemclock bootup script).&lt;br /&gt;
&lt;br /&gt;
If the sound output is silent after resume, the following commands might help to get sound to work again without reloading any modules:&lt;br /&gt;
 amixer set Master mute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
 amixer set PCM mute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
 amixer set Master unmute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
 amixer set PCM unmute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
==S5 vs. S4 state==&lt;br /&gt;
Finally you should take note that swsusp does not set the ACPI S4 state. Instead it goes to S5. This means that the machine itself doesn't know that it was suspend rather than shutdown. Hence you can i.e. boot a parallel installed other operating system and resume your linux session later, as long as you don't touch the swap partition the image was saved to.&lt;/div&gt;</summary>
		<author><name>Zobel</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Swsusp&amp;diff=22354</id>
		<title>Swsusp</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Swsusp&amp;diff=22354"/>
		<updated>2006-05-18T07:34:28Z</updated>

		<summary type="html">&lt;p&gt;Zobel: /* Kernel configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
===Software Suspend - swsusp===&lt;br /&gt;
Software Suspend (&amp;lt;tt&amp;gt;swsusp&amp;lt;/tt&amp;gt;) is a suspend-to-disk implementation included in the 2.6 kernel series. See [[Software Suspend 2]] for an alternative implementation, which has some advantages.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Kernel configuration==&lt;br /&gt;
To enable software suspend change your kernel config as follows:&lt;br /&gt;
:{{kernelconf|CONFIG_PM|&amp;lt;*&amp;gt;|Power management support|Power management options|||}}&lt;br /&gt;
:{{kernelconf|CONFIG_SOFTWARE_SUSPEND|&amp;lt;*&amp;gt;|Software Suspend|Power management options|||}}&lt;br /&gt;
:{{kernelconf|CONFIG_PM_STD_PARTITION|[/dev/resume_partition]|Default resume partition|Power management options|||}}&lt;br /&gt;
&amp;lt;tt&amp;gt;/dev/resume_partition&amp;lt;/tt&amp;gt; needs to be replaced by the swap partition you want to use for suspending. (Use {{cmdroot|fdisk -l /dev/hda}} if unsure.) &lt;br /&gt;
&lt;br /&gt;
You can override the default resume partition anytime by giving {{bootparm|resume|/dev/resume_partition}} as kernel boot parameter.&lt;br /&gt;
Also, in case you suspended, but want to boot up normally (without resuming from the saved image - losing all data that was unsaved at suspend time), you can give the {{bootparm|noresume|}} kernel boot parameter.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|For some people suspending did not work if &amp;lt;tt&amp;gt;resume_partition&amp;lt;/tt&amp;gt; was specified in the kernel config. In such case specify the resume partition as a kernel parameter instead. See [http://wiki.debian.org/InitrdReplacementOptions the Debian Wiki] for more details.}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|When using Debian Etch or Sid, you need to use &amp;lt;tt&amp;gt;initramfs-tools&amp;lt;/tt&amp;gt; as yaird is currently (2006-05-18) not supporting swsusp. }}&lt;br /&gt;
&lt;br /&gt;
==Suspending==&lt;br /&gt;
To suspend you can either do a simple {{cmdroot|echo disk &amp;gt; /sys/power/state}} (recommended) or use the [http://softwaresuspend.berlios.de/old-site/swsusp/sysvinit-2.76-v2-for_swsusp-v5.tar.gz patched SysVInit] and call {{cmdroot|swsusp}} or {{cmdroot|shutdown -z now}}. As the {{path|/proc/acpi/sleep}} interface becomes deprecated in newer kernels you should NOT use the old {{cmdroot|echo -n 4 &amp;gt; /proc/acpi/sleep}} anymore.&lt;br /&gt;
&lt;br /&gt;
Ideally, you would do this from a script like {{path|/etc/acpi/actions/hibernate.sh}}. It has proven to be a good idea to shutdown the following processes/drivers within the script before you do the actual suspend:&lt;br /&gt;
*any running mysql server&lt;br /&gt;
*the linuxant driver may require to be stopped as well ({{cmdroot|dldrstop}} does the trick).&lt;br /&gt;
&lt;br /&gt;
Afterwards you might want to enable them again, as well as run a script that does necessary configurations according to the ac power state.&lt;br /&gt;
Furthermore, the system clock is not readjusted automatically, so you will probably also want the do that from that script (i.e. by restarting your systemclock bootup script).&lt;br /&gt;
&lt;br /&gt;
If the sound output is silent after resume, the following commands might help to get sound to work again without reloading any modules:&lt;br /&gt;
 amixer set Master mute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
 amixer set PCM mute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
 amixer set Master unmute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
 amixer set PCM unmute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
==S5 vs. S4 state==&lt;br /&gt;
Finally you should take note that swsusp does not set the ACPI S4 state. Instead it goes to S5. This means that the machine itself doesn't know that it was suspend rather than shutdown. Hence you can i.e. boot a parallel installed other operating system and resume your linux session later, as long as you don't touch the swap partition the image was saved to.&lt;/div&gt;</summary>
		<author><name>Zobel</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Swsusp&amp;diff=22353</id>
		<title>Swsusp</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Swsusp&amp;diff=22353"/>
		<updated>2006-05-18T07:33:02Z</updated>

		<summary type="html">&lt;p&gt;Zobel: comment about yaird and initramfs-tools&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
===Software Suspend - swsusp===&lt;br /&gt;
Software Suspend (&amp;lt;tt&amp;gt;swsusp&amp;lt;/tt&amp;gt;) is a suspend-to-disk implementation included in the 2.6 kernel series. See [[Software Suspend 2]] for an alternative implementation, which has some advantages.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Kernel configuration==&lt;br /&gt;
To enable software suspend change your kernel config as follows:&lt;br /&gt;
:{{kernelconf|CONFIG_PM|&amp;lt;*&amp;gt;|Power management support|Power management options|||}}&lt;br /&gt;
:{{kernelconf|CONFIG_SOFTWARE_SUSPEND|&amp;lt;*&amp;gt;|Software Suspend|Power management options|||}}&lt;br /&gt;
:{{kernelconf|CONFIG_PM_STD_PARTITION|[/dev/resume_partition]|Default resume partition|Power management options|||}}&lt;br /&gt;
&amp;lt;tt&amp;gt;/dev/resume_partition&amp;lt;/tt&amp;gt; needs to be replaced by the swap partition you want to use for suspending. (Use {{cmdroot|fdisk -l /dev/hda}} if unsure.) &lt;br /&gt;
&lt;br /&gt;
You can override the default resume partition anytime by giving {{bootparm|resume|/dev/resume_partition}} as kernel boot parameter.&lt;br /&gt;
Also, in case you suspended, but want to boot up normally (without resuming from the saved image - losing all data that was unsaved at suspend time), you can give the {{bootparm|noresume|}} kernel boot parameter.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|For some people suspending did not work if &amp;lt;tt&amp;gt;resume_partition&amp;lt;/tt&amp;gt; was specified in the kernel config. In such case specify the resume partition as a kernel parameter instead.}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|When using Debian Etch or Sid, you need to use &amp;lt;tt&amp;gt;initramfs-tools&amp;lt;/tt&amp;gt; as yaird is currently (2006-05-18) not supporting swsusp. }}&lt;br /&gt;
&lt;br /&gt;
==Suspending==&lt;br /&gt;
To suspend you can either do a simple {{cmdroot|echo disk &amp;gt; /sys/power/state}} (recommended) or use the [http://softwaresuspend.berlios.de/old-site/swsusp/sysvinit-2.76-v2-for_swsusp-v5.tar.gz patched SysVInit] and call {{cmdroot|swsusp}} or {{cmdroot|shutdown -z now}}. As the {{path|/proc/acpi/sleep}} interface becomes deprecated in newer kernels you should NOT use the old {{cmdroot|echo -n 4 &amp;gt; /proc/acpi/sleep}} anymore.&lt;br /&gt;
&lt;br /&gt;
Ideally, you would do this from a script like {{path|/etc/acpi/actions/hibernate.sh}}. It has proven to be a good idea to shutdown the following processes/drivers within the script before you do the actual suspend:&lt;br /&gt;
*any running mysql server&lt;br /&gt;
*the linuxant driver may require to be stopped as well ({{cmdroot|dldrstop}} does the trick).&lt;br /&gt;
&lt;br /&gt;
Afterwards you might want to enable them again, as well as run a script that does necessary configurations according to the ac power state.&lt;br /&gt;
Furthermore, the system clock is not readjusted automatically, so you will probably also want the do that from that script (i.e. by restarting your systemclock bootup script).&lt;br /&gt;
&lt;br /&gt;
If the sound output is silent after resume, the following commands might help to get sound to work again without reloading any modules:&lt;br /&gt;
 amixer set Master mute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
 amixer set PCM mute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
 amixer set Master unmute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
 amixer set PCM unmute &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
==S5 vs. S4 state==&lt;br /&gt;
Finally you should take note that swsusp does not set the ACPI S4 state. Instead it goes to S5. This means that the machine itself doesn't know that it was suspend rather than shutdown. Hence you can i.e. boot a parallel installed other operating system and resume your linux session later, as long as you don't touch the swap partition the image was saved to.&lt;/div&gt;</summary>
		<author><name>Zobel</name></author>
		
	</entry>
</feed>