You are not logged in.
I faced the strange issue on my new setup: no ac_adapter events on acpid
➜ ~ git:(master) ✗ sudo systemctl status acpid.service
● acpid.service - ACPI event daemon
Loaded: loaded (/usr/lib/systemd/system/acpid.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2018-08-09 22:36:09 EEST; 1s ago
Docs: man:acpid(8)
Main PID: 28265 (acpid)
Tasks: 1 (limit: 4915)
Memory: 220.0K
CGroup: /system.slice/acpid.service
└─28265 /usr/bin/acpid --foreground --netlink
Aug 09 22:36:09 neworld-vinted systemd[1]: Started ACPI event daemon.
Aug 09 22:36:09 neworld-vinted acpid[28265]: starting up with netlink and the input layer
Aug 09 22:36:09 neworld-vinted acpid[28265]: 1 rule loaded
Aug 09 22:36:09 neworld-vinted acpid[28265]: waiting for events: event logging is off
acpi sees all statuses
➜ ~ git:(master) ✗ acpi -b
Battery 0: Charging, 96%, 00:18:09 until charged
➜ ~ git:(master) ✗ acpi -a
Adapter 0: on-line
➜ ~ git:(master) ✗ acpi -a
Adapter 0: off-line
➜ ~ git:(master) ✗
```
acpi_listen is empty
➜ ~ git:(master) ✗ acpi_listen
Events config should be OK:
➜ ~ git:(master) ✗ cat /etc/acpi/events/anything
# Pass all events to our one handler script
event=.*
action=/etc/acpi/handler.sh %e
Also, I found /proc/acpi very few files:
➜ ~ git:(master) ✗ ls /proc/acpi/
button wakeup
BTW, other events are working good:
Aug 09 22:13:42 neworld-vinted acpid[27889]: rule from 846[0:0] matched
Aug 09 22:13:42 neworld-vinted acpid[27889]: notifying client 846[0:0]
Aug 09 22:13:42 neworld-vinted acpid[27889]: rule from /etc/acpi/events/anything matched
Aug 09 22:13:42 neworld-vinted acpid[28208]: executing action "/etc/acpi/handler.sh button/wlan WLAN 00000080 00000000 K"
Aug 09 22:13:42 neworld-vinted acpid[27889]: action exited with status 0
Aug 09 22:13:42 neworld-vinted acpid[27889]: 2 total rules matched
Aug 09 22:13:42 neworld-vinted acpid[27889]: completed input layer event "button/wlan WLAN 00000080 00000000 K"
Aug 09 22:13:43 neworld-vinted acpid[27889]: received input layer event "button/wlan WLAN 00000080 00000000 K"
Aug 09 22:13:43 neworld-vinted acpid[27889]: rule from 846[0:0] matched
Aug 09 22:13:43 neworld-vinted acpid[27889]: notifying client 846[0:0]
Aug 09 22:13:43 neworld-vinted acpid[27889]: rule from /etc/acpi/events/anything matched
Aug 09 22:13:43 neworld-vinted acpid[28233]: executing action "/etc/acpi/handler.sh button/wlan WLAN 00000080 00000000 K"
What I am missing?
Offline
Could it be related to this https://bbs.archlinux.org/viewtopic.php?id=233274 ? See also https://bugzilla.kernel.org/show_bug.cgi?id=44161 .
Linux, street photography and Baroque music enthusiast.
Offline
I am not sure about this, because acpi detects all battery correct. Only AC events do not trigger script.
Offline