Hi @lasnoid. First of all, in Linux Lenovo thinkpads ACPI events are better handled by thinkpad_acpi kernel module. Albeit I’ve never owned a thinkpad, I cannot provide you a walk-through on the topic, I really think you should make use of it. The ThinkWiki provides a quite detailed walkthrough on how to configure acpid ad-hoc. As I side note I’ll tell you the corresponding BSD driver is acpi_ibm(4), might you ever be interested in it.
Besides that, please note that acpitool(1) provides additional features for Thinkpads in Linux:
SourceForge Link: https://sourceforge.net/projects/acpitool/
Yes, acpid daemon is surely required to, and editing handler script, is a good way to quickly match one’s expectations. It’s always good to preserve a handler.sh vanilla version backup as fallback, may any issue income.
Beware however that, although the only default event available (
/etc/acpi/events/anything) completely relies on action
/etc/acpi/handler.sh %e), you can create your own events outside
handler.sh script. . All you need in an event and an action inside
/etc/acpi…for example, for lid-closed suspending, you could create a
/etc/acpi/events/lid-closed event, with content:
And create the action script accordingly, named after the event file, in our case
case "$1" in
case "$2" in
logger "Lid_closed :$2 suspending to RAM..."
echo -n mem >/sys/power/state
xfce4-power-manager relies on acpid too??