FS#58038 - [cheese] Can't access webcam as user

Attached to Project: Arch Linux
Opened by Cedric Bellegarde (gnumdk) - Friday, 30 March 2018, 10:07 GMT
Last edited by David Thurstenson (thurstylark) - Wednesday, 23 March 2022, 19:32 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Cheese is not able to access webcam.

Permission issue because works as root.

[root@archlinux ~]# getfacl /dev/video0
getfacl : suppression du premier « / » des noms de chemins absolus
# file: dev/video0
# owner: root
# group: video
user::rw-
user:gnumdk:rw-
group::rw-
mask::rw-
other::---

Ok, so I guess cheese is trying to access something else.
This task depends upon

Closed by  David Thurstenson (thurstylark)
Wednesday, 23 March 2022, 19:32 GMT
Reason for closing:  Fixed
Comment by Cedric Bellegarde (gnumdk) - Monday, 02 April 2018, 23:34 GMT
Same bug as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=877495 with same error messages
Comment by Cedric Bellegarde (gnumdk) - Thursday, 05 April 2018, 20:36 GMT
Due to pipewire used on ArchLinux (in Gnome Shell).

Does not happen on Fedora/Solus where Gnome Shell is not launching pipewire.

This bug should be assigned to gnome-shell with title: "Gnome Shell/Pipewire is locking webcam"
Comment by Cedric Bellegarde (gnumdk) - Friday, 06 April 2018, 09:41 GMT
Fix:
[gnumdk@arch ~]$ systemctl --user mask pipewire
Created symlink /home/gnumdk/.config/systemd/user/pipewire.service → /dev/null.
[gnumdk@arch ~]$ systemctl --user mask pipewire.socket
Created symlink /home/gnumdk/.config/systemd/user/pipewire.socket → /dev/null.
Comment by Jan Alexander Steffens (heftig) - Sunday, 01 September 2019, 11:01 GMT
Does `gst-device-monitor-1.0` not report a camera using pipewiresrc?
Comment by Cedric Bellegarde (gnumdk) - Sunday, 01 September 2019, 13:17 GMT
Not the case anymore:
pipewire is not started by systemd anymore.

You can close...

Device found:

name : Integrated_Webcam_HD: Integrate
class : Video/Source
caps : video/x-raw, format=(string)GRAY8, width=(int)340, height=(int)340, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)60/1;
properties:
udev-probed = true
device.bus_path = pci-0000:00:14.0-usb-0:5:1.2
sysfs.path = /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.2/video4linux/video2
device.bus = usb
device.subsystem = video4linux
device.vendor.id = 0bda
device.vendor.name = CN0FFMHCLOG0081JB9EMA00
device.product.id = 58f4
device.product.name = "Integrated_Webcam_HD:\ Integrate"
device.serial = CN0FFMHCLOG0081JB9EMA00_Integrated_Webcam_HD_200901010001
device.capabilities = :capture:
device.api = v4l2
device.path = /dev/video2
v4l2.device.driver = uvcvideo
v4l2.device.card = "Integrated_Webcam_HD:\ Integrate"
v4l2.device.bus_info = usb-0000:00:14.0-5
v4l2.device.version = 328203 (0x0005020b)
v4l2.device.capabilities = 2225078273 (0x84a00001)
v4l2.device.device_caps = 69206017 (0x04200001)
gst-launch-1.0 v4l2src device=/dev/video2 ! ...
Comment by mattia (nTia89) - Saturday, 19 March 2022, 19:06 GMT
I cannot reproduce the issue. Is it still valid for you?
Comment by Cedric Bellegarde (gnumdk) - Sunday, 20 March 2022, 13:55 GMT
Look at my previous comment, you can close.

Loading...