Disabling webcam

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
idahobob

Disabling webcam

Post by idahobob »

I've been looking through the Menu options, but can't find anything dealing with webcams, which I would like to disable. And the microphone too.
Any suggestions?

I'm using MintMate 17.1
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Pjotr
Level 24
Level 24
Posts: 20129
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Disabling webcam

Post by Pjotr »

Low-tech solution, which has the advantage of being easily reversible: a car window sticker on the webcam and a cut-off plug from a head phone set in the mike jack. :mrgreen:
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Buzzsaw
Level 6
Level 6
Posts: 1318
Joined: Sat Aug 23, 2014 12:53 pm

Re: Disabling webcam

Post by Buzzsaw »

To disable it temporarily (until next boot):

Code: Select all

sudo modprobe -r uvcvideo
To disable it permanently, add blacklist uvcvideo to the bottom of /etc/modprobe.d/blacklist.conf .
arimakidd
Level 3
Level 3
Posts: 101
Joined: Thu Nov 02, 2017 11:37 pm

Re: Disabling webcam

Post by arimakidd »

This works and works well. Now what is the command to quickly reverse it? So I have disabled my webcam but now I want to quickly enable it. How do I do that?
arimakidd
Level 3
Level 3
Posts: 101
Joined: Thu Nov 02, 2017 11:37 pm

Re: Disabling webcam

Post by arimakidd »

Is it -a? So..
sudo modprobe -a uvcvideo
arimakidd
Level 3
Level 3
Posts: 101
Joined: Thu Nov 02, 2017 11:37 pm

Re: Disabling webcam

Post by arimakidd »

Okay I thought it would have worked but it didn't. Launching Cheese showed no video. I am looking for some commands to quickly turn on and turn off my webcam.
arimakidd
Level 3
Level 3
Posts: 101
Joined: Thu Nov 02, 2017 11:37 pm

Re: Disabling webcam

Post by arimakidd »

Okay, done. I found it. This command will turn the webcam off:
sudo rmmod uvcvideo
and this will turn it on again
sudo modprobe uvcvideo
User avatar
JoeFootball
Level 13
Level 13
Posts: 4673
Joined: Tue Nov 24, 2009 1:52 pm
Location: /home/usa/mn/minneapolis/joe

Re: Disabling webcam

Post by JoeFootball »

arimakidd wrote: sudo rmmod uvcvideo
Interesting how that worked but sudo modprobe -r uvcvideo did not.

I wonder why that didn't remove the module, as I thought modprobe -r and rmmod were essentially the same in function. :?

Joe
arimakidd
Level 3
Level 3
Posts: 101
Joined: Thu Nov 02, 2017 11:37 pm

Re: Disabling webcam

Post by arimakidd »

Sorry if my reply was a bit confusing or wasn't clear.
sudo modprobe -r uvcvideo
does work, but since I found
sudo modprobe uvcvideo
to turn it back on, the command that was paired with it for the convenient toggle was
sudo rmmod uvcvideo
so I'm sticking with that. But yes, the
sudo modprobe -r uvcvideo
does work.
Locked

Return to “Beginner Questions”