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 open
Thanks for any ideas!