AnswerBun.com

uvcvideo is loaded but /dev/video0 doesn't exist

Ask Ubuntu Asked by vahidreza on January 5, 2022

My webcam worked like a charm until I ran a simple python code to take photo. I ran it with root permission by sudo python myapp.py. The program crashed. Then I ran sudo killall -9 python.

From that time, I lost my webcam. If I run my program, I get this error: VIDEOIO ERROR: V4L: can't find camera device. Cheese cann’t find device as well.

I google my issue and I find some pages saying that I should re-enable uvcvideo module. I’ve done it by sudo modprobe -r uvcvideo && sudo modprobe uvcvideo but the problem isn’t solved.

This is the result of some of my commands:

$ lsmod | grep uvc
uvcvideo               86016  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_core         40960  2 videobuf2_v4l2,uvcvideo
videodev              184320  3             
videobuf2_core,videobuf2_v4l2,uvcvideo
media                  40960  2 videodev,uvcvideo

$ sudo v4l2-ctl --list-devices
Failed to open /dev/video0: No such file or directory

I should also notice that if I restart the computer I get nothing from lsmod | grep uvc until I run sudo modprobe uvcvideo again.

How should I solve the issue?

One Answer

For my case, I found there is a file called uvcvideo-blacklist.conf in /etc/modprobe.d. It will prevent uvcvideo module to be loaded automatically when booting. Commented out the only line "blacklist uvcvideo" in this file will get uvcvideo been automatically loaded at start up.

Answered by L3w1s on January 5, 2022

Add your own answers!

Related Questions

Sound not working Focal Fossa Ubuntu 20.04

2  Asked on November 19, 2021 by dipanshu-verma

         

Can’t install Ubuntu RST and Intel Optane problem

0  Asked on November 19, 2021 by thewiredguy

   

Cant install ubuntu server 18.04

0  Asked on November 19, 2021 by beistmaster

   

Choppy Video Playback with Intel GMA-500 Chipset

1  Asked on November 18, 2021 by seyed-mohammad

         

How do I let Ubuntu find the install path for tcl?

1  Asked on November 18, 2021 by eli-sander

       

Ubuntu 18.04 fails to boot after installing graphics drivers

1  Asked on November 18, 2021 by matthew-naybour

     

Dual boot with Ubuntu and Windows on separate disk

5  Asked on November 18, 2021 by confubuntu

       

How do I remove the glow on plank dock when an app is focused on?

0  Asked on November 18, 2021 by yurishizu

     

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP