From d8341ea106fa1ef14201a4199661cc5df9d0a682 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 11 May 2026 10:24:42 +0100 Subject: [PATCH] hyprland: pin compositor to dGPU on FredOS-Gaming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This box has both a Ryzen iGPU (card0, 1002:164E) and a Navi 22 dGPU (card1, 1002:73DF). The monitor is on the dGPU, but aquamarine's auto-selection wasn't sticking — client buffers were getting allocated on the iGPU and PRIME-copied across every frame, surfacing as cursor lag and Zen rendering at a visibly lower effective refresh. Forces AQ_DRM_DEVICES, WLR_DRM_DEVICES and DRI_PRIME at the Hyprland session so the compositor and GL/Vulkan clients all live on card1. Co-Authored-By: Claude Opus 4.7 --- settings/hyprland.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index fcc9346..b5a7a65 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -61,6 +61,15 @@ # Pin the OC'd 190 Hz mode so we don't fall back to 60. monitor = "DP-2,3440x1440@190,0x0,1"; + # FredOS-Gaming has both a Ryzen iGPU (card0, 1002:164E) and a + # Navi 22 dGPU (card1, 1002:73DF). Force aquamarine + clients onto + # the dGPU so we don't pay PRIME-copy latency every frame. + env = [ + "AQ_DRM_DEVICES,/dev/dri/card1" + "WLR_DRM_DEVICES,/dev/dri/card1" + "DRI_PRIME,pci-0000_03_00_0" + ]; + "$mod" = "SUPER"; "$term" = "ghostty"; "$menu" = "wofi --show drun";