hyprland: pin compositor to dGPU on FredOS-Gaming

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 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-05-11 10:24:42 +01:00
parent 5802e0dbef
commit d8341ea106

View file

@ -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";