Fix bug with sleep button event handler and netlink
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 23 Aug 2014 22:04:27 +0000 (18:04 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 24 Nov 2014 13:56:10 +0000 (08:56 -0500)
The suspend2ram.sh script was called two times: one for the event
SBTN, and when resuming, another time for the netlink event.

Now call suspend2ram.sh script only for the sleep button event.

stage2/misc/acpi/events/button-sleep

index 3624cc7..8454487 100644 (file)
@@ -1,3 +1,3 @@
 # When the lid is closed, go into suspend to ram
-event=button/sleep
+event=button/sleep SBTN*
 action=/etc/acpi/suspend2ram.sh button-sleep