Suspend and Hibernate
Configuring Hardware - Suspend and Hibernate
If you have a laptop, chances are you'll want your system to go to sleep based on various actions, such as closing the lid. The ability to suspend and hibernate should already have been installed along with the sys-power/pm-utils package. When running xfce, managing power actions and events can be simplified by leveraging xfce4-power-manager.
$ sudo emerge -av xfce4-power-manager
Once the emerge has completed, you can access your power settings via Settings -> Xfce 4 Power Manager from your menu. You can easily set the icon to display on ac or battery power, and set actions for things such as closing the lid, when the ac adapter is unplugged, or after running on batteries for a certain time period.
Another method for controlling your suspend / hibernate features is to manually edit the acpi configuration. This can be done via the file /etc/acpi/default.sh.