You are not logged in.

#1 2018-08-09 19:51:21

neworldLT
Member
Registered: 2018-08-09
Posts: 1

acpid is not getting ac_adapter events, but it sees ac and battery inf

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

#2 2018-08-15 00:48:17

cribari
Member
From: Recife, Brazil
Registered: 2016-01-28
Posts: 47
Website

Re: acpid is not getting ac_adapter events, but it sees ac and battery inf


Linux, street photography and Baroque music enthusiast.

Offline

Board footer

Powered by FluxBB