I would like to enable or disable the microphone in the Terminal. How can I do it? For example, I use sudo modprobe -r uvcvideo
to disable the webcam and sudo modprobe uvcvideo
to enable it. Is there a command to to the same thing with the microphone?
You could try
which will toggle the capture of your mic (on/off). You could even connect it to a key (e.g. XF86AdioMicMute -if you've got a key that invokes this event), so you would not even have to open a terminal for this.
I actually don't know the effect of this... I am using MATE and a lot of gnome stuff doesn't have any effect on MATE so I cannot confirm. There is usually an org.mate counterpart, but not for this one.