20

I want to disable the internal Microphone on my laptop and the internal Webcam completely that they're no longer selectable, and no longer available?

I will only use my external Webcam, and my external (USB) headset.

The internal audio should still be available for playback.

Takkat
  • 144,580
lupopa
  • 451

4 Answers4

10

Blacklist drivers

In both cases kernel drivers may be loaded for both, the internal sound card, and the webcam to be recognized by Ubuntu. We can find out which drivers are loaded by the following command in a terminal:

lsmod

From this list we can see which of these kernel modules may be responsible for our (specific) hardware (e.g. an Intel sound card may need the snd_hda_intel module).

Blacklisting these kernel module will stop this device from being recognized by your system. To do so we edit the file /etc/modprobe.d/blacklist.conf as root to add the following line:

blacklist <name_of_module>

See also: How can I control which sound card Ubuntu uses for playback?

In case we still need the internal audio card for playback audio we can just mute the input microphone source, e.g by running alsamixer in a terminal.

Takkat
  • 144,580
9

Blacklist the webcam driver and mute the Internal Mic from Alsamixer.

According to the informations you gave here, open a terminal and execute this command

Disable WebCam

echo 'blacklist webcamstudio' | sudo tee -a /etc/modprobe.d/blacklist.conf

Mute the microphone

To mute the internal microphone use the alsamixer.

Open a terminal and give this command

alsamixer

Navigate with arrow keys <--> and find the internal or mic channel and then press the M key on your keyboard to disable - mute [MM] the microphone. Esc to exit

enter image description here

NickTux
  • 17,865
  • 6
  • 57
  • 66
3

Use PulseAudio Volume Control (which has a GUI):

  • install pavucontrol via terminal (e.g. snap install pavucontrol or sudo apt install pavucontrol)
  • launch the tool via terminal or via launcher PulseAudio Volume Control
  • Go to the "Configuration" tab (you might need to resize the window to see it)
  • Disable the microphone by switching it to Off

This also worked for me after plugging in the webcam again (it's still switched off).

enter image description here

hb0
  • 251
1

Some Notebooks allow to disable their webcam and microphone in the BIOS settings.

Marvo
  • 111