diff --git a/hyprland.lua b/hyprland.lua index cebba6e..755b0d4 100644 --- a/hyprland.lua +++ b/hyprland.lua @@ -25,6 +25,17 @@ require("hypr.autostart") -- Toggle config flags dynamically. require("default.hypr.toggles") +-- Omarchy's default/hypr/nvidia.lua sees the RTX 5060 Ti and points VA-API +-- and GLX at the NVIDIA driver, as if it drove the display. It is a +-- Thunderbolt eGPU for CUDA only (see uwsm/env-hyprland for the EGL, Vulkan +-- and KMS side). With LIBVA_DRIVER_NAME=nvidia every Chromium/Electron GPU process +-- opens the first render node (the eGPU, renderD128) and nvidia-vaapi-driver +-- brings up a CUDA context + NVDEC on it before the window even appears; +-- launching LM Studio took the whole machine down with it. Last env wins, +-- so this must come after the Omarchy defaults above. +hl.env("LIBVA_DRIVER_NAME", "radeonsi") +hl.env("__GLX_VENDOR_LIBRARY_NAME", "mesa") + -- Add any other personal Hyprland configuration below. -- o.window("qemu", { workspace = "5" })