Autor: Didier Kryn Fecha: A: dng Asunto: Re: [DNG] ASCII doesn't suspend when closing lid
Le 28/12/2017 à 12:35, J. Fahrner a écrit : > 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".
# acpi_listen
button/lid LID close
PNP0C14:00 00000080 00000000
button/lid LID open
PNP0C14:00 00000080 00000000
> 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" This file doesn't exist, but there is a file just called lidbtn,
which contains the following:
----------------
# /etc/acpi/events/lidbtn
# Called when the user closes or opens the lid