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

Volume control throws threading exception #19

Open
matthewbullweb opened this issue Apr 17, 2020 · 0 comments
Open

Volume control throws threading exception #19

matthewbullweb opened this issue Apr 17, 2020 · 0 comments
Labels

Comments

@matthewbullweb
Copy link

Hi, I've noticed a bug on this line.

"amixer get '{}' | awk '$0~/%/{{print $4}}' | tr -d '[]%'".format(DEVICE),

After trying the original command in terminal I believed the wrong value was used.
"amixer get 'Master' | awk '$0~/%+/ {print $5;exit}' | tr -d '[]%'"

Changing $4 to $5 returned 100 twice. Adding ;exit only returns the first value.

As is setting mute and unmute work fine but changing the volume does not.
Maybe upgrading to the alsaaudio module would be an improvement.
When I did get this working before keeping the button pressed cause the sound to distort.

@Gadgetoid Gadgetoid added the bug label Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants