mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 13:03:30 +01:00
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.
This commit is contained in:
4 files changed
+31
No files matched your search
@@ -364,6 +364,7 @@ See code for all available configurations.
|
||||
| [Lenovo ThinkPad X1 Yoga](lenovo/thinkpad/x1/yoga) | `<nixos-hardware/lenovo/thinkpad/x1/yoga>` | `lenovo-thinkpad-x1-yoga` |
|
||||
| [Lenovo ThinkPad X1 Yoga Gen 7](lenovo/thinkpad/x1/yoga/7th-gen/) | `<nixos-hardware/lenovo/thinkpad/x1/yoga/7th-gen>` | `lenovo-thinkpad-x1-yoga-7th-gen` |
|
||||
| [Lenovo ThinkPad X1 Yoga Gen 8](lenovo/thinkpad/x1/yoga/8th-gen/) | `<nixos-hardware/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) | `<nixos-hardware/lenovo/thinkpad/x1/yoga/8th-gen/ipu6>` | `lenovo-thinkpad-x1-yoga-8th-gen-ipu6` |
|
||||
| [Lenovo ThinkPad X1 (2nd Gen)](lenovo/thinkpad/x1/2nd-gen) | `<nixos-hardware/lenovo/thinkpad/x1/2nd-gen>` | `lenovo-thinkpad-x1-2nd-gen` |
|
||||
| [Lenovo ThinkPad X1 (6th Gen)](lenovo/thinkpad/x1/6th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/6th-gen>` | `lenovo-thinkpad-x1-6th-gen` |
|
||||
| [Lenovo ThinkPad X1 (7th Gen)](lenovo/thinkpad/x1/7th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/7th-gen>` | `lenovo-thinkpad-x1-7th-gen` |
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
@@ -0,0 +1,9 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
hardware.ipu6 = {
|
||||
enable = lib.mkDefault true;
|
||||
platform = lib.mkDefault "ipu6ep";
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user