WARNING:This howto is now deprecated. Suspend and hibernating are now handled with xfce4-power-manager and pm utils.
Just make sure these 2 packages are installed and you have lilo setup correctly (see below)image = /boot/vmlinuz
root = /dev/hda2
label = linux
append = "resume=swap:/dev/hda3"
read-only
Assumptions- Your box CAN run xfce4
- Your box CAN run hal
- You have root access to yoru box
- You are using LILO as a boot manager
WARNINGThe following instructions WILL NOT WORK ON any other window manager other than xfce4 version 4.6.0 and newer only.
This process requires you to use HAL as the system mounter. If you run VectorLinux Light on legacy hardware, xfce4 + hal may be a burden that you box cannot handle. Proceed at your own risk.
System preparationBefore doing anything else, prepare your system for hibernation.
The kernel is already patched and prepared for it, so dont even worry about that. Instead, let's setup your boot loader
mcedit /etc/lilo.conf
image = /boot/vmlinuz
root = /dev/hda2
label = linux
append = "resume=swap:/dev/hda3"
read-only
Notice the append line. Make sure you have one like that, but replace "/dev/hda3" with whatever your swap partition is
Your user accountYou will need to add your user (non-root) account to the "power" group to be able to use this.
And also, any additional user accounds created in the future will need to be members of this group.
The easiest way to do this is to edit your /etc/group file and add your user names to the end of the line that looks like this
power:x:84:
so your line should look like this
power:x:84:vluser
At this point, you need to reboot your computer.
You may choose to keep going, but you will be unable to test any of the following steps as you complete this howto.
Prepare software sourcesMake sure you have the "testing" repository enabled in your software sources.
mcedt /etc/slapt-get/slapt-getrc
Find the line for whose URL ends in "testing", make it's prefix look like the other enabled repos (packages,extra,patches)
Update your slapt-get sources
slapt-get -u
install softwareslapt-get-i xfce4 pm-utils xfce4-power-manager
Just to be safe, make sure you DO NOT have a xfce4-power-additions package installed.
removepkg xfce4-power-additions
That should be enough for your to be able to suspend and hibernate from the xfce4 logout window (session manager)
Extra tweakingTo enable hibernate to work when you close your laptop's lid, follow this extra step.
Create a file /etc/acpi/events/lid with the following contents
event=button/lid
action=pm-suspend
You can also choose to hibernate your box instead of suspend, by simply changing "pm-suspend" to "pm-hibernate"
If you have not yet done so, reboot and enjoy.
