You are not logged in.

#1 2018-09-19 10:49:49

berilac
Member
Registered: 2016-12-24
Posts: 4

certain ACPI events firing repeatedly

When I alter my screen brightness, it will change again - up or down, seemingly with no pattern, but definitely involving repetition.
Strangely this is not entirely repeatable. I'm not sure what sets it off.

Running an MSI machine, with internal intel and second nvidia graphics cards. The nvidia only runs (as far as i know) when I use optirun to activate it.
Currently using a simple Openbox setup.

Openbox listens for the function keypress, which runs a bash script to change:

/sys/class/backlight/intel_backlight/brightness

At the moment my code only triggers a notification.

The notification pops up again, regularly.
This led me to read a fair amount about backlight, udev and ACPI events.
I am trying to work out what is "pressing" the function key.
It does not repeat indefinitely, but I can't see a solid pattern either.

Using acpi_listen, I can see that events are re-triggered or repeated generally every two minutes and one second.

As far as I can tell, 'video/brightness<up/down>' are the only ones that are re-triggering the event.
The others seem to just be spamming the log (that's possibly gross misunderstanding).

I would very much appreciate some enlightenment on this weirdness.
I'm sure I just have some conflicting code somewhere (perhaps between udev, ACPI or systemd?), but I don't know where to look.

If you want any specific info or logs, please ask (I don't seem to have acpid.log)

Some examples of what I see in journal:

Sep 19 12:26:04 ### root[15232]: ACPI group/action undefined: video/brightnessup / BRTUP
Sep 19 12:26:16 ### root[15266]: ACPI group/action undefined: video/brightnessdown / BRTDN
Sep 19 12:28:05 ### root[15312]: ACPI group/action undefined: video/brightnessup / BRTUP
Sep 19 12:30:06 ### root[15364]: ACPI group/action undefined: video/brightnessdown / BRTDN
Sep 19 12:30:06 ### root[15392]: ACPI group/action undefined: video/brightnessup / BRTUP
Sep 19 12:32:07 ### root[15435]: ACPI group/action undefined: video/brightnessdown / BRTDN
Sep 19 12:34:08 ### root[15485]: ACPI group/action undefined: video/brightnessup / BRTUP
Sep 19 12:36:09 ### root[15533]: ACPI group/action undefined: video/brightnessdown / BRTDN
Sep 19 12:40:11 ### root[15639]: ACPI group/action undefined: processor / LNXCPU:00
Sep 19 12:40:11 ### root[15641]: ACPI group/action undefined: processor / LNXCPU:01
Sep 19 12:40:11 ### root[15643]: ACPI group/action undefined: processor / LNXCPU:02
Sep 19 12:40:11 ### root[15645]: ACPI group/action undefined: processor / LNXCPU:03
Sep 19 12:40:11 ### root[15647]: ACPI group/action undefined: processor / LNXCPU:04
Sep 19 12:40:11 ### root[15649]: ACPI group/action undefined: processor / LNXCPU:05
Sep 19 12:40:11 ### root[15651]: ACPI group/action undefined: processor / LNXCPU:06
Sep 19 12:40:11 ### root[15654]: ACPI group/action undefined: processor / LNXCPU:07
Sep 19 12:40:11 ### root[15656]: ACPI action undefined: ACPI0003:00
Sep 19 12:40:11 ### root[15658]: ACPI group/action undefined: processor / LNXCPU:00
Sep 19 12:40:11 ### root[15660]: ACPI group/action undefined: processor / LNXCPU:01
Sep 19 12:40:11 ### root[15662]: ACPI group/action undefined: processor / LNXCPU:02
Sep 19 12:40:11 ### root[15665]: ACPI group/action undefined: processor / LNXCPU:03
Sep 19 12:40:11 ### root[15667]: ACPI group/action undefined: processor / LNXCPU:04
Sep 19 12:40:11 ### root[15669]: ACPI group/action undefined: processor / LNXCPU:05
Sep 19 12:40:11 ### root[15671]: ACPI group/action undefined: processor / LNXCPU:06
Sep 19 12:40:11 ### root[15673]: ACPI group/action undefined: processor / LNXCPU:07
Sep 19 12:40:11 ### root[15675]: ACPI action undefined: ACPI0003:00
Sep 19 12:42:12 ### root[15708]: ACPI group/action undefined: processor / LNXCPU:00
Sep 19 12:42:12 ### root[15710]: ACPI group/action undefined: processor / LNXCPU:01
Sep 19 12:42:12 ### root[15712]: ACPI group/action undefined: processor / LNXCPU:02
Sep 19 12:42:12 ### root[15714]: ACPI group/action undefined: processor / LNXCPU:03
Sep 19 12:42:12 ### root[15716]: ACPI group/action undefined: processor / LNXCPU:04
Sep 19 12:42:12 ### root[15718]: ACPI group/action undefined: processor / LNXCPU:05
Sep 19 12:42:12 ### root[15720]: ACPI group/action undefined: processor / LNXCPU:06
Sep 19 12:42:12 ### root[15722]: ACPI group/action undefined: processor / LNXCPU:07
Sep 19 12:42:12 ### root[15724]: ACPI action undefined: ACPI0003:00
Sep 19 12:44:13 ### root[15743]: ACPI group/action undefined: processor / LNXCPU:00
Sep 19 12:44:13 ### root[15745]: ACPI group/action undefined: processor / LNXCPU:01
Sep 19 12:44:13 ### root[15747]: ACPI group/action undefined: processor / LNXCPU:02
Sep 19 12:44:13 ### root[15749]: ACPI group/action undefined: processor / LNXCPU:03
Sep 19 12:44:13 ### root[15751]: ACPI group/action undefined: processor / LNXCPU:04
Sep 19 12:44:13 ### root[15753]: ACPI group/action undefined: processor / LNXCPU:05
Sep 19 12:44:13 ### root[15755]: ACPI group/action undefined: processor / LNXCPU:06
Sep 19 12:44:13 ### root[15758]: ACPI group/action undefined: processor / LNXCPU:07
Sep 19 12:44:13 ### root[15760]: ACPI action undefined: ACPI0003:00
root[26063]: ACPI group/action undefined: jack/microphone / MICROPHONE

From acpi_listen:

video/brightnessup BRTUP 00000086 00000000 K
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessup BRTUP 00000086 00000000
video/brightnessup BRTUP 00000086 00000000
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessup BRTUP 00000086 00000000
video/brightnessdown BRTDN 00000087 00000000
video/brightnessup BRTUP 00000086 00000000
video/brightnessdown BRTDN 00000087 00000000
video/brightnessup BRTUP 00000086 00000000
video/brightnessdown BRTDN 00000087 00000000

The 'K' appears for events that I invoked directly with keyboard. The others are the phantom events.

------
Edited: to remove some fluff

Last edited by berilac (2018-09-20 14:08:40)

Offline

#2 2019-01-08 05:48:38

berilac
Member
Registered: 2016-12-24
Posts: 4

Re: certain ACPI events firing repeatedly

I still can not figure out the cause of this.

Even when I was using (I think) deepin with it's built-in, functioning brightness control, it would suffer from the same issue.

Would really appreciate any insight

Offline

Board footer

Powered by FluxBB