Skip to content
Follow
Ubuntu Linux

Enable or Disable Camera in Ubuntu Linux

Richard
Written by
Richard
Oct 16, 2022 Updated Aug 13, 2026 3 min read
How to Install Google Chrome on Ubuntu Linux
How to Install Google Chrome on Ubuntu Linux

Turning off your camera in Ubuntu Linux stops all apps from using it to give you total privacy. You can turn the camera back on whenever you want to make video calls.

Ubuntu sets up most cameras, like the Logitech C920, the second you plug them in. You can open the built-in Cheese app to check if your camera works right away.

⚡ Quick Answer

Disable your Ubuntu camera by removing the uvcvideo kernel module using the command sudo modprobe -r uvcvideo. To permanently disable it, add ‘blacklist uvcvideo’ to /etc/modprobe.d/blacklist.conf. Re-enable by removing the blacklist entry and running sudo modprobe uvcvideo.

How to enable or disable the camera in Ubuntu Linux

Administrator access allows disabling and enabling cameras for all users on the device. Managing Ubuntu camera settings follows a specific process.

Find the Camera driver module

The uvcvideo driver manages most webcams in Ubuntu Linux, controlling your Ubuntu camera settings. This driver remains essential for camera operation. Inspecting loaded system drivers helps confirm if the camera uses this module. Ubuntu lacks a direct camera switch, so managing the uvcvideo driver controls device access.

Most modern webcams use UVC (USB Video Class) compliant drivers, following a universal standard for video hardware. The generic uvcvideo kernel driver module in Ubuntu supports these devices.

Checking this requires a command to list the uvcvideo kernel driver module:

🐧Bash / Shell
sudo lsmod | grep 'uvcvideo'

Blank output indicates Ubuntu does not recognize the camera or lacks a installed driver. Identified cameras with loaded drivers display lines similar to these:

💻Code
uvcvideo              106496  0
videobuf2_vmalloc      20480  1 uvcvideo
videobuf2_v4l2         32768  1 uvcvideo
videobuf2_common       77824  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
videodev              258048  3 videobuf2_v4l2,uvcvideo,videobuf2_common
mc                     65536  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common

Different results often point to an alternate camera driver installation. Consulting Kernel documentation and the LinuxTV wiki provides additional driver information.

Remove camera drivers from Ubuntu

Disabling the camera in Ubuntu involves removing its driver via terminal. Running `sudo modprobe -r uvcvideo` unloads the common webcam driver, turning off the hardware. Closing any application currently using the driver prevents conflicts before running this command.

🐧Bash / Shell
sudo modprobe -r uvcvideo

Replacing uvcvideo with any other driver names found on the system remains necessary.

Active camera usage triggers an error message resembling this:

To disable the camera in Ubuntu Linux, first close any application currently using the camera. Then, run the specific command to disable the camera device. This action prevents the camera from being accessed by any software until it is re-enabled.

These commands temporarily remove the driver. A reboot restores functionality. Blocking the driver indefinitely requires adding it to a configuration file. Run these commands to add the driver to /etc/modprobe.d/blacklist.conf.

Drivers listed here remain blocked indefinitely, preventing apps from accessing the camera.

Command Prompt
echo 'blacklist uvcvideo' | sudo tee -a /etc/modprobe.d/blacklist.conf
Terminal command to disable the camera driver in Ubuntu Linux
ubuntu disable camera

Enable camera in Ubuntu Linux

Reviving a previously disabled camera requires loading its driver again. Running the command `sudo modprobe uvcvideo` adds the common webcam driver back to the system. This action restores Ubuntu camera functionality for video calls or capturing photos.

🐧Bash / Shell
sudo modprobe uvcvideo

Configuration is complete.

Conclusion:

  • Enabling or disabling the camera in Ubuntu Linux requires administrator access
  • The uvcvideo kernel driver module is commonly used for recent camera and webcam drivers in Ubuntu
  • Removing a camera driver using the modprobe command may require exiting the app using the camera
  • Re-enabling the camera driver involves removing the blocklist entry and using the modprobe command
  • Once disabled, apps will not have access to the camera

How do I check my camera settings on Ubuntu?

GNOME users can check webcam settings through the GNOME Control Center. Open Settings from the applications menu. Navigate to the “Devices” section and select “Camera” to view connected webcams.

Is there a camera app for Ubuntu?

QtCAM serves as e-con's open source Linux webcam software. This Qt Ubuntu camera application provides an accessible user interface for capturing and viewing video from devices supported by the Linux UVC driver.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

Working with Sudo and Su Commands in Ubuntu Linux
Ubuntu Linux Working with Sudo and Su Commands in Ubuntu Linux
How to Enable or Disable Let Apps Access Camera in Windows 11
Windows How to Enable or Disable Let Apps Access Camera in Windows 11
How to Record Videos on Ubuntu with Cheese
Ubuntu Linux How to Record Videos on Ubuntu with Cheese
How to Mount Windows 11 Shares on Ubuntu Linux
Ubuntu Linux How to Mount Windows 11 Shares on Ubuntu Linux

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *