omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

ipu7-camera.sh misdetects Meteor Lake (IPU6) hardware as IPU7, breaking the webcam

Open mhbnielsen opened this issue 3 months ago • 6 comments

`install/hardware/intel/ipu7-camera.sh` detects camera hardware solely by ACPI HID `OVTI08F4` (the `ov08x40` sensor) and installs `intel-ipu7-camera` whenever it matches. But `ov08x40` is also paired with IPU6 on Meteor Lake (Core Ultra 100-series — e.g. HP Spectre x360 14 with Core Ultra 7 155H), not just IPU7 (Lunar/Panther Lake). On my machine the kernel loads `intel_ipu6` (confirmed via `lsmod`/`dmesg`), but the installer still installed `intel-ipu7-camera`, which only ships the `ipu75xa.so` CamHAL plugin. `icamerasrc` then looks for `ipu6epmtl.so` (correct for this chip) and fails to load any camera HAL, so `v4l2-relayd@ipu7` produces a virtual `/dev/video50` with no actual video — the webcam appears present in every app but shows a black/frozen frame.

Suggested fix: detect the IPU generation directly (e.g. `lspci` for the IPU PCI device, or check which of `intel_ipu6`/`intel_ipu7` bound) instead of sensor ACPI HID alone, and install `intel-ipu6-camera-hal-git` + `icamerasrc-git` (AUR) for IPU6 systems instead of `intel-ipu7-camera`.

Note: `intel-ipu6-camera-hal-git` currently fails to build on GCC 16 due to upstream `-Werror` catching newly-flagged `-Wunused-but-set-variable` warnings — needed a local patch to build. Separately, on my hardware the IPU6 HAL's `ov08x40-uf.xml` media-graph config requires a nonexistent `"Intel CVS"` media entity (that chip isn't populated on this laptop), which also needed a local patch to bypass. Neither of those is Omarchy's bug, but worth knowing if you want the install script to also drop a working config for this sensor/platform combo.

Repro: HP Spectre x360 14, Intel Core Ultra 7 155H (Meteor Lake), `ov08x40` sensor (ACPI HID `OVTI08F4`).

mhbnielsen avatar Aug 21 '26 17:08 mhbnielsen

Your diagnosis holds up in the source. install/hardware/intel/ipu7-camera.sh:3 gates on grep -q "OVTI08F4" /sys/bus/acpi/devices/*/hid and nothing else — no controller check there, none around it in install/hardware/all.sh, and no other place in the tree adds one. The kernel treats that HID as generation-agnostic by construction: OVTI08F4 sits in the shared ipu-bridge sensor table, and both intel_ipu6 and intel_ipu7 import INTEL_IPU_BRIDGE. On a current kernel modinfo intel_ipu6 claims 8086:9a19 4e19 465d 462e a75d 7d19 — 7d19 being your Meteor Lake IPU, which the driver itself calls IPU6EP_MTL and feeds ipu6epmtl_fw.bin — while intel_ipu7 claims b05d and 645d. The two generations are trivially distinguishable at the controller; the script just never looked.

Worse than useless on your machine, as you say. Reading the package: it blacklists ov08x40 behind intel_cvs, disables wireplumber's libcamera monitor outright, hides the raw V4L2 nodes, and publishes the v4l2loopback device from icamerasrc device-name=ov08x40-uf. That is the black frame.

PR #7773 narrows the gate to the controller. It gates positively on 8086:b05d, the Panther Lake IPU7.5, because that is the only platform the package builds a HAL for — -DIPU_VERSIONS="ipu75xa", and only config/linux/ipu75xa is installed — so Lunar Lake's 645d is excluded too. It comes with a shell test that runs the script against a stubbed PCI bus and ACPI tree; with the old gate the Meteor Lake case installs the stack, with the new one it does not.

What the PR does not do is add IPU6 support. Adopting intel-ipu6-camera-hal-git and icamerasrc-git — with the GCC 16 patch you describe — is a call about what Omarchy ships and supports, so it is the maintainer's to make; #5676 already asks for it. The PR also does not remove the package from machines that already have it, so on yours that is still omarchy-pkg-drop intel-ipu7-camera by hand.

Not reproduced on hardware — there is no Meteor Lake machine here — so this is the mechanism established from the source, the kernel modules and the package's own files, not a reproduction of the black frame. A second opinion from codex at xhigh agreed on the mechanism, added the ipu75xa-only finding that narrowed the fix from "any IPU7" to Panther Lake, and pushed the gate from excluding known IPU6 ids to matching the supported controller positively, so unknown hardware is left alone instead of served a stack pinned to one platform.

omarchybot avatar Aug 22 '26 12:08 omarchybot

An update since the first reply: the misdetection is now confirmed on your hardware. Your run of #7773's gate on the Spectre x360 (IPU 8086:7d19, OVTI08F4 present and enabled) installed nothing, and #7773 is labelled verified and closes this issue when it merges. It is the only open pull request that changes the IPU7 gate, so there is no competing fix.

The other half of your report, a working IPU6 webcam on Meteor Lake, now has two open proposals: #11652 sets up IPU6 behind an IVSC (it names Meteor Lake), and #12636 sets up IPU6 wherever intel-ipu6 has bound the controller. Both run beside ipu7-camera.sh rather than replacing it, so on your machine either would only work cleanly once #7773 has stopped the IPU7 stack from installing too. Whether Omarchy takes on IPU6, and which way, is the maintainer's call.

This was checked by Claude Opus 5.5 alone, reading the issue, #7773 and the open pull requests that touch the camera setup. The second opinion (Codex Medium) answered a ping but its daily review budget was spent, so nothing here was reviewed by a second model. This waits on the maintainer to merge #7773.

omarchybot avatar Oct 08 '26 12:10 omarchybot

Hardware confirmation from a second Meteor Lake machine, plus a data point on the "working IPU6 webcam" half of this issue: Intel's own HAL route (intel-ipu6-camera-hal-git + icamerasrc-git) works on this hardware today.

Machine: ThinkPad X1 Carbon Gen 12 (21KC006GFR), BIOS N3YET86W, IPU 8086:7d19 (rev 04, subsystem 17aa:231e), sensor OVTI08F4 (ov08x40). Omarchy 4.0.4-1, linux-omarchy 7.2.5-3, GCC 16.2.1.

What ipu7-camera.sh did here. The OVTI08F4 gate installed intel-ipu7-camera 1.0.6-2. The only HAL plugin it ships is /usr/lib/libcamhal/plugins/ipu75xa.so, so:

$ gst-inspect-1.0 icamerasrc
CamHAL[ERR] HalAdaptor: load_camera_hal_library, failed to open library: /usr/lib/libcamhal/plugins/ipu6epmtl.so ... No such file or directory

v4l2-relayd@ipu7 then logs gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed on every open. The v4l2loopback device never gets a format, so Chrome / Google Meet report "Camera not found" rather than a black frame.

This is exactly the misdetection described above, and #7773's 8086:b05d gate would have excluded this machine. It also confirms the point about existing installs: the package has to be removed by hand, and not only because it is useless here. It owns /usr/lib/libcamhal.so and /usr/lib/gstreamer-1.0/libgsticamerasrc.so, the same paths the IPU6 HAL and icamerasrc-git packages install, so the two stacks cannot coexist (I removed it first, so I did not see pacman's conflict error itself).

What worked instead (stock AUR PKGBUILDs, built on GCC 16.2.1 with no local patch, so the GCC 16 patch mentioned earlier in this thread was not needed with the current packages):

package version
intel-ipu6-dkms-git r275.71bddb515
intel-ipu6-camera-bin (pkgbase ipu6-camera-bin) r92.30e8766
intel-ipu6-camera-hal-git r132.7ccab62
icamerasrc-git r97.7517af7
  • The DKMS package is not optional on this kernel. The in-tree driver provides only intel-ipu6 and intel-ipu6-isys; there is no /dev/ipu-psys* without Intel's out-of-tree PSYS driver, and the HAL's PSysDAG needs it. For kernel >= 6.10 dkms.conf builds intel-ipu6-psys (plus a few extra sensor modules into /updates; the in-tree ov08x40 stays). It builds cleanly against 7.2.5-3-omarchy; intel_ipu6_psys loads and /dev/ipu-psys0 appears.
  • The HAL's ipu6epmtl config already contains sensors/ov08x40-uf.xml and the OV08X40_*_MTL graph/aiqb files, so the relay config is the old one with a different source: VIDEOSRC="icamerasrc device-name=ov08x40-uf", NV12, 1920x1080, 30/1, same v4l2loopback label, plus the sandbox relaxations from the IPU7 drop-in (PrivateNetwork=no, empty InaccessibleDirectories/ReadOnlyDirectories, DevicePolicy=auto).
  • Result: v4l2src device=/dev/video50 num-buffers=10 finishes in ~1 s, mean luma converges from ~75 to ~100 as AE settles, image is the right way up (no videoflip needed, unlike the IPU7 config), and Google Meet in Chrome sees the camera.

One small observation for whoever scripts this: two capture checks made within seconds of the relay starting (and, the second time, of a WirePlumber restart) failed once, while every later attempt succeeded. I did not establish why, so a one-shot "does the camera work" check should retry.

Scope, to be clear about what this does not show: I did not try the libcamera path from #12636 / #11652 on this sensor, so this says nothing about whether it would work for ov08x40 on Meteor Lake. It is only evidence that the Intel-HAL route (#5676) is viable on 7d19 + ov08x40 with Linux 7.2.5, if that is the direction chosen.

Drafted by Claude Sonnet 5.5 via Claude Code; every command and output above was run on this machine.

buraki avatar Oct 10 '26 18:10 buraki

The second hardware report is consistent with the first. On the X1 Carbon Gen 12 the IPU is 8086:7d19, and #7773's gate installs intel-ipu7-camera only when OVTI08F4 is present and the controller is 8086:b05d, so it would have skipped that machine too. Its test already covers 7d19. #7773 still closes this issue and is still the only open pull request that fixes the misdetection.

A correction to the last reply: it said #7773 is the only open pull request that changes the IPU7 gate, which is wrong. #6596 (HP EliteBook X G2i support) rewrites the same if line in install/hardware/intel/ipu7-camera.sh to require that the sensor is actually fitted (ACPI _STA), not just declared. That does not help here, since the sensor on these Meteor Lake machines is real. The two checks are compatible, but the two pull requests edit the same line, so whichever merges second has to be rebased to keep both conditions.

The file overlap you report — intel-ipu7-camera owning libcamhal.so and libgsticamerasrc.so — matters only for the Intel HAL route that #5676 asks for. #11652 and #12636 install libcamera and its GStreamer/PipeWire plugins, not intel-ipu6-camera-hal-git or icamerasrc-git. In every case, existing installs still need intel-ipu7-camera removed by hand, because #7773 does not remove it. I did not check the package's file list myself.

Claude Opus 5.5 checked this against the diffs of #7773, #6596, #11652 and #12636. Codex Medium reviewed the same questions and agreed, but it could not read your comment directly and worked from a summary of it, so treat that as agreement rather than an independent check. The overlap with #6596 was found by Codex. This now waits on the maintainer: to merge #7773, to settle how it lands next to #6596, and to decide whether and how Omarchy supports IPU6.

omarchybot avatar Oct 11 '26 02:10 omarchybot

A third variant: a ThinkPad X1 Carbon Gen 12 with no MIPI camera at all. Unlike the X1C Gen 12 above, this one shipped with the USB webcam, so neither the sensor nor the IPU is actually fitted. The installer still put the IPU7 stack on it.

Machine: ThinkPad X1 Carbon Gen 12 (21KCS1XM00), BIOS N3YET86W (1.51), Core Ultra 7 165U. Omarchy 4.0.5-1, linux-omarchy 7.2.8-9, intel-ipu7-camera 1.0.6-3.

  • ACPI declares OVTI08F4:00 (and OVTI13B1:00, OVTI01AS:00), all with _STA = 0.
  • No IPU on the PCI bus: lspci -nn shows no 7d19/645d/b05d and no Multimedia controller.
  • The real webcam is USB: 04f2:b7e0 Chicony "Integrated Camera" (uvcvideo), which works.

The result is a dead "Hardware ISP Camera" on /dev/video50, with the same GST_IS_ELEMENT assertions from v4l2-relayd@ipu7, listed next to the working USB camera. In Zoom's web client (Chromium), the camera preview worked in settings but video failed after joining a call. With intel-ipu7-camera.service, camera-init.service and [email protected] disabled and v4l2loopback/ov08x40/intel_cvs unloaded, video works in calls.

On the #7773 / #6596 overlap: the earlier reply says #6596's _STA check does not help here because the sensor on these Meteor Lake machines is real. On this variant it is not, so each gate skips this machine on its own (no b05d; _STA = 0). That is an argument for keeping both conditions when whichever PR lands second is rebased.

Drafted by Claude Opus 5.5 via Claude Code; every value above was read on this machine.

robi42 avatar Oct 19 '26 22:10 robi42

The third report, an X1 Carbon Gen 12 with only a USB webcam, is a case #7773 already handles. Its gate installs intel-ipu7-camera only when lspci -nn succeeds, an ACPI HID is OVTI08F4, and the PCI bus has [8086:b05d] (install/hardware/intel/ipu7-camera.sh:7-10 at #7773's head). A machine with no IPU on the PCI bus fails the third check, so it installs nothing, whatever ACPI declares. #6596's _STA check would skip it too, for its own reason. I did not run anything on hardware for this. It was established by reading the two gates.

One gap: #7773's test covers a different IPU behind the sensor (7d19, a75d, 645d) but not the sensor declared with no IPU at all. The stub already supports that case (an empty IPU_PCI_ID prints no IPU line), so it is one run_install "" with OVTI08F4 present. It is for #7773's own review to add. Nothing was pushed from this issue.

Your report also settles the question the last reply left open. The two checks test separate facts: the controller is the supported one, and the sensor is actually fitted. Combined with AND, neither undoes the other. On your machine each would be enough on its own, and on the Meteor Lake machines only the controller check helps. So whichever of #7773 and #6596 merges second should keep both conditions. Existing installs, yours included, still need intel-ipu7-camera removed by hand, because #7773 does not remove it.

Claude Opus 5.5 checked this against #7773's script and test and #6596's omarchy-hw-acpi-present. Codex Medium answered the same three questions and agreed on all three. The missing test case is its finding. It worked from a description of your report and of #6596's helper rather than reading them, so treat its agreement on those as agreement, not an independent check. This still waits on the maintainer: to merge #7773, to decide how it lands next to #6596, and to decide whether Omarchy supports IPU6.

omarchybot avatar Oct 21 '26 15:10 omarchybot