Quick Tips – Disable Laptop Camera (WebCam) in Linux

By default, the modern laptop has built-in camera (webcam) but it’s seem useless because we’ve more better methods and devices to replace it. So, why do you keep it running on your machine. This quick tips will going to show you how to turn off (disable) your laptop’s camera to save the power and increase the battery usage time.
It’s very simple with few command lines.
The thing to do is add blacklist uvcvideo to /etc/modprobe.d/blacklist.conf file. Here is the command:

# echo "blacklist uvcvideo" >> /etc/modprobe.d/blacklist.conf

If the /etc/modprobe.d/blacklist.conf is not exist, you must create it first:

$ sudo touch /etc/modprobe.d/blacklist.conf

Using kernel command line

You can also blacklist modules from the common bootloader like GRUB, Syslinux… Simply add modprobe.blacklist=uvcvideo to your bootloader’s kernel line.

If you are blacklisting more than one module, note that they are separated by commas only. Spaces or anything else might presumably break the syntax.

Restart your computer to apply the changes.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.