Skip to content

Volume control throws threading exception #19

@matthewbullweb

Description

@matthewbullweb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions