- cat > /etc/acpi/events/s2ram << EOF
-# When a button/power event is received, the hvs2ram script is run.
+ cat > /etc/acpi/events/button-lid << EOF
+# When the lid is closed, go into suspend to ram
+event=button/lid
+action=/etc/acpi/suspend2ram.sh
+EOF