Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] constant ACPI events (how to prevent?)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
vose
n00b
n00b


Joined: 28 Feb 2007
Posts: 33

PostPosted: Thu Jan 07, 2016 7:14 pm    Post subject: [SOLVED] constant ACPI events (how to prevent?) Reply with quote

/var/log/messages is flooded with ACPI events

Jan 7 13:47:57 greybox root[31568]: ACPI event unhandled: jack/headphone HEADPHONE unplug
Jan 7 13:47:57 greybox root[31570]: ACPI event unhandled: jack/headphone HEADPHONE plug

I would like to understand and disable whatever is generating these events (rather than create a handler to prevent the messages).
I imagine there is a bug or configuration error someplace, because I find it hard to believe that generating zillions of such events could possibly make sense.

Linux 4.1.12-gentoo #4 SMP Thu Jan 7 13:02:06 EST 2016 x86_64 Intel(R) Xeon(R) CPU E3-1270 v3 @ 3.50GHz GenuineIntel GNU/Linux

UPDATE:

I should have mentioned that nothing is plugging or unplugging anything whatsoever... but these events are being generated anyhow!

Ill rebuild the kernel with SND_HDA_INPUT_JACK [=n] and see if that turns off the generation of these messages... but even if that "works", it would not fix the real issue which is that I would rather the events be generated only if something is actually plugged or unplugged (as apposed to their constant mysterious generation for no apparent reason).


Last edited by vose on Fri Jan 08, 2016 12:21 pm; edited 2 times in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Jan 07, 2016 8:13 pm    Post subject: Re: constant ACPI events (how to prevent?) Reply with quote

vose wrote:
Code:
Jan  7 13:47:57 greybox root[31568]: ACPI event unhandled: jack/headphone HEADPHONE unplug

[...] I imagine there is a bug or configuration error someplace, because I find it hard to believe that generating zillions of such events could possibly make sense.

vose ... it's not a bug, its a feature ;) ... or more precisely how acpid is configured:

/etc/acpi/default.sh:
log_unhandled() {
   logger "ACPI event unhandled: $*"
}

... and then as a catchall for 'case $foo in' log_unhandled is set.

Edit that file and replace log_unhandled with a null command for whatever $group is triggering logger.

HTH & best ... khay
Back to top
View user's profile Send private message
vose
n00b
n00b


Joined: 28 Feb 2007
Posts: 33

PostPosted: Thu Jan 07, 2016 8:39 pm    Post subject: Reply with quote

Setting SND_HDA_INPUT_JACK [=n] results in a kernel panic after several lines of:

ahci 0000:04:00.0 failed to stop engine (-5)

Don't know if my SIIG SC-SA0E12-S1 SATA 3.0 PCI-Express 2.0 could be involved, I'll remove it and reboot.

UPDATE:

I had a missmatch between the kernel and the initramfs which presumably was behind the kernel panic. :?

Anyhow, SND_HDA_INPUT_JACK [=n] turns the messages off (acpi_listen reports nothing) so I suppose I should be happy... yet I remain puzzled by what could have been generating all those jack/headphone events given that nothing was plugging or unplugging anything whatsoever. 8O


UPDATE:

I'll call this closed since the kernel now stops the messages, but I remain curious as to what was the root cause of the flood of messages.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum