hyprland: GSK_RENDERER=ngl
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m2s

Mitigate an issue with GTK4 apps becoming unresponsive and logging the
message:

vkWaitForFences(): The logical or physical device has been lost. (VK_ERROR_DEVICE_LOST) (-4)

According to https://gitlab.gnome.org/GNOME/gtk/-/issues/7441 this
manifests when running:
- Fractional scaling
- GTK < 4.18
- nvidia driver <= 570
This commit is contained in:
Jordan Holt 2025-05-03 21:56:51 +01:00
parent 62472725d8
commit a258f0c861
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -12,6 +12,7 @@ let
elem
mapAttrs
mkIf
versionOlder
;
inherit (lib.generators)
toINI
@ -36,6 +37,8 @@ let
if elem "nvidia" osConfig.services.xserver.videoDrivers then
{
GBM_BACKEND = "nvidia-drm";
GSK_RENDERER =
if versionOlder osConfig.hardware.nvidia.package.version "570" then "ngl" else "vulkan";
LIBVA_DRIVER_NAME = "nvidia";
}
else