09-24-2020, 07:23 PM
Hello, I am running Manjaro on my PBP. I want to modify /etc/acpi/handler.sh to run some scripts when AC power is plugged/unplugged.
My understanding is that this should show up as an `ac_adapter` event in the output of `acpi_listen`. However, there is no such output when I plug/unplug from power. Other events do print. I have Power Manager running and it shows a notification that I've plugged/unplugged from power, so it must be using a different mechanism. How can I hook into AC plug/unplug events?
Thanks for any ideas!
My understanding is that this should show up as an `ac_adapter` event in the output of `acpi_listen`. However, there is no such output when I plug/unplug from power. Other events do print. I have Power Manager running and it shows a notification that I've plugged/unplugged from power, so it must be using a different mechanism. How can I hook into AC plug/unplug events?
Code:
$ sudo acpi_listen
button/power PBTN 00000080 00000000
button/power PBTN 00000080 00000000
button/lid LID close
button/lid LID openThanks for any ideas!

acpi "ac_adapter" events

![[Image: d4cc5a1bda35e34156516c34b4bb9167-full.png]](https://cdn1.bbcode0.com/uploads/2020/9/25/d4cc5a1bda35e34156516c34b4bb9167-full.png)