From a08e9b6977bd4ccd075df87c45dd3e220eda7632 Mon Sep 17 00:00:00 2001 From: rope Date: Sun, 7 Jun 2026 20:40:26 +0100 Subject: [PATCH] gaming: match monitor by EDID desc to fix 180Hz on connector drift Co-Authored-By: Claude Opus 4.8 --- hosts/FredOS-Gaming.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/FredOS-Gaming.nix b/hosts/FredOS-Gaming.nix index 45ac5bb..7189ad9 100644 --- a/hosts/FredOS-Gaming.nix +++ b/hosts/FredOS-Gaming.nix @@ -48,7 +48,9 @@ boot.loader.systemd-boot.configurationLimit = 5; boot.initrd.systemd.enable = true; - boot.kernelParams = [ "video=DP-2:3440x1440@180" ]; + # Early-console mode hint only (Hyprland sets the real mode at runtime via + # the desc-matched rule below). Connector name has drifted DP-2/DP-3. + boot.kernelParams = [ "video=DP-3:3440x1440@180" ]; # LAN has no IPv6 route — AAAA lookups succeed but connect fails, which # made NetworkManager's connectivity probe report "limited" at boot @@ -85,8 +87,12 @@ }; home-manager.users.fred = { ... }: { + # Match by description, not connector name: the DRM connector has + # drifted between DP-2/DP-3 depending on which port / cable state the + # GPU enumerated, which silently dropped this rule and fell back to the + # EDID-preferred 60Hz. The description is stable across port renames. wayland.windowManager.hyprland.settings.monitor = [{ - output = "DP-2"; + output = "desc:GIGA-BYTE TECHNOLOGY CO. LTD. G34WQCP 25272B000088"; mode = "3440x1440@180"; position = "0x0"; scale = 1;