[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:hibernation [2012/08/29 08:11 (UTC)] – [Booloader configuration] bormant | howtos:hibernation [2012/09/25 02:46 (UTC)] (current) – moved to the howtos:slackware_admin section mfillpot | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Hibernation ====== | ||
- | Hibernation (also known as suspend-to-disk) is method how to power down computer while preserving state of the operating system. Once powered up, operating system will be in the exact state as it was at the time of hibernation. | ||
- | |||
- | In Slackware it works out-of-the-box. However, in order to resume successfully from hibernated state, you need to configure bootloader, so it knows where to resume from. | ||
- | |||
- | ===== Hibernating ===== | ||
- | |||
- | ==== Desktop Environments ==== | ||
- | |||
- | KDE, XFCE and other [[slackware: | ||
- | |||
- | ==== lightweight windows managers ==== | ||
- | |||
- | You can hibernate your system from console. Either as root via pm-utils or D-Bus with additional programs as regular user. | ||
- | |||
- | === pm-utils === | ||
- | |||
- | Hibernation is done via '' | ||
- | |||
- | === D-Bus === | ||
- | |||
- | Slackware offers two services to control power management in it's recent releases. UPower and HAL. Since HAL is deprecated in favor of UPower, use HAL in older Slackware releases (from 12.0 to 13.37), otherwise use UPower. | ||
- | |||
- | Use one of these command to hibernate your system. | ||
- | |||
- | == UPower == | ||
- | |||
- | <code bash> | ||
- | $ dbus-send --system --print-reply --dest=" | ||
- | / | ||
- | </ | ||
- | |||
- | == HAL == | ||
- | |||
- | <code bash> | ||
- | $ dbus-send --system --print-reply --dest=" | ||
- | / | ||
- | </ | ||
- | |||
- | ===== Bootloader configuration ===== | ||
- | |||
- | ==== Non-LVM setup ==== | ||
- | |||
- | === LILO configuration === | ||
- | |||
- | To tell your kernel where to resume from, you need to write the info to '' | ||
- | < | ||
- | append=" | ||
- | </ | ||
- | Replace ''/ | ||
- | |||
- | ==== LVM setup ==== | ||
- | |||
- | LILO doesn' | ||
- | |||
- | You don't have to adjust '' | ||
- | < | ||
- | mkinitrd -c -k < | ||
- | </ | ||
- | * -h set your hibernation/ | ||
- | * -L activate LVM | ||
- | |||
- | Afterwards, run lilo. | ||
- | |||
- | ===== Further reading ===== | ||
- | |||
- | * Hibernate to encrypted swap - [[http:// | ||
- | |||
- | ===== Sources ===== | ||
- | * Original source: [[http:// | ||
- | * Originally written by Unknown Slacker | ||
- | * Rewritten by me ([[wiki: | ||
- | |||
- | {{tag> |