Camera (IPU7-PTL / OV08X40) on ThinkPad X1 Carbon Gen 14: ACPI status=0, sensor invisible to Linux
System details
Lenovo ThinkPad X1 Carbon Gen 14 - 21V7CTO1WW
What's wrong?
Summary
On Lenovo ThinkPad X1 Carbon Gen 14 (Panther Lake, IPU7-PTL with OmniVision OV08X40 sensor) running Omarchy, the integrated camera is invisible to Linux. ACPI _STA returns 0 for all camera-related devices, so the sensor never binds, the media graph has no sensor entity, and /dev/video50 only produces black NV12 frames.
The Gen 13 (Lunar Lake / IPU7-LNL) on the same Omarchy installation works correctly. Suggesting Omarchy's Panther Lake camera path (install/config/hardware/intel/ptl-kernel.sh and friends) is only validated for Dell XPS today and doesn't ship what Lenovo PTL needs.
Hardware / system
- Machine: Lenovo ThinkPad X1 Carbon Gen 14 (
21V7CTO1WW) - CPU: Intel Core Ultra X7 368H (Panther Lake)
- IPU: IPU7-PTL (
PCI 8086:b05d), config dir/etc/camera/ipu75xa/ - Sensor: OmniVision OV08X40 (ACPI
OVTI08F4) - BIOS:
N4OET47W 1.10(2026-03-30) — latest available per Omarchy firmware update - Omarchy: 3.8.2
- Kernel: tested on both
linux 7.0.9-arch2-1(mainline) andlinux-ptl 7.0.9-arch1-1-ptl— same symptoms intel-ipu7-camera 1.0.3-4installed (Omarchy's IPU7 install path triggered correctly)
Symptoms
$ cat /sys/bus/acpi/devices/OVTI08F4:00/status
0
$ for d in /sys/bus/acpi/devices/{OVTI*,INT3472:*}; do
echo "$(basename $d) status=$(cat $d/status 2>/dev/null)"
done
OVTI01AF:00 status=0
OVTI01AF:01 status=0
OVTI01AF:02 status=0
OVTI08F4:00 status=0
INT3472:00 status=15
INT3472:01 status=15
INT3472:02 status=0
INT3472:03 status=0
... (all :02-:0b status=0)
$ ls /sys/bus/i2c/drivers/ov08x40/
bind module uevent unbind # no device bound
$ media-ctl -d /dev/media0 -p | grep -i ov08x40
# no match — sensor not in graph
[email protected] runs but the GStreamer pipeline fails:
v4l2-relayd: g_param_spec_enum: assertion 'g_enum_get_value (enum_class, default_value) != NULL' failed
v4l2-relayd: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed
# Triggered by icamerasrc:
CamHAL[INF] CameraParserInvoker: getAvailableSensors, Found IPU: IPU7
CamHAL[WAR] CameraParserInvoker: parseSensors: No sensors available
/dev/video50 is readable but only delivers solid-black NV12 frames (Y=16, UV=128).
What I've tried
- BIOS
Security → I/O Port Access → Integrated CameraisEnabled. No nightlight/privacy option blocks it. Physical camera shutter is open. - Switched from mainline
linuxtolinux-ptl— identical symptoms. - Ran the post-suspend reset sequence from Omarchy's
camera-sleep-hook(rmmod ov08x40 intel_ipu7_isys; modprobe ...; systemctl restart v4l2-relayd@ipu7) — no change. - Reboot — no change.
- Omarchy's
install/config/hardware/intel/ipu7-camera.shdoes matchOVTI08F4and installsintel-ipu7-camera, but that package alone is not sufficient on Panther Lake.
Root cause hypothesis
Panther Lake IPU7 cameras need an intel_cvs (Camera Vision Sensor) driver from intel/vision-drivers to satisfy the ACPI dependency chain for OVTI08F4 and the corresponding INT3472 power controllers. Mainline kernel ships an intel_cvs module, but it does not bind these Panther Lake ACPI nodes — the upstream driver is incomplete for PTL.
References:
- intel/vision-drivers#36 — intel_cvs: Critical for IPU7 camera on Panther Lake — should be upstreamed to mainline
- CachyOS/linux-cachyos#804 — Guide: Getting Intel IPU7 camera working on Panther Lake (Dell XPS) — confirms
intel_cvs.kofromintel/vision-driversis the critical blocker for Panther Lake camera, plus a modprobe softdep order to loadusbio/gpio_usbio/i2c_usbio/intel_cvs/intel_skl_int3472_discretebeforeintel_ipu7.
Suggested fix
- Confirm whether the Dell XPS PTL camera path actually works today on
linux-ptlalone, or whether it also depends on something not shipped (the hardware overlap with this Lenovo case is high — same IPU, sameOVTI08F4HID). - If
intel_cvsis the missing piece, ship it as a DKMS package and extend the install path beyond justomarchy-hw-match "XPS"(e.g. trigger onOVTI08F4HID + Panther Lake + status=0, or add explicit Lenovo Gen 14 detection). - Add the modprobe softdep order from the CachyOS guide.
Happy to test patches on this hardware and help out to make sure Omarchy works on this laptop!
XPS does work with just the linux-ptl + ipu7 driver. But happy to take a patch for what's needed to get the ThinkPad going with this cvs driver. We should have compatibility with all modern laptops out of the box. Please do investigate!
Update: root cause is firmware-side ACPI gating, not a missing driver/package
I did a deep ACPI dive on the ThinkPad X1 Carbon Gen 14 (21V7CTO1WW, BIOS N4OET47W / 1.10, IPU7 Panther Lake, OmniVision OV08X40 / ACPI OVTI08F4). Summary: the IPU7 stack itself is fine — firmware loads, ISYS comes up — but the camera never reaches the media graph (intel-ipu7 0000:00:05.0: no subdev found in graph). The reason is in firmware, and I don't think an OS-side patch can fix it on this machine.
The sensor has two possible paths, and firmware gates both off via NVS flags:
-
Native IPU7 MIPI path —
OVTI08F4._STAreturnsIf (L2EN) 0x0F else 0.L2EN(BIOS NVS regionMNVS) is 0, soOVTI08F4reportsstatus=0and is invisible to the IPU. This is the path the Dell XPS reportedly uses — but it's intentionally off here because the ThinkPad routes the sensor through CVS instead. -
Intel CVS path — the whole CVS subtree is wrapped in a top-level
If (LCHS == One):Device (CVSS)_HID "INTC10E1"(Intel CVS Device)Device (VGPO)INTC10B5(UsbGpio) +VIC1INTC10B6(UsbI2C), under_SB.PC00.XHCI.RHUB.HS04; sensor at I2C0x76, GPIO pins 5/7.LCHS(also BIOS NVS) is 0. Since thatIfis evaluated once at table load,INTC10E1/INTC10B5/INTC10B6never enumerate, no USBIO bridge USB device appears on the bus, andintel_cvs/usbiohave nothing to bind to.LCHSis never written anywhere in the ACPI tables — it's pure firmware/POST input.
No documented BIOS option flips LCHS. Checked: Security → I/O Port Access → Integrated Camera (On), Security → Intelligent Security → User Presence Sensing (On — and per Lenovo docs that uses the IR camera, not the RGB sensor), and the full Lenovo CDRT BIOS settings dictionary. There is no "Computer Vision" / CVS toggle anywhere.
Why this matters for the "happy to take a patch" offer: the intel_cvs driver is already correct (it matches INTC10E1), and Omarchy already ships the full stack (intel-ipu7-camera = ipu7 + intel_cvs + icamerasrc + v4l2-relayd). The newest Dell Panther Lake machine (Dell Pro 13 Premium / XPS) has the identical camera — OV08X40 behind CVS, not direct MIPI (RH bug 2377621, CachyOS #804). It works on Linux once intel_cvs is built because Dell's firmware exposes the USBIO/CVS path to the OS. On this ThinkPad the firmware keeps that path dark (LCHS=0), so no kernel/Omarchy change can reach the camera — the devices never exist for the OS.
So I don't think there's an Omarchy- or kernel-side patch to take here. This needs Lenovo to expose the CVS/USBIO camera path to non-Windows OSes (set LCHS=1 / power the USBIO bridge), the same way Dell did.
I've filed this with Lenovo on their Linux forum and will report back here with whatever they say: https://forums.lenovo.com/t5/Other-Linux-Discussions/X1-Carbon-Gen-14-21V7-OLED-MIPI-camera-OV08X40-IPU7-not-working-on-Linux-%E2%80%94-firmware-LCHS/m-p/10033620
For context, Lenovo does generally work toward Ubuntu support on ThinkPads, but there doesn't appear to be camera support for the X1 Carbon Gen 14 yet: the model isn't in Canonical's certified-hardware list (which currently stops at Gen 13), and Intel's vision-drivers plus the upstream USBIO + CVS enablement so far target Lunar/Meteor/Arrow Lake — not Panther Lake.
This also tracks the hardware SKU, not the distro, which other Gen 14 owners confirm: the OLED / 2.8K (2880×1800) config ships this new MIPI "Computer Vision" camera (OV08X40 / IPU7) with no working Linux driver, while the IPS config keeps the older USB UVC webcam that works fine on Linux (reported working on Fedora 44 / kernel 7.0.8). So the IPS camera works regardless of distro, and the OLED MIPI camera fails the same way on Arch and Fedora — it's a per-SKU hardware/firmware difference, not an Arch-specific problem.
Happy to attach the full DSDT/SSDT decode, lsusb -t, journal, and media-ctl topology if useful.
On vacation right now - but back next week. Will dig up the details of what you need (we have this working in Ubuntu so it is possible...I just not 100% sure of the details right now). MIPI camera is a nightmare :(
Thanks @mrhpearson, looking forward to your response. Got some input from Lenovo forum https://forums.lenovo.com/t5/Other-Linux-Discussions/X1-Carbon-Gen-14-21V7-OLED-MIPI-camera-OV08X40-IPU7-not-working-on-Linux-%E2%80%94-firmware-LCHS/m-p/10033620?random=iq5b4FXewyZaUOsfyTFiRJOQ6ixjZkDe_b78def7a75c6171e9c13cfe607572574&page=1#10122058 but not tried to with fedora yet. Await your feedback before proceeding.
@mrhpearson Interested to know how to make it work on Ubuntu. Camera is not working on my 26.04
Same issue with camera here. Samsung Galaxy Book6 Pro 14. Let me know if you need testers
@mrhpearson noticed your reply on the Lenovo forum: https://forums.lenovo.com/topic/findpost/16033/10033620/10130818
Seems there is a certified Ubuntu image which you can share where the camera is working. If working on Ubuntu I guess the fix for that could be "copied" to Arch/Omarchy?
I can start with live booting ubuntu just to test if it is working on my device. Would you mind sharing the image? Sent you a PM on Lenovo forum
It's probably not the right way for Arch as the Canonical implementation is using the out of tree drivers and then the closed source pieces from Intel. It is an option (and it will give you the best result) but I'm guessing the work Fedora are doing on enabling fully open source solution might be better (e.g. https://bugzilla.redhat.com/show_bug.cgi?id=2483180)?
I still have on my todo list to figure out the pieces - just swamped right now so haven't gotten to it.
Im running kubuntu 26.04 and camera is not working, what is this cerified ubuntu image?
Im running kubuntu 26.04 and camera is not working, what is this cerified ubuntu image?
We (Lenovo) work with Canonical to do a certified Ubuntu image on these platforms. If you buy the system with Linux preloaded (and support the Linux program - yay) this is the image you get on the system and has been through our QA (and lots of regulatory process).
I'm not allowed to post the image publicly. There are support and royalty entitlements that come with buying a preloaded system that would be bypassed. But Canonical let me share it with users on a case-by-case basis, so drop me a note on mpearson-lenovo at squebb dot ca and I can get you a link to the download (or you can private message me in forums.lenovo.com/linux with ID mrhpearson if you would rather go via a more formal Lenovo interface). A note - the image is gnome based.
Solved — camera working. Final correction of my earlier conclusions
Closing the loop on this: the camera now works on my retail 21V7CTO1WW (2.8K OLED, no OS preload) under Omarchy — 720p30 in Teams/Slack/browsers, calibrated colors.
Two corrections to my earlier posts in this thread, so nobody chases them:
- It was never firmware-gated. The CVS/
LCHSpath I analyzed is a separate, unused "Computer Vision" feature. The real camera node (TBE20A0:00, ACPI status 0xF) was enabled all along — no driver claimed it. - The sensor is not an OV08X40. It is a Sony IMX471 (chip-id verified: CCS register 0x0016 reads 0x0471), same as the other Gen 14 SKUs in RH bug 2483180. The "OLED = OV08X40" claim floating around is wrong.
To be clear about status: what I have running is a workaround, though less of one than I assumed: upstream libcamera's official direction for IPU7 is the software ISP (Intel keeps the hardware ISP/PSYS proprietary — it was never mainlined for IPU6 either). The durable fix is (1) the IMX471 kernel series — already in linux-next, expected in the Arch kernel around 7.3 — and (2) the ongoing softISP maturation (GPU accel, FOSS calibration/CCM, better 3A). Until then I've packaged everything — out-of-tree modules, install/auto-rebuild scripts, the v4l2-relayd/libcamera configuration for Omarchy's stack, a color tuning file, and a written troubleshooting trail of the dead ends — here:
https://github.com/ocewers/x1c14-camera-imx471
For Omarchy specifically: the intel-ipu7-camera package's icamerasrc/relayd
chain can never work on this machine (Intel's HAL has no config for this
sensor), but its v4l2loopback plumbing is perfectly reusable with
libcamerasrc — details in the repo. Once the kernel driver is mainline, a
future intel-ipu7-camera could switch VIDEOSRC to libcamerasrc and this
camera works out of the box.
One more data point, since the certified Ubuntu OEM image came up earlier in
this thread: I dissected the April 2026 image (Ubuntu-X1C14-20260417-76). Its
6.17-oem kernel's ipu-bridge actually knows TBE20A0 — but no sensor driver
in the image matches it (its ov08x40 only matches OVTI08F4, and imx471 does
not exist in the image; the driver was written in June). So the certified image
would have failed on this SKU exactly the same way, at "no subdev found in
graph". Installing it would not have helped — worth knowing before anyone
wipes their disk for it.
Thanks @mrhpearson for the pointers along the way.
I'm using Fedora 44. It started working for me in the last kernel update. 7.1.3 I think.
Hi @ocewers - awesome how much progress you made with this. Kudos!
I was really interested in the manual tuning you did. We've had a bit of a background exercise to do tuning in our camera lab - but don't know how to turn it into something libcamera could use...so wondering if we can connect the dots.
I tried your imx471.yaml (running on Fedora 44) and it didn't make any difference so I suspect I'm missing something obvious. Any pointers let me know.
For yourself or anybody following this thread who knows what libcamera needs to make the colour tuning decent please let me know. We have a camera lab and can collect all the collect calibration...but we need to know what to do with the data/format/etc... I would really like to make it so we have a useable open-source solution for any of our platforms that have this type of camera.
@mrhpearson thanks — and a Lenovo camera lab willing to produce open tuning data is genuinely the best news in this thread. Let me answer both parts.
Why the yaml likely did nothing on your Fedora box (in order of probability):
- Check it actually loads:
journalctl --user -b | grep -i "tuning file"(or runcam --listand watch stderr). You wantUsing tuning file /usr/share/libcamera/ipa/simple/imx471.yaml— if you seefalling back to .../uncalibrated.yaml, the file isn't where the IPA looks. - SELinux: if you copied it from your home directory it may carry a
user_home_tcontext that the pipewire/wireplumber processes can't read.restorecon -v /usr/share/libcamera/ipa/simple/imx471.yamlfixes that. - The tuning loads at camera init — restart pipewire/wireplumber (or the app) after installing the file.
- Expectations: my CCM is deliberately mild — a diagonal-only white-balance residual calibrated for my unit. Side-by-side on a white wall it's obvious; in a busy scene less so. (Values may also not transfer 1:1 to your unit — that's exactly why lab data beats my hand calibration using an LLM to support.)
What libcamera's soft ISP can consume today, and what a lab should produce:
The per-sensor tuning file (src/ipa/simple/data/<sensor>.yaml upstream) is
currently quite small: per-channel black levels, and a Ccm: list of 3x3
color matrices keyed by color temperature (applied in the linear domain).
Lens shading correction was presented as part of the softISP roadmap at
FOSDEM 2026 ("libcamera software ISP status update", Bryan O'Donoghue &
Hans de Goede — they explicitly demoed a FOSS sensor calibration setup
producing CCMs). libcamera also has tuning tooling in utils/tuning/
(libtuning), today focused on rkisp1 but built to be extended.
So the lab deliverable per camera module would be: black levels, CCMs measured under standard illuminants (A / F11 / D50 / D65 ...), and lens shading maps — turned into those per-sensor yamls and submitted to libcamera.
One caveat from my measurements that the lab should know: I measured a proper multi-ct CCM set with an adjustable-CCT light (2900K-6993K) and had to revert to a single-ct entry — the simple IPA's color-temperature estimator currently misreads tungsten scenes as high CT, so low-CT matrices never get selected (and high-CT ones get applied to warm light, making it worse). Multi-illuminant lab data will only pay off fully once that estimator improves, so that's worth raising on libcamera-devel as part of connecting these dots — I'd suggest exactly your question ("we have a lab and can collect calibration data — what format do you need?") as a thread there, cc:ing the FOSDEM presenters. Happy to test anything that comes out of it on this SKU.
Thanks! Not sure what was different (maybe a reboot?) but it's definitely working now and I didn't do anything special. Definitely improves the image.
Appreciate all the pointers - you're right, I should raise this on libcamera-devel. Will do that.
FYI - We did this exercise on (I think) the Carbon G13 previously, but it didn't really go anywhere. I'll see if I can get us some camera lab time for the G14. So cool to make progress on this.
I have it working on a second 21V7CTO1WW (2.8K OLED) via DKMS.
Following @ocewers' work, the camera is running on my unit under Omarchy on the stock mainline linux 7.1.4-arch1-1 (no linux-ptl needed). 720p30 in browsers/Meet, correct colors.
- yay -S imx471-dkms-git - AUR package (BenBJD/imx471-dkms) building the full upstream v6 series: imx471 + patched ipu-bridge (TBE20A0 and SONY471A) + patched int3472, with per-kernel variants 6.18–7.2.
- Layers 2-3 from ocewers' repo unchanged (udev mask, WirePlumber enable, libcamerasrc relayd config, the two systemd drop-ins).
- pacman -S libcamera libcamera-tools pipewire-libcamera gst-plugin-libcamera, reboot.
One warning for X1C Gen 14 owners: the DKMS package ships a tuning yaml calibrated from an X9/Lunar-Lake module. On my 21V7, that renders everything pink. Overwrite /usr/share/libcamera/ipa/simple/imx471.yaml with the yaml from ocewers' repo and colors are mostly right. I added NoUpgrade = usr/share/libcamera/ipa/simple/imx471.yaml to pacman.conf.
The IR camera can also work pretty easily: https://bugzilla.redhat.com/show_bug.cgi?id=2483180#c45
Code here: https://github.com/jriff/x1c14-ir-vd55g1
Tone/color tuning for the IMX471 softISP stack (libcamera 0.7.2)
Follow-up to the DKMS recipe above: the stock image is washed out and low-contrast. libcamera 0.7.2 made this fixable — the soft ISP now honors gamma/contrast/saturation as libcamerasrc properties, and the relay can serve the sensor's native 1080p. Calibrated on a 21V7 against a reference webcam (C920), then adjusted by eye.
/etc/v4l2-relayd.d/ipu7.conf:
VIDEOSRC="libcamerasrc camera-name=\\\_SB_.LNK0 gamma=2.0 contrast=1.50 saturation=1.20 ! videoscale ! videoconvert ! videorate drop-only=true skip-to-first=true"
SPLASHSRC="videotestsrc num-buffers=1 pattern=black ! imagefreeze num-buffers=4 ! videoscale ! videoconvert"
FORMAT=NV12
WIDTH=1920
HEIGHT=1080
FRAMERATE=30/1
CARD_LABEL="Hardware ISP Camera"
/usr/share/libcamera/ipa/simple/imx471.yaml:
%YAML 1.1
---
version: 1
algorithms:
- BlackLevel:
- Awb:
- Ccm:
ccms:
- ct: 6500
ccm: [ 1.06, 0.00, 0.00,
0.00, 1.00, 0.00,
0.00, 0.00, 1.14 ]
- Adjust:
- Agc:
...
Use: copy both files to the paths above, sudo systemctl restart v4l2-relayd@ipu7.
Notes for 0.7.2:
- Keep
- BlackLevel:present but empty — presence instantiates the algorithm (auto black-level estimation); removing it lifts blacks into haze, and the old per-channelr:/gr:/gb:/b:keys are silently ignored now. - The older CCM gains floating around (R=1.21/B=1.26) render a magenta cast on 0.7.2. Face too pale/red on your unit? Nudge the first matrix entry (R) by ~0.05 either way. Keep the matrix diagonal-only — off-diagonal terms turn clipped highlights magenta on this ISP.
exposure-value/brightnessproperties are silently ignored (the soft AGC registers no exposure controls) — tone lives ingamma/contrast.
@jriff Thanks — I went through your tone/color post on my 21V7 (2.8K OLED, libcamera 0.7.2,
stock linux 7.1.8) and adopted three things: native 1080p, tone via libcamerasrc properties
instead of videobalance, and the empty - BlackLevel: node. All of it, plus the fix below, is
in the repo now: https://github.com/ocewers/x1c14-camera-imx471
1080p is a stronger point than you made it. No videoscale is needed at all —
libcamerasrc delivers 1920x1080 directly as a crop of the sensor's single 1928x1088 mode, so
720p was pure added cost. Measured on the input chain with GPU debayer: 1080p without
videoscale 26.8% of a core, vs 33.9% for 720p with videoscale + videobalance. Full relayd
chain at 1080p30 lands at ~14%.
CCM values don't transfer between modules. On my unit your values leave a green cast, and the values you say render magenta are the neutral ones. Measured against a matte white target in mixed office light (mean R/G and B/G of a patch on it):
| CCM | R/G | B/G |
|---|---|---|
| 1.00 / 1.00 (control) | 0.921 | 0.894 |
| 1.21 / 1.26 | 1.005 | 0.995 |
| 1.06 / 1.14 (yours) | 0.948 | 0.948 |
The control row is the useful one: AWB alone under-corrects R and B by ~8% and ~11% here, so the
CCM has real work to do. The numbers are consistent with the code, not eyeballed — ratios are
measured in the gamma-encoded output, so a linear gain k shows as k^(1/2.2), and 1.21^0.4545 =
1.090 is exactly what moves 0.921 to 1.005. This reads as module spread rather than a 0.7.2
regression, so I'd be careful about warning people off the older gains generally. Tip if you
re-measure: LIBCAMERA_SIMPLE_TUNING_FILE=/path/candidate.yaml lets you A/B tuning files
without touching /usr.
Smaller corrections. The tone knobs aren't new in 0.7.2 — adjust.cpp, ccm.cpp and
blc.cpp are byte-identical between v0.7.1 and v0.7.2, so 0.7.1 users can do this too. The
per-channel BlackLevel keys aren't "ignored now" either; BlackLevel::init has only ever read
a scalar blackLevel. sharpness is ignored along with exposure-value/brightness (same
reason: agc.cpp registers no controls). And I couldn't reproduce removing the BlackLevel node
lifting blacks — YAVG 123.6 vs 124.2 with and without it — though keeping it is right anyway.
The one thing worth acting on: relayd can hijack a USB webcam. This was a real bug in my own
setup, and my repo config was worse than yours — it had no camera selection at all.
libcamerasrc without a working camera-name takes the first camera libcamera lists, and the
uvcvideo handler is enumerated before the internal simple pipeline. With a USB webcam
attached, relayd grabs the webcam, configures it as YUYV 1920x1080 — a mode my C922 only
advertises at 5 fps — and republishes those 5 fps as "Hardware ISP Camera" while the
internal sensor never streams. Symptom: choppy video in Teams/Meet already in the local preview,
before network and encoding.
camera-name in ipu7.conf is not a dependable fix, because the value passes three layers that
each eat backslashes: systemd's EnvironmentFile unescaping, systemd's own ${VIDEOSRC}
expansion into the sh -c script (single $ there, cf. $${SPLASHSRC}), then
gst_parse_launch. Measured on the process argv, 4 backslashes in the file arrive as 1. Yours
may well resolve to nothing without you noticing, since it only bites with a USB camera plugged
in — worth a quick
tr '\0' '\n' < /proc/$(pgrep -x v4l2-relayd)/cmdline | grep camera-name.
What works instead, with no escaping anywhere — a systemd drop-in, and no camera-name:
# /etc/systemd/system/[email protected]/97-libcamera-pipelines.conf
[Service]
Environment=LIBCAMERA_PIPELINES_MATCH_LIST=simple
That's the env override for the pipelines_match_list option
(src/libcamera/global_configuration.cpp). libcamera then enumerates only the internal sensor
for that service; the webcam can't be picked by accident and stays a normal V4L2 device for
Teams/Chromium.
One knob nobody has mentioned here: LIBCAMERA_SOFTISP_MODE=cpu|gpu. Same 1080p30 pipeline,
GPU debayer 28.5% of a core vs CPU debayer 72.6% — worth verifying you're on the GPU path
(INFO eGL egl.cpp in the log) if your load looks high.
Finally, for others hitting it: the faint pink/blue horizontal lines are an upstream softISP issue, tracked as https://bugzilla.redhat.com/show_bug.cgi?id=2502786 — not worth debugging locally. And thanks for the IR camera work, that's next on my list.
@ocewers Thanks — that's a much better post than the one it replies to. I've adopted the
no-videoscale 1080p chain and the pipelines drop-in here, and I owe the thread three
corrections to what I wrote.
You're right on both source points, and I was wrong. adjust.cpp, ccm.cpp and blc.cpp
are byte-identical between v0.7.1 and v0.7.2 (checksummed), so the tone knobs are not new in
0.7.2 and 0.7.1 users can do all of this. And BlackLevel::init only ever reads a scalar
blackLevel — the per-channel r:/gr:/gb:/b: keys were never consumed, so "ignored now" was
the wrong framing.
On the BlackLevel node, though, I think the effect is real and YAVG can't see it.
DebayerParams::blackLevel is initialised to 0.0 and BlackLevel::prepare() is the only
thing that ever writes it, so with the node absent the algorithm is never instantiated and no
black subtraction happens at all. The reason it doesn't show up in mean luminance is that the
AGC servos the mean back to its target within a few frames — the pedestal moves the shadow
floor and the contrast, not YAVG. If you want to re-check, a low percentile (p5 of luma) rather
than the average should separate them. Either way your conclusion stands: keep the node.
The drop-in is a better mechanism than camera-name, but it doesn't replace it.
Confirmed working on 0.7.2 here — cam --list shows C920 first and \_SB_.LNK0 second, and
with LIBCAMERA_PIPELINES_MATCH_LIST=simple only the internal one remains, so your hijack
analysis reproduces exactly. Worth noting for anyone copying it: both internal sensors are on
the simple pipeline, so once the IR camera (\_SB_.LNK1) is enabled the match list alone
will not keep libcamerasrc off it. Belt and braces here — drop-in and the pin. (Ours does
resolve, for the record: camera-name=\\_SB_.LNK0 in the process argv, and the internal
sensor keeps streaming with a C920 attached.)
On the CCM values: I think you're right about module spread, and there's factory evidence
for it. Lenovo's Windows camera driver ships per-module AIQB calibration blobs, and for this
sensor there are three distinct ones — TBE0020A0_AAJH5-D_PTL.aiqb,
TBE0020A0_CBG802N3A_PTL.aiqb and TBE0020A0_CJFPE90_PTL.aiqb (the last two are byte-identical
to their …P variants). Their measured white points differ: at the daylight end, AAJH5-D sits
at R/G 0.4719 while CBG802N3A sits at 0.5043 — a 6.9% spread, which is the same order as the
gap between your 1.21 and my 1.12 neutral fit. That's illuminant-independent evidence for
module spread, so I've stopped warning people off the older gains; module identity looks like
the thing that decides, not the libcamera version.
Extraction, if anyone wants their own: search the Microsoft Update Catalog for TBE20A0, take
the ~31 MB Intel system driver cab, unpack with cabextract (bsdtar's LZX chokes on it), and
parse with the AIQB parser from Javier Tia's in-review libcamera series
(https://patchwork.libcamera.org/patch/26700/) — it works on the Panther Lake blobs unmodified
and prints the CCMs, the AWB gain limits and the white-point locus.
I tried to reproduce your white-target measurement and couldn't do it honestly — how do you
control exposure? The soft AGC registers no exposure controls, so exposure-value,
ae-enable=false + exposure-time and analogue-gain are all silently ignored (8000 µs vs
2000 µs made no difference to the level here), and in a white room the target sits at 235+ with
half the patch clipped, which compresses the ratios toward 1.0. The one number I'd tentatively
report is the red channel under daylight: identity CCM gives R/G 0.971 here, implying a neutral
gain near 1.07, and applying your 1.21 lands at 1.058 — within 0.03% of what the gamma model
predicts, i.e. visibly too red on this module. My blue numbers from the same session were
inconsistent and I don't trust them.
One more data point on multi-CT tuning. I built current libcamera master (which has the
pluggable AWB — algorithm: bayes in the tuning file, searching the sensor's own white-point
locus) and fed it the full factory set: five CCMs 2694–5694 K plus the locus as colourGains.
Indoors it is plausible; outdoors it is much worse than grey-world. The debug log shows why —
the search converges at ~6600 K in open shade, which is beyond the last calibrated point, so
both the gains and the CCM get extrapolated and everything goes orange. So the CT-estimator
caveat you raised has a sibling: even with a proper locus and a proper search, lab data that
stops at 5694 K doesn't cover daylight. If Lenovo's camera lab is producing tuning data, points
above 6500 K would be the most valuable part for laptop use.