-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for acpid protocol #174
Comments
Hi @kferrone, even if plugged in via the headphone jack, I would expect the speakers to still be a part of the Linux device file system and therefore discoverable via udev. Like you said, your speakers may be under /dev/snd in which case you could use the udev rule |
We have discovered the Basically UDEV would only ever see you un/plugging the sound card, not speakers through the audio jack. Therefore acpid would be needed to discover anything connecting to the audio jack. Another issue with sound and UDEV is using HDMI or USB for audio. Basically UDEV would trigger from USB and HDMI but how would you know it is an audio device? You would still need to mount |
Thanks for confirming that udev doesn't fit the scenario of audio jack or determining specific sound devices! ACPID sounds like a good protocol, especially since it captures other events too besides connecting to the audio jack such as the ones you listed in Slack ( sleep/power button, power cables getting plugged in or out). My question with this protocol is determining what would need to be mounted into brokers. For example, a |
Further discussion on ACPID as a protocol can be referenced from this thread in Slack. |
Issue has been automatically marked as stale due to inactivity for 45 days. Update the issue to remove label, otherwise it will be automatically closed. |
@kferrone , is this a scenario that should be prioritized? |
Maybe. I just discovered it is what is needed to discover headphones/aux inputs. Would be a nice addition to Akri. I have no idea how to implement such a thing though. I only needed it for a home project so I could easily plug speakers into any node and have snapcast client run as the broker. |
I could see us using this rust ALSA library to search for devices and then if the desired one is found, then the entire |
Issue has been automatically marked as stale due to inactivity for 90 days. Update the issue to remove label, otherwise it will be automatically closed. |
Is your feature request related to a problem? Please describe.
None of the existing protocols nor the ones planned are able to detect speakers getting plugged into an audio jack.
Is your feature request related to a way you would like Akri extended? Please describe.
No support for using devices plugged into an audio jack. Basically a new protocol for
acpid
should be added.Describe the solution you'd like
Ability to use speakers/headphones/microphones plugged into an audio jack using the acpid protocol.
Describe alternatives you've considered
As of now one could only use usb speakers with udev.
Additional context
Still confused why I can't simply just mount
/dev/snd
Here is the output of a test I ran which involved unplugging and plugging some headphones in using
acpi_listen
The text was updated successfully, but these errors were encountered: