Swsusp
Encyclopedia
swsusp is a suspend-to-disk implementation in the 2.6 series Linux kernel
Linux kernel
The Linux kernel is an operating system kernel used by the Linux family of Unix-like operating systems. It is one of the most prominent examples of free and open source software....

. It is the Linux
Linux
Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. The defining component of any Linux system is the Linux kernel, an operating system kernel first released October 5, 1991 by Linus Torvalds...

 equivalent of Windows
Microsoft Windows
Microsoft Windows is a series of operating systems produced by Microsoft.Microsoft introduced an operating environment named Windows on November 20, 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces . Microsoft Windows came to dominate the world's personal...

 hibernate
Hibernate (OS feature)
Hibernation in computing is powering down a computer while retaining its state.Upon hibernation, the computer saves the contents of its random access memory to a hard disk or other non-volatile storage...

 functionality. TuxOnIce replaces swsusp.

To enable swsusp, the following should be selected during kernel configuration :


Power management options → <*>Power management support (CONFIG_PM)
Power management options → <*>Software Suspend (CONFIG_SOFTWARE_SUSPEND)
Power management options → [/dev/resume_partition]Default resume partition (CONFIG_PM_STD_PARTITION)


The /dev/resume_partition needs to be replaced by the actual swap partition
Virtual memory
In computing, virtual memory is a memory management technique developed for multitasking kernels. This technique virtualizes a computer architecture's various forms of computer data storage , allowing a program to be designed as though there is only one kind of memory, "virtual" memory, which...

 that is to be used for suspending. Otherwise resume=/dev/resume_partition can be given as a parameter during system bootup. The actual suspend is done by :


echo shutdown > /sys/power/disk; echo disk > /sys/power/state


swsusp lacks some features, such as compression and graphical progress indication. You can still get them, 2.6.18+ kernels allow suspend to be controlled from userspace.

See also

  • TuxOnIce, the descendant of swsusp
  • muswsusp userspace software for suspending to ram and/or disk
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK