:: Re: [DNG] ASCII doesn't suspend whe…
Góra strony
Delete this message
Reply to this message
Autor: J. Fahrner
Data:  
Dla: dng
Temat: Re: [DNG] ASCII doesn't suspend when closing lid
Am 2017-12-28 11:05, schrieb Didier Kryn:

>     My HP EliteBook running ASCII doesn't suspend when I close the
> lid. It used to do with Debian Wheezy.


I had the same problem when switching from Debian to Devuan. Solution is
easy:
You need the package "acpid".
Look what events are triggered when closing the lid with "acpi_listen".
Then create a rule and a script for this event.

Example:
/etc/acpi/events/lidbtn-acpi-support:
event=button[ /]lid LID close
action=/etc/acpi/lidbtn-acpi-support.sh "%e"


/etc/acpi/lidbtn-acpi-support.sh:
#!/bin/sh
dbus-send --system --print-reply --dest='org.freedesktop.UPower'
/org/freedesktop/UPower org.freedesktop.UPower.Suspend

Check if the dbus-send command is working as expected.