Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

can the webcam be activated and deactivated from the desktop settings?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
niilav
Posts: 49
Joined: 2021-12-25 12:53
Been thanked: 1 time

can the webcam be activated and deactivated from the desktop settings?

#1 Post by niilav »

Hello

I have Debian 11 with Xfce installed but I don't see a way to enable and disable the webcam for example from a button in settings menu.
Which packages should I install for this?

Thanks in advance!

niilav
Posts: 49
Joined: 2021-12-25 12:53
Been thanked: 1 time

Re: can the webcam be activated and deactivated from the desktop settings?

#2 Post by niilav »

The only way I have seen, and it works, but it is a bit cumbersome because you have to edit a file and reboot to toggle the on and off is:
Create the file blacklist.conf

Code: Select all

sudo nano /etc/modprobe.d/blacklist.conf
Add

Code: Select all

#Disable webcam.
blacklist uvcvideo
After saving, restart the OS.

And to activate it again, edit the file and comment line:

Code: Select all

#blacklist uvcvideosudo
and reboot again


I wonder how this process could be automated with a push button and without having to reboot?
If anyone can help me I would be grateful!!!

User avatar
canci
Global Moderator
Global Moderator
Posts: 2497
Joined: 2006-09-24 11:28
Has thanked: 135 times
Been thanked: 134 times

Re: can the webcam be activated and deactivated from the desktop settings?

#3 Post by canci »

Why blacklist and reboot when you can just

Code: Select all

rmmod uvcvideo
and

Code: Select all

modprobe uvcvideo
when you need it again?
Image Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe

READ THIS:

* How to Post a Thread Here
* Other Tips and Great Resources

niilav
Posts: 49
Joined: 2021-12-25 12:53
Been thanked: 1 time

Re: can the webcam be activated and deactivated from the desktop settings?

#4 Post by niilav »

Thank you for your response
Yes I have created a shortcut on the desktop to activate the camera and it works.
Anyway I will keep the blacklist thing and so whenever the system shuts down it will automatically disable the camera for me.

I do not quite understand why this option to enable and disable camera can not be controlled from the taskbar as the wifi for example!!

Post Reply