Skip to content
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

monitoring process spins at 100% CPU after unplugging USB headphones #11

Closed
coldfix opened this issue Sep 30, 2018 · 2 comments
Closed

Comments

@coldfix
Copy link
Member

coldfix commented Sep 30, 2018

This happens sometimes on both my desktop/laptop on archlinux. As of yet, I have no clue why this happens or how it can be fixed.

When it happens I usually restart awesome -> which will kill and restart the monitoring process.

coldfix added a commit that referenced this issue Sep 30, 2018
Until #11 is solved, this feature is severely broken and cannot
considered stable anymore.
@coldfix
Copy link
Member Author

coldfix commented Sep 30, 2018

I can confirm this is a problem of alsactl:

  • plug in USB headphones
  • start alsactl monitor
  • unplug headphones

I can observe every time that alsactl now spins at 100%.

This happens only if the headphones are already plugged in at the time alsactl is started.

@coldfix
Copy link
Member Author

coldfix commented Oct 26, 2018

I had reported the issue upstream and they very fast with creating a patch. The issue is fixed as of alsa-utils 1.1.7 (in the changelog see the alsactl section: handle detection/disconnection of sound card).

Could now set listen_default = alsa_utils_version >= {1, 1, 7}.

@coldfix coldfix closed this as completed Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant