Webcam not working Ubuntu 18.04
6,814
The group and permissions for your /dev/video0
are not correct.
The groop root
for your /dev/video0
will deny access to the camera for users outside this group.
The output of ls -l /dev/video0
should look like this:
crw-rw----+ 1 root video 81, 1 Apr 19 22:25 /dev/video0
Try fixing the group by running:
sudo chown root:video /dev/video0
Then fix permissions by running:
sudo chmod 660 /dev/video0
Related videos on Youtube
Author by
J.PabloCN
Updated on September 18, 2022Comments
-
J.PabloCN over 1 year
I have installed Ubuntu 18.04, but the applications (Skype, Cheese) says no device found.
I have reviewed several topics on the subject, but none seem to work. Thank you!
Edit: In a beginning the output of
ls -l /dev/video0
is:ls: Cannot access an '/dev/video0': file or directory does not exist.
Then when I put
sudo mknod /dev/video0 c 81 0
We have the output for
ls -l /dev/video0
is:crw-r--r-- 1 root root 81, 1 Apr 19 22:25 /dev/video0
Output
getfacl /dev/video
andls -ltrh /dev/video*
Output
lsusb
andv4l2-ctl --list-devices
Output 'Cheese' by terminal. And when the camera is activated, it says: 'No device found'
-
Jonatã about 4 yearsWhat is the output of
lsusb
andv4l2-ctl --list-devices
? -
Raffa about 4 yearsThe groop
root
for your/dev/video0
will deny access to the camera for users outside this group. Try runningsudo chown root:video /dev/video0
then runsudo chmod 660 /dev/video0
. Also please avoid adding screenshots when you can copy and paste the output in the question.
-
-
Raffa about 4 years@J.PabloCN no spaces .... like this
/dev/video0
NOT like this/ dev / video0
-
Raffa about 4 years@J.PabloCN also no spaces in this
root:video
NOT like thisroot: video
-
Raffa about 4 years@J.PabloCN Spaces are:
sudo
then spacechown
then spaceroot:video
then space/dev/video0
then press Enter -
J.PabloCN about 4 yearsOK! thank you very much. Now the light on the camera built into the notebook turns on. But still the Cheese app, can't find any device.
-
Raffa about 4 years@J.PabloCN Did you run
sudo chmod 660 /dev/video0
as well? -
J.PabloCN about 4 yearsI edit the question. I forgot to mention that initially the directory 'dev/video0' doesn't exist, but when I put 'sudo mknod /dev/video c 81 0' it started to work.
-
Raffa about 4 years@J.PabloCN
/dev/video0
is not a directory it is a node ie. a file descriptor and can be referred to as a file. So you fixed your cam? -
J.PabloCN about 4 yearsnop. I have windows10/Ubuntu installed, and the windows camera also has an error and does not work. Maybe the problem is some bad installation
-
Raffa about 4 years@J.PabloCN Windows has its own settings that are not affected by what you do in Ubuntu. This sounds like a hardware issue or BIOS settings issue if it affects both operating systems.