-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
Hi, I've noticed a bug on this line.
button-shim/examples/volume.py
Line 38 in 2279b2b
"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.