raphael / linux-samus

Linux 4.16 on Chromebook Pixel 2015
GNU General Public License v2.0
181 stars 36 forks source link

No ACPI events for headphones #137

Closed gwillem closed 8 years ago

gwillem commented 8 years ago

First, I am very grateful to everyone who has contributed Samus patches. Its working almost flawlessly, thanks!

I read #114 but that one apparently is about handling the ACPI event. But acpi_listen does not register any events when I (un)-plug headphones. Pavucontrol is however able to (manually) switch audio output between speakers and headphones.

Tried with Samsung and Senheiser headphones. Running Ubuntu 16.04 with 4.4.2ph+ Any ideas on how to debug this?

Is it correct that the /etc/apci/* files are only used to handle ACPI events, not to produce/translate them (as witnessed by acpi_listen)?

update Indeed using evtest it seems plug in/out events are registered, just not by acpi_listen:

Event: time 1464821613.981731, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1
Event: time 1464821613.981731, -------------- SYN_REPORT ------------
Event: time 1464821618.101909, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 1464821618.101909, -------------- SYN_REPORT ------------
gwillem commented 8 years ago

OK FUD, I didn't understand how acpid works. The events are generated when I use #114 on Xubuntu 16.04.