Public bug reported:

Hardware: Dell Pro 13 Premium PA13250 (Lunar Lake, IPU7, ov08x40 sensor), BIOS 
2.18.1
Release: Ubuntu 26.04, kernel 7.0.0-43-generic
Packages: v4l2-relayd 0.2.0-0ubuntu1, libcamhal-ipu7x 
0~git202604141000.58e6f01-1~ubuntu26.04.1

Symptom:
After every boot the "Intel MIPI Camera" loopback device shows a black picture
in all apps (Zoom, etc). Running "systemctl restart v4l2-relayd@default" fixes
it until the next boot.

Relay log at boot:
CamHAL[ERR] PSysDevice: Failed to open psys device Operation not permitted
CamHAL[ERR] ProcessingUnit: @configure configure psys dag failed:-38

Cause:
[email protected] sets DevicePolicy=closed with DeviceAllow=char-psys.
systemd resolves "char-psys" against /proc/devices when the unit starts. At
boot the unit starts before intel_ipu7_psys registers its char major, so the
rule matches nothing and /dev/ipu7-psys0 stays denied for the life of the
process:

21:32:20.913923 systemd[1]: Starting [email protected] ...
21:32:22.572794 kernel: intel_ipu7_psys.psys intel_ipu7.psys.40: IPU psys probe 
done.

Adding ExecStartPre=/bin/sleep 5 does not help, because the device policy is
applied before ExecStartPre runs. The char-intel-ipu6-psys entry probably has
the same race on IPU6 machines.

Workaround that fixes it here:
udev rule: KERNEL=="ipu7-psys0", TAG+="systemd"
unit drop-in:
  [Unit]
  Wants=dev-ipu7\x2dpsys0.device
  After=dev-ipu7\x2dpsys0.device

With that, the relay starts after the psys probe and the camera works at
boot.

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: v4l2-relayd 0.2.0-0ubuntu1
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Nov 16 21:44:42 2026
InstallationDate: Installed on 2025-07-28 (476 days ago)
InstallationMedia: Ubuntu 24.04.2 LTS "Noble Numbat" - Release amd64 (20250215)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: v4l2-relayd
UpgradeStatus: Upgraded to resolute on 2026-10-15 (32 days ago)
mtime.conffile..etc.default.v4l2-relayd: 2026-02-17T14:41:02.667316

** Affects: v4l2-relayd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174685

Title:
  [email protected]: DeviceAllow=char-psys resolved before IPU7 psys
  driver registers, black camera after boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/v4l2-relayd/+bug/2174685/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to