From a82e8dfe534eb2a53edee536c2aa5b202d461d3f Mon Sep 17 00:00:00 2001 From: Peter Bittner Date: Sun, 27 Sep 2026 18:56:38 +0200 Subject: [PATCH] lenovo/thinkpad/x1/yoga/8th-gen: add ipu6 camera variant The X1 Yoga Gen 8 ships with either a USB camera or a MIPI sensor behind Intel's IPU6. The MIPI camera only exposes raw Bayer nodes, so applications that speak plain V4L2, such as Zoom, find no camera. The new ipu6 profile enables hardware.ipu6 for the Raptor Lake platform, and a README explains how to tell the two cameras apart. The base profile stays as it is, because enabling IPU6 there would pull Intel's proprietary camera stack onto machines with the USB camera. --- README.md | 1 + flake.nix | 1 + lenovo/thinkpad/x1/yoga/8th-gen/README.md | 20 +++++++++++++++++++ .../thinkpad/x1/yoga/8th-gen/ipu6/default.nix | 9 +++++++++ 4 files changed, 31 insertions(+) create mode 100644 lenovo/thinkpad/x1/yoga/8th-gen/README.md create mode 100644 lenovo/thinkpad/x1/yoga/8th-gen/ipu6/default.nix diff --git a/README.md b/README.md index 11c1e3be..f7f3ac5d 100644 --- a/README.md +++ b/README.md @@ -364,6 +364,7 @@ See code for all available configurations. | [Lenovo ThinkPad X1 Yoga](lenovo/thinkpad/x1/yoga) | `` | `lenovo-thinkpad-x1-yoga` | | [Lenovo ThinkPad X1 Yoga Gen 7](lenovo/thinkpad/x1/yoga/7th-gen/) | `` | `lenovo-thinkpad-x1-yoga-7th-gen` | | [Lenovo ThinkPad X1 Yoga Gen 8](lenovo/thinkpad/x1/yoga/8th-gen/) | `` | `lenovo-thinkpad-x1-yoga-8th-gen` | +| [Lenovo ThinkPad X1 Yoga Gen 8 (IPU6)](lenovo/thinkpad/x1/yoga/8th-gen/ipu6) | `` | `lenovo-thinkpad-x1-yoga-8th-gen-ipu6` | | [Lenovo ThinkPad X1 (2nd Gen)](lenovo/thinkpad/x1/2nd-gen) | `` | `lenovo-thinkpad-x1-2nd-gen` | | [Lenovo ThinkPad X1 (6th Gen)](lenovo/thinkpad/x1/6th-gen) | `` | `lenovo-thinkpad-x1-6th-gen` | | [Lenovo ThinkPad X1 (7th Gen)](lenovo/thinkpad/x1/7th-gen) | `` | `lenovo-thinkpad-x1-7th-gen` | diff --git a/flake.nix b/flake.nix index e7aa30bb..380a4b1c 100644 --- a/flake.nix +++ b/flake.nix @@ -323,6 +323,7 @@ lenovo-thinkpad-x1-yoga = import ./lenovo/thinkpad/x1/yoga; lenovo-thinkpad-x1-yoga-7th-gen = import ./lenovo/thinkpad/x1/yoga/7th-gen; lenovo-thinkpad-x1-yoga-8th-gen = import ./lenovo/thinkpad/x1/yoga/8th-gen; + lenovo-thinkpad-x1-yoga-8th-gen-ipu6 = import ./lenovo/thinkpad/x1/yoga/8th-gen/ipu6; lenovo-thinkpad-x1-2nd-gen = import ./lenovo/thinkpad/x1/2nd-gen; lenovo-thinkpad-x1-6th-gen = import ./lenovo/thinkpad/x1/6th-gen; lenovo-thinkpad-x1-7th-gen = import ./lenovo/thinkpad/x1/7th-gen; diff --git a/lenovo/thinkpad/x1/yoga/8th-gen/README.md b/lenovo/thinkpad/x1/yoga/8th-gen/README.md new file mode 100644 index 00000000..db725aa6 --- /dev/null +++ b/lenovo/thinkpad/x1/yoga/8th-gen/README.md @@ -0,0 +1,20 @@ +# Lenovo ThinkPad X1 Yoga Gen 8 + +## Camera + +The X1 Yoga Gen 8 ships with one of two cameras, and each needs a +different profile. + +| Camera | Check | Profile | +|-------------------------|-----------------------------------|----------------------------------------| +| USB (UVC) | `lsusb` lists "Integrated Camera" | `lenovo-thinkpad-x1-yoga-8th-gen` | +| MIPI sensor behind IPU6 | `lsmod` lists `intel_ipu6` | `lenovo-thinkpad-x1-yoga-8th-gen-ipu6` | + +The USB camera works out of the box. + +The MIPI camera works through libcamera without any extra configuration, +so browsers and GNOME can already use it through PipeWire. Applications +that speak plain V4L2, such as Zoom, can only see raw Bayer nodes and +report that there's no camera. The `ipu6` profile enables +`hardware.ipu6`, which relays the sensor to a regular V4L2 device. That +pulls in Intel's proprietary camera HAL and firmware. diff --git a/lenovo/thinkpad/x1/yoga/8th-gen/ipu6/default.nix b/lenovo/thinkpad/x1/yoga/8th-gen/ipu6/default.nix new file mode 100644 index 00000000..81658c2d --- /dev/null +++ b/lenovo/thinkpad/x1/yoga/8th-gen/ipu6/default.nix @@ -0,0 +1,9 @@ +{ lib, ... }: +{ + imports = [ ../. ]; + + hardware.ipu6 = { + enable = lib.mkDefault true; + platform = lib.mkDefault "ipu6ep"; + }; +}