Created Sunday 08/07/2007
See: http://wiki.suspend2.net/HibernateScript
yaourt -S hibernate-scripts
/etc/hibernate/hibernate.conf :
#UseSuspend2 on #FileWriterLocation /suspend2.img 1000 #Encryptor none #UseACPISleep 3
TryMethod ram.conf #TryMethod suspend2.conf #TryMethod disk.conf
Sources:
Make shure acpid is running. You can look at ACPI events with the command acpi_listen In my case the events are the same for opening and closing the lid.
Create in /etc/acpi/events/suspend-lid
event=button/lid action=/usr/sbin/hibernate
Restart acpid daemon
Change to a terminal console before hivernate by sudo chvt 1 Cela devrait déjà être activé dans /etc/hibernate/common.conf par : SwitchToTextMode yes
Use powernowd