Closed luisaureliocasoni closed 3 years ago
Seemingly your installation hasn't enabled the camera
permission. You can verify that with snap connections fakecam
which will show either fakecam:camera
unconnected if the permission isn't set (my assumption), or connected to :camera
if it is.
To enable the permission run sudo snap connect fakecam:camera
.
@diddledan I have connected and it works. Perdon for my error.
Thanks for your help.
Hello,
I have installed the Fakecam on Snap Store, both the stable and beta versions. The versions are sucessful installed on the snap command, but when I execute the
fakecam
command, the output says when the file/dev/video0
is failed to open. But, when I open the webcam using mpv, the webcam (on/dev/video0
, not in/dev/video1
) opens normally.Output when I execute the
fakecam
command on stable version (2.2.0):Output when I execute the
fakecam
command on beta version (3.0.0):Next, some notes:
v4l2loopback-dkms
package usingpacman
;sudo modprobe -r v4l2loopback; sudo modprobe v4l2loopback
and rebooted the machine. Next, I comprove this:Integrated_Webcam_HD: Integrate (usb-0000:00:14.0-5): /dev/video0 /dev/video1
➜ ~ sudo journalctl -e --no-pager | grep DENIED jun 19 18:00:34 aurelio-inspiron3576 audit[44496]: AVC apparmor="DENIED" operation="open" profile="snap.fakecam.fakecam" name="/proc/44496/mounts" pid=44496 comm="python3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 jun 19 18:00:34 aurelio-inspiron3576 kernel: audit: type=1400 audit(1624140034.919:1044): apparmor="DENIED" operation="open" profile="snap.fakecam.fakecam" name="/proc/44496/mounts" pid=44496 comm="python3" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 jun 19 18:00:36 aurelio-inspiron3576 audit[44687]: AVC apparmor="DENIED" operation="open" profile="snap.fakecam.fakecam" name="/dev/video0" pid=44687 comm="python3" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=0 jun 19 18:00:36 aurelio-inspiron3576 kernel: audit: type=1400 audit(1624140036.393:1045): apparmor="DENIED" operation="open" profile="snap.fakecam.fakecam" name="/dev/video0" pid=44687 comm="python3" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=0 jun 19 18:08:31 aurelio-inspiron3576 audit[49304]: AVC apparmor="DENIED" operation="open" profile="snap.fakecam.fakecam" name="/dev/video0" pid=49304 comm="python3" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=0 jun 19 18:14:03 aurelio-inspiron3576 audit[51974]: AVC apparmor="DENIED" operation="open" profile="snap.fakecam.fakecam" name="/dev/video0" pid=51974 comm="python3" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=0