Okay you smart people, here's yet another question: Is there a command that can be used in Terminal that will mute/disable the audio coming from a Playback card, then a complementary command that will unmute/enable the device?
Thank you!
Moderators: MattKingUSA, khz
Okay you smart people, here's yet another question: Is there a command that can be used in Terminal that will mute/disable the audio coming from a Playback card, then a complementary command that will unmute/enable the device?
Thank you!
-- Jack Elliott
They'll never take me alive
I don't know, if it's possible to do this with jack tools. Maybe you can script a mixer from cli?
What could work, is disconnect/connect the connections. Have a look on
jack_lsp
jack_connect
jack_disconnect
Currently working with
https://www.honeysuckers.rocks/?lang=en
Fiddling with sequencers does not evolve into music necessarily and Mac users have smelly feet and guzzle little children.
To mute/unmute ALSA output I use:
Code: Select all
amixer sset --quiet --card=0 'PCM' mute
Code: Select all
amixer sset --quiet --card=0 'PCM' unmute
Users on other systems may need a different card number (or name) for the correct audio device
and a different name for the relevant ALSA mixer control e.g. Master, Speaker, Headphones etc
use aplay -l
to find card NUMBER/NAME
and amixer --card=NUMBER/NAME
to see list of mixer controls for card
There is also a command to toggle mute state:
Code: Select all
amixer sset --quiet --card=0 PCM toggle
Hey, thank you! It looks like the target card has no controls that amixer can find. Other cards return simple controls with amixer but this one returns empty -- it is too dumb to have any kind of mute controls that I can get my hands on.
-- Jack Elliott
They'll never take me alive