Skip to content

Instantly share code, notes, and snippets.

@AlexeySalmin
Last active October 23, 2026 01:41
Show Gist options
  • Select an option

  • Save AlexeySalmin/d5f74fa9cb2fa02c1bb562eb912cae2c to your computer and use it in GitHub Desktop.

Select an option

Save AlexeySalmin/d5f74fa9cb2fa02c1bb562eb912cae2c to your computer and use it in GitHub Desktop.

Fixing the Intel IPU7 camera on a ThinkPad X1 Carbon Gen 13 (Ubuntu 26.04)

The webcam on my ThinkPad X1 Carbon Gen 13 did not work on Ubuntu 26.04. No application could see it. Getting it working turned out to require fixing four independent problems, stacked so that each one hid the next — which is why the usual advice ("install the IPU7 packages") appears to do nothing.

This write-up covers the diagnosis, the reasoning behind each fix, and a script that reproduces the whole setup.


TL;DR

# Layer Problem Fix
1 Kernel intel_cvs missing → sensor's ACPI _DEP never cleared → sensor never enumerates install linux-modules-vision-generic
2 PipeWire WirePlumber loses an ACL race on /dev/media0, permanently disables its libcamera monitor add your user to the video group
3 Colour libcamera has no calibration for ov08x40 → strong green cast custom tuning file
4 Chrome needs the PipeWire flag, which then trips an unfixed portal bug and hangs pre-seed the portal permission

Jump to the script.

Hardware and software

ThinkPad X1 Carbon Gen 13 (21NSCTO1WW), Intel Lunar Lake
Multimedia controller [0480]: Intel Corporation Lunar Lake IPU [8086:645d]
Sensor:      ov08x40      ACPI OVTI08F4:00  at \_SB_.LNK1
Vision chip: Lattice CVS  ACPI INTC10DE:00  at \_SB_.PC00.CVSS  (I2C, via USB bridge)
USB I/O bridge: 2ac1:20c9 "SLS Lattice AI USB 2.0"
GPIO provider:  ACPI INTC10B5:00 at \_SB_.PC00.XHCI.RHUB.HS04.VGPO

Ubuntu 26.04 LTS, kernel 7.0.0-27-generic, libcamera 0.7.0
xdg-desktop-portal 1.21.1+ds-1ubuntu3, xdg-desktop-portal-gnome 50.0

Background: this is not a webcam

The first thing to understand is that this is not a USB UVC webcam. It is a MIPI sensor wired to Intel's IPU7 image processing unit. There is no /dev/video node that yields a usable picture: the ISYS capture nodes carry raw Bayer data that must be debayered by a software ISP. Userspace has to go through libcamera, and applications reach it via PipeWire.

Two consequences, both of which trip people up:

  • lsusb shows nothing camera-like. The only relevant USB device is the Lattice I/O bridge.
  • Apps that open /dev/videoN directly will either see nothing usable or grab a raw Bayer node and show garbage.

Even the power and I2C control paths are indirect: the sensor's reset/powerdown GPIOs and its I2C bus both hang off the USB-attached Lattice bridge.


Symptom

No camera in any application. But the kernel appears happy:

$ journalctl -k -b | grep -i ipu7
intel-ipu7 0000:00:05.0: Found supported sensor OVTI08F4:00
intel-ipu7 0000:00:05.0: Connected 1 cameras
intel-ipu7 0000:00:05.0: CSE authenticate_run done

Firmware loads, the bridge finds the sensor. There are 32 video nodes:

$ for v in /sys/class/video4linux/video*; do echo "$(basename $v): $(cat $v/name)"; done
video0: Intel IPU7 ISYS Capture 0
...
video31: Intel IPU7 ISYS Capture 31

These are generic IPU7 capture nodes — they exist whether or not a sensor is attached, so their presence proves nothing.

Red herring

int3472-discrete INT3472:04: cannot find GPIO chip INTC10B5:00, deferring

This floods the boot log and looks like the smoking gun. It is not. The GPIOs live behind the USB bridge, which enumerates later than int3472 probes, so it defers and then succeeds. Confirm it resolved:

$ ls /sys/bus/acpi/devices/INT3472:04/physical_node && echo BOUND

Layer 1 — the sensor never enumerates (intel_cvs)

The real tell: the sensor driver is loaded but idle, and there are no subdevices.

$ lsmod | grep ov08x40
ov08x40                28672  0        # <-- use count 0

$ ls /dev/v4l-subdev*
ls: cannot access '/dev/v4l-subdev*': No such file or directory

The sensor's ACPI device exists and firmware says it is present and functioning (status=15 = 0xF), yet nothing bound to it:

$ cat /sys/bus/acpi/devices/OVTI08F4:00/status
15
$ ls /sys/bus/acpi/devices/OVTI08F4:00/physical_node
ls: cannot access ...: No such file or directory     # <-- never enumerated

No I2C client was ever created for it. Why? ACPI _DEP. The sensor declares a dependency on the Camera Vision Sensor (\_SB_.PC00.CVSS, HID INTC10DE) — the Lattice chip, which physically owns the sensor and must hand it to the host. Linux refuses to enumerate a device whose dependencies are unmet, and the dependency is only cleared when a driver claims the supplier. That device exists as an I2C client on the USB bridge's bus, with no driver:

$ readlink -f /sys/bus/i2c/devices/i2c-INTC10DE:00
/sys/devices/.../usbio.usbio-i2c.1/i2c-12/i2c-INTC10DE:00
$ ls /sys/bus/i2c/devices/i2c-INTC10DE:00/driver
ls: cannot access ...: No such file or directory     # <-- nothing drives it

$ modinfo intel_cvs
modinfo: ERROR: Module intel_cvs not found.

intel_cvs is not in the mainline kernel. Ubuntu ships it in linux-modules-vision-generic. Per the Ubuntu MIPI camera wiki, Lunar Lake wants the ipu7 + vision + usbio module set.

Note the packages are built per-kernel; on 26.04 they existed only for a newer kernel than the one I was booted into, so a reboot was mandatory regardless.

Fixed, the boot log gains the two lines that matter:

Intel CVS driver i2c-INTC10DE:00: cvs_common_probe: probed as i2c device
Intel CVS driver i2c-INTC10DE:00: cvs_common_probe:Transfer of ownership success
ov08x40 i2c-OVTI08F4:00: supply dovdd not found, using dummy regulator
intel_ipu7_isys.isys: bind ov08x40 3-0010 nlanes is 4 port is 0
intel_ipu7_isys.isys: All sensor registration completed.

cam -l now lists the camera. But applications still saw nothing — which is where most reports of "the packages didn't help" actually end.

Layer 2 — WirePlumber loses a race with logind (video group)

libcamera worked, PipeWire did not:

$ wpctl status | grep -i libcamera        # nothing
$ wpctl status                            # ~18 useless "ipu7 [v4l2]" raw nodes

The reason was in the WirePlumber log:

$ journalctl --user -u wireplumber -b | grep -i libcamera
ERROR MediaDevice: Failed to open media device at /dev/media0: Permission denied

/dev/media0 is root:video 0660. Unprivileged access normally comes from an ACL that systemd-logind applies when the session activates:

$ getfacl /dev/media0
user::rw-
user:youruser:rw-        # <-- granted by the uaccess udev tag
group::rw-

WirePlumber starts before that ACL lands, gets EACCES, and permanently disables its libcamera monitor — it never retries. By the time you log in everything looks fine and the device opens perfectly by hand, which makes this maddening to debug. systemctl --user restart wireplumber fixes it until the next boot.

The durable fix is real group membership, which does not depend on ACL timing:

$ sudo usermod -aG video $USER    # then reboot
$ wpctl status | grep -i libcamera
 │      80. ov08x40    [libcamera]

Layer 3 — the green cast

libcamera ships no calibration for ov08x40 and says so:

WARN IPAProxy: Configuration file 'ov08x40.yaml' not found for IPA module
'simple', falling back to '/usr/share/libcamera/ipa/simple/uncalibrated.yaml'

uncalibrated.yaml has the colour-correction matrix commented out, leaving a strong green cast. The fix is an ov08x40.yaml tuning file with a Ccm block.

Two non-obvious things cost me several wrong attempts:

  1. libcamera multiplies AWB's gains into your matrix. The CCM is not applied standalone. AWB is an adaptive feedback loop, so as your matrix pushes blue up, AWB pulls its own gain down and you get roughly half of what you asked for. Measured response, reproduced across three unrelated scenes:

    ratio_out = ratio_base * coeff^k        k = 0.45..0.47
    

    My first attempt used B=2.03, which compounded with AWB's own ~1.78x blue gain and came out visibly purple. Do not compute these coefficients as if they were plain gains.

  2. Calibrate against a known-neutral target, not a normal scene. Gray-world and white-patch estimators on a scene full of skin, curtains and daylight are biased, and "solving for neutral" from them produces confidently wrong answers. The cast also moves with the light: baseline B/G measured 0.87 under room light but 0.73 in dim light, so no single fixed matrix is right everywhere.

Doing the calibration

Point the camera at a clean whiteboard / white wall filling the frame. Measure a flat blank patch, avoiding: the specular highlight, any marker writing, the board's frame/rail, and the vignetted corners. Check that nothing is clipped, or the ratios are meaningless.

  1. Capture with the Ccm: block removed → baseline ratios.
  2. coeff = (1 / ratio_base) ^ (1 / 0.45)
  3. Re-measure to verify.

My numbers, measured on the central blank patch:

R/G B/G
baseline (no CCM) 0.9675 0.8744
with [1.07, 1.00, 1.34] 0.9978 0.9985

Cross-checked against the wall (an independent surface): R/G=0.984 B/G=1.020. No clipping, and no framerate cost — 30.00 fps with the CCM vs 29.98 without, despite libcamera's warning that the CCM algorithm is expensive.

Luminance normalisation

[1.07, 1.00, 1.34] has every gain >= 1, so it also brightens: a neutral white comes out at 103.94% luminance (Rec.709 weights 0.2126/0.7152/0.0722). Dividing the whole matrix by 1.03943 maps neutral white to exactly 100% while leaving the colour ratios untouched — a uniform scale cannot change them:

[1.07, 1.00, 1.34] / 1.03943 = [1.0294, 0.9621, 1.2892]

  1.0294 / 0.9621 = 1.0700   (R/G, as calibrated)
  1.2892 / 0.9621 = 1.3400   (B/G, as calibrated)

That normalised form is what the script ships. Other senses of "100%", if you prefer them (all preserve the ratios exactly):

normalisation divide by result luma
luminance-preserving (shipped) 1.0394 [1.0294, 0.9621, 1.2892] 1.000
mean gain = 1 1.1367 [0.9413, 0.8798, 1.1789] 0.914
max gain = 1 1.3400 [0.7985, 0.7463, 1.0000] 0.776

The ratios were measured; the normalisation is arithmetic, applied afterwards and not re-measured — it cannot change colour, only level. Note also that Agc is downstream and targets a fixed output level, so it may raise exposure to compensate and cancel the ~4% out. If the image reads too bright or washed out, that is Agc/contrast, not the Ccm.

This is a diagonal matrix compensating an AWB bias. It makes neutrals neutral; it is not a spectral colour calibration.

Layer 4 — Chrome hangs (Ubuntu bug #2158647)

Chrome (and Firefox) read V4L2 by default, where they only find the raw Bayer nodes, so they report no camera. Chrome needs:

chrome://flags/#enable-webrtc-pipewire-camera   ("PipeWire Camera support")

Firefox equivalent: media.webrtc.camera.allow-pipewire in about:config.

With that flag on, Chrome hung at launch. The portal log explains it:

$ journalctl --user -b | grep -i portal
xdg-desktop-portal-gnome: Failed to associate portal window with parent window
xdg-desktop-portal: A backend call failed: AccessDenied:
    Only the focused app is allowed to show a system access dialog

Chrome requests camera access at startup, before its window is focused. GNOME refuses to show a system access dialog for a non-focused app, so the request never completes and Chrome waits forever. This is Ubuntu bug #2158647 against xdg-desktop-portal 1.21.1 — unfixed at time of writing, and unrelated to the camera.

The tell that led to a workaround: GNOME Snapshot worked throughout. Why? Because it already had a stored permission and therefore never needed the dialog:

$ busctl --user call org.freedesktop.impl.portal.PermissionStore \
    /org/freedesktop/impl/portal/PermissionStore \
    org.freedesktop.impl.portal.PermissionStore Lookup ss "devices" "camera"
a{sas}v 1 "org.gnome.Snapshot" 1 "yes" y 0

So pre-seed the same for Chrome and the broken dialog is skipped entirely. The app id comes from Chrome's systemd scope (app-com.google.Chrome-<pid>.scope):

$ busctl --user call org.freedesktop.impl.portal.PermissionStore \
    /org/freedesktop/impl/portal/PermissionStore \
    org.freedesktop.impl.portal.PermissionStore \
    SetPermission sbssas "devices" true "camera" "com.google.Chrome" 1 "yes"

To revert: DeletePermission sss "devices" "camera" "com.google.Chrome".


The script

Save as setup-camera.sh, run with sudo ./setup-camera.sh, reboot. Idempotent.

#!/usr/bin/env bash
#
# Enable the Intel IPU7 MIPI camera (ov08x40) on a ThinkPad X1 Carbon Gen 13
# running Ubuntu 26.04. Run as root:
#
#     sudo ./setup-camera.sh
#
# Idempotent: safe to re-run. Reboot afterwards.
#
# Four independent problems have to be fixed; see the accompanying write-up
# for the diagnosis behind each.
#   1. intel_cvs is missing        -> sensor never enumerates at all
#   2. WirePlumber loses an ACL race -> libcamera camera never exposed
#   3. no libcamera tuning          -> strong green cast
#   4. Chrome portal dialog hangs   -> Ubuntu bug #2158647
#
set -euo pipefail

TUNING_PATH=/usr/share/libcamera/ipa/simple/ov08x40.yaml
TUNING_MARKER='managed-by: ipu7-camera setup'
PKGS=(linux-modules-ipu7-generic linux-modules-vision-generic
      linux-modules-usbio-generic libcamera-tools)

say()  { printf '\n\033[1m==> %s\033[0m\n' "$*"; }
warn() { printf '\033[33mWARNING: %s\033[0m\n' "$*" >&2; }
die()  { printf '\033[31mERROR: %s\033[0m\n' "$*" >&2; exit 1; }

[[ ${EUID} -eq 0 ]] || die "must run as root (use sudo)"

# The user who will actually use the camera: needs the video group and owns
# the desktop session that holds the portal permission store.
TARGET_USER="${SUDO_USER:-${1:-}}"
[[ -n ${TARGET_USER} && ${TARGET_USER} != root ]] ||
    die "cannot determine target user; run via sudo, or pass a username: $0 <user>"
id "${TARGET_USER}" >/dev/null 2>&1 || die "no such user: ${TARGET_USER}"
TARGET_UID="$(id -u "${TARGET_USER}")"

# ---------------------------------------------------------------- sanity ----
say "Checking hardware"
if ! lspci -nn 2>/dev/null | grep -qi '8086:645d'; then
    warn "Intel Lunar Lake IPU7 [8086:645d] not found."
    warn "This script targets the X1 Carbon Gen 13; other hardware may differ."
fi
if [[ ! -e /sys/bus/acpi/devices/OVTI08F4:00 ]]; then
    warn "ACPI device OVTI08F4:00 (ov08x40 sensor) not present -- wrong sensor?"
fi
if ! grep -q '^VERSION_ID="26.04"' /etc/os-release 2>/dev/null; then
    warn "Not Ubuntu 26.04. Package names below may not exist on this release."
fi

# --------------------------------------------------- 1. kernel modules ------
# The sensor has an ACPI _DEP on the Camera Vision Sensor (INTC10DE, \_SB_.PC00.CVSS),
# a Lattice chip reached over a USB I/O bridge. Until a driver claims that
# device and clears the dependency, the kernel refuses to create the sensor's
# I2C client, so ov08x40 never probes. intel_cvs is that driver and it lives in
# linux-modules-vision-generic (not in the mainline tree).
say "Installing kernel module packages"
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq
apt-get install -y "${PKGS[@]}"

# ---------------------------------------------------- 2. video group --------
# /dev/media0 is root:video 0660. Unprivileged access normally comes from a
# logind 'uaccess' ACL, but that is applied when the session activates --
# WirePlumber starts first, gets EACCES, and then permanently disables its
# libcamera monitor, so no camera is ever published to PipeWire. Real group
# membership removes the dependency on that timing.
say "Adding ${TARGET_USER} to the video group"
if id -nG "${TARGET_USER}" | tr ' ' '\n' | grep -qx video; then
    echo "already a member"
else
    usermod -aG video "${TARGET_USER}"
    echo "added (takes effect after reboot/re-login)"
fi

# -------------------------------------------------- 3. colour tuning --------
# libcamera ships no calibration for ov08x40 and falls back to
# uncalibrated.yaml, leaving a green cast. Ratios calibrated against a clean
# white whiteboard filling the frame: baseline R/G=0.9675 B/G=0.8744, corrected
# to R/G=0.9978 B/G=0.9985. The shipped matrix is that result scaled so a
# neutral white keeps 100% luminance; see the file's own comments.
#
# NOTE: libcamera multiplies AWB's adaptive gains INTO this matrix, and AWB
# counteracts ~half of any change, so coefficients do not map 1:1 to the
# correction obtained (measured: ratio_out = ratio_base * coeff^0.45).
say "Installing libcamera tuning for ov08x40"
install -d -m 0755 "$(dirname "${TUNING_PATH}")"
if [[ -e ${TUNING_PATH} ]] && ! grep -q "${TUNING_MARKER}" "${TUNING_PATH}"; then
    warn "${TUNING_PATH} exists and is not ours -- backing it up"
    cp -a "${TUNING_PATH}" "${TUNING_PATH}.bak.$(date +%s)"
fi
cat > "${TUNING_PATH}" <<'YAML'
# SPDX-License-Identifier: CC0-1.0
#
# managed-by: ipu7-camera setup (ov08x40 tuning) -- safe to overwrite
#
# libcamera "simple" (software ISP) tuning for the ov08x40 sensor
# (ThinkPad X1 Carbon Gen 13, Intel IPU7).
#
# libcamera ships no calibration for this sensor and falls back to
# uncalibrated.yaml, which leaves a green cast.
#
# COLOUR RATIOS -- calibrated 2026-07-15 against a real neutral reference: a
# cleaned whiteboard with a white wall behind it, filling the frame, measured
# on a flat blank patch clear of the specular highlight, the board's rail and
# the vignetted corners.
#
#   baseline (no Ccm):        R/G=0.9675  B/G=0.8744
#   with ratios R/G=1.07 B/G=1.34:
#                             R/G=0.9978  B/G=0.9985   <- within 0.3% of neutral
#   cross-checked on the wall (independent surface): R/G=0.984 B/G=1.020
#   no clipping; no framerate cost (30 fps)
#
# LUMINANCE NORMALISATION -- NOT MEASURED.
# The calibrated matrix was [1.07, 1.00, 1.34], whose gains are all >= 1: a
# neutral white pushed through it came out at 103.94% luminance (Rec.709
# weights 0.2126/0.7152/0.0722). These coefficients are that same matrix
# divided by 1.03943, so a neutral white maps to exactly 100.00% instead.
#
#   The colour ratios are IDENTICAL -- a uniform scale cannot change them:
#     1.0294 / 0.9621 = 1.0700  (R/G, as calibrated)
#     1.2892 / 0.9621 = 1.3400  (B/G, as calibrated)
#
# Other normalisations, if this is not the intended sense of "100%" (all
# preserve the ratios exactly; just divide [1.07, 1.00, 1.34] by the factor):
#     mean gain = 1   -> / 1.1367 -> [0.9413, 0.8798, 1.1789]  (luma 0.9145)
#     max  gain = 1   -> / 1.3400 -> [0.7985, 0.7463, 1.0000]  (luma 0.7757)
#
# CAVEAT: Agc is downstream and targets a fixed output level, so it may simply
# raise exposure to compensate for a ~4% darker matrix, cancelling the change.
# If the image still reads too bright or washed out afterwards, the cause is
# Agc/contrast rather than this matrix -- the Ccm cannot fix that.
#
# HOW THIS INTERACTS WITH AWB -- read before changing the numbers:
# libcamera does NOT apply this matrix on its own. The Awb algorithm's gains
# are multiplied into it, and Awb is an adaptive feedback loop that counteracts
# roughly half of any change made here. Measured response:
# ratio_out = ratio_base * coeff^k, with k=0.45-0.47 reproduced across three
# independent scenes. An early attempt at B=2.03 compounded with Awb's own
# ~1.78x blue gain and came out visibly purple.
#
# LIMITATION: the residual cast varies with the light -- baseline B/G measured
# 0.87 under the calibration light, 0.86 under other room light, 0.73 when dim.
# Calibrated for normal room lighting; very dim light keeps some residual
# green. This is a diagonal matrix compensating an Awb bias, not a spectral
# colour calibration: it makes neutrals neutral, it is not a colour-accuracy
# tune.
#
# TO RE-CALIBRATE: point the camera at a clean neutral white surface filling
# the frame, capture with the Ccm block removed to get baseline ratios, then
# coeff = (1/ratio_base)^(1/0.45). Verify by re-measuring, then re-apply the
# luminance normalisation above if the gains come out >= 1.
%YAML 1.1
---
version: 1
algorithms:
  - BlackLevel:
  - Awb:
  - Ccm:
      ccms:
        - ct: 6500
          ccm: [ 1.0294, 0.0000, 0.0000,
                 0.0000, 0.9621, 0.0000,
                 0.0000, 0.0000, 1.2892 ]
  - Adjust:
  - Agc:
...
YAML
chmod 0644 "${TUNING_PATH}"
echo "wrote ${TUNING_PATH}"

# ------------------------------------------- 4. Chrome portal workaround ----
# Chrome needs chrome://flags/#enable-webrtc-pipewire-camera to see a MIPI
# camera at all. But with that flag it requests camera access at startup,
# before its window is focused; GNOME refuses to show a system access dialog
# for a non-focused app, the request never completes and Chrome hangs:
#
#   xdg-desktop-portal-gnome: Failed to associate portal window with parent window
#   xdg-desktop-portal: AccessDenied: Only the focused app is allowed to show
#                       a system access dialog
#
# That is Ubuntu bug #2158647 (xdg-desktop-portal 1.21.1), unfixed. Pre-seeding
# the permission means the dialog is never needed. The app id comes from
# Chrome's systemd scope: app-com.google.Chrome-<pid>.scope
say "Pre-granting camera permission to Chrome (portal workaround)"
if [[ -S /run/user/${TARGET_UID}/bus ]]; then
    if runuser -u "${TARGET_USER}" -- env \
         XDG_RUNTIME_DIR="/run/user/${TARGET_UID}" \
         DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/${TARGET_UID}/bus" \
         busctl --user call org.freedesktop.impl.portal.PermissionStore \
           /org/freedesktop/impl/portal/PermissionStore \
           org.freedesktop.impl.portal.PermissionStore \
           SetPermission sbssas "devices" true "camera" "com.google.Chrome" 1 "yes" \
         >/dev/null 2>&1
    then
        echo "granted camera to com.google.Chrome"
    else
        warn "could not set the portal permission (portal not running yet?)."
        warn "Re-run this script from inside the desktop session, or run as"
        warn "${TARGET_USER}:"
        warn "  busctl --user call org.freedesktop.impl.portal.PermissionStore \\"
        warn "    /org/freedesktop/impl/portal/PermissionStore \\"
        warn "    org.freedesktop.impl.portal.PermissionStore \\"
        warn "    SetPermission sbssas devices true camera com.google.Chrome 1 yes"
    fi
else
    warn "no D-Bus session for ${TARGET_USER}; skipping the Chrome permission."
    warn "Re-run this script from inside the desktop session to apply it."
fi

# ------------------------------------------------------------- done ---------
say "Done -- reboot required"
cat <<EOF

The module packages are built for the kernel they ship with, so a reboot into
that kernel is required. The video group also only takes effect on re-login.

Remaining MANUAL step (cannot be scripted reliably -- it lives in Chrome's
own profile):

  Enable  chrome://flags/#enable-webrtc-pipewire-camera  ("PipeWire Camera
  support"), then fully quit and relaunch Chrome.
  Firefox equivalent: media.webrtc.camera.allow-pipewire in about:config

After rebooting, verify with:

  journalctl -k -b | grep -iE 'cvs|ov08x40'   # expect "Transfer of ownership
                                              # success" and "All sensor
                                              # registration completed"
  cam -l                                      # expect "Internal front camera"
  wpctl status | grep -i libcamera            # expect an "ov08x40 [libcamera]" node

EOF

Verifying

Work upwards; each layer depends on the one below.

# 1. kernel: did the CVS chip hand over the sensor?
$ journalctl -k -b | grep -iE 'cvs|ov08x40'
Intel CVS driver i2c-INTC10DE:00: cvs_common_probe:Transfer of ownership success
intel_ipu7_isys.isys: All sensor registration completed.

# ...and did the sensor bind?
$ ls /sys/bus/i2c/drivers/ov08x40/
i2c-OVTI08F4:00
$ ls /dev/v4l-subdev*        # expect one named "ov08x40 3-0010"

# 2. libcamera
$ cam -l
Available cameras:
1: Internal front camera (\_SB_.LNK1)

# 3. PipeWire
$ wpctl status | grep -i libcamera
 │      80. ov08x40    [libcamera]

# 4. portal (what browsers use)
$ busctl --user get-property org.freedesktop.portal.Desktop \
    /org/freedesktop/portal/desktop org.freedesktop.portal.Camera IsCameraPresent
b true

To grab real frames and prove the pipeline end to end:

$ cam -c 1 -C5 --file=frame#.ppm      # note: stop anything else using the camera

Known limitations

  • The colour tuning is lighting-dependent. The size of the cast varies with the light (baseline B/G 0.87 under room light, 0.73 when dim), so one fixed matrix cannot be right everywhere. Tuned for normal room lighting; very dim light leaves some residual green.
  • Not a colour calibration. A diagonal matrix compensating an AWB bias makes neutrals neutral; it does not make colours accurate.
  • The Chrome permission entry is a workaround, not a fix. Drop it once #2158647 is fixed.
  • intel_cvs is out-of-tree and taints the kernel. It is not in mainline; see intel/vision-drivers.
  • Applies to the Lunar Lake X1 Carbon Gen 13. Gen 14 / Panther Lake has a different HID (INTC10E1) and, as of writing, is still broken because mainline intel_cvs does not bind its ACPI nodes.

References


Verified on Ubuntu 26.04 LTS, kernel 7.0.0-27-generic, libcamera 0.7.0, ThinkPad X1 Carbon Gen 13 (21NSCTO1WW), 2026-07-15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment