From 4d2cba77e1b8e8c00b2ba1965b84da5c747bf961 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sun, 7 Jun 2026 22:49:01 -0400 Subject: [PATCH] fix(display): use [pi5] config.txt section instead of [cm5] Rex's Trixie images use [pi5] for the CM5 display overlays (clockworkpi-uconsole-cm5, vc4-kms-v3d-pi5). The nixos-uconsole module generates [cm5] which the firmware may not apply on some CM5 EEPROM configurations. Adding explicit [pi5] section ensures the display overlays are always loaded. --- hosts/uConsole/configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/uConsole/configuration.nix b/hosts/uConsole/configuration.nix index b1ac6c5..10cf767 100644 --- a/hosts/uConsole/configuration.nix +++ b/hosts/uConsole/configuration.nix @@ -205,6 +205,19 @@ in wayland.enable = true; }; + # ============================================================ + # CM5 Config.txt Fix: use [pi5] section (not [cm5]) + # Rex's images use [pi5], the CM5 firmware may not detect [cm5] + # ============================================================ + hardware.raspberry-pi.extra-config = '' + [pi5] + dtparam=pciex1=off + dtoverlay=clockworkpi-uconsole-cm5 + dtoverlay=dwc2,dr_mode=host + dtoverlay=vc4-kms-v3d-pi5,cma-384 + dtparam=nohdmi1=off + ''; + # ============================================================ # CM5 Display Backlight Fix # The kernel driver initializes backlight, but some boots fail.