Home » Questions » Computers [ Ask a new question ]

What is the relationship between s2disk and hibernate?

What is the relationship between s2disk and hibernate?

On a Debian system, there are packages called uswsusp and hibernate. The former contains a program named s2disk, the latter contains a program called hibernate. Superficially, these both do the same thing: the suspend the machine to disk. Usually, this works fine, but since I'm often using Debian testing and there are lots of changes in kernel and other packages (I assume), somethings this breaks. But then, when one of these programs doesn't work, sometimes the other works. Often, hibernate works when s2disk doesn't. Somewhat annoyingly, however, the "Suspend" or "Hibernate" buttons in the graphical user interfaces (e.g., LXDE, KDE) appear to be wired up to the s2disk program, so when that breaks I have to use hibernate manually.

Asked by: Guest | Views: 364
Total answers/comments: 1
Guest [Entry]

"uswsusp - uses the facilities in the kernel to do a userspace software suspend. Hibernate is a set of scripts that will use a variety of methods (including uswsusp) to perform hibernation - depending on what is installed and available on the local machine (ACPI and in-kernel suspend are alternative methods to achieve the same thing). Hibernate will also take care of unloading and re-loading kernel modules.

So uswsusp is a lot more basic - and for most purposes you should be using the hibernate command to hibernate."