Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 Balló György (City-busz) - Sunday, 01 September 2019, 10:57 GMT
Task Type Bug Report
Category Packages
Status Assigned
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 0%
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

Comment by Cedric Bellegarde (gnumdk) - Monday, 02 April 2018, 23:34 GMT 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 ! ...

Loading...