-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Crashing after starting Wayland backend, ubuntu/nix #10737
Replies: 1 comment · 4 replies
-
You have a NVIDIA GPU but your nixGL config uses nixGLIntel instead of nixGLNvidia or simply the default |
Beta Was this translation helpful? Give feedback.
All reactions
-
I ended up changing by config to use nixGLDefault or nixGLNvidia and nixGLNvidiaBumblebee, but I seem to have errors when wrapping hyprland and get the same error log when manually wrapping with either of those 3 packages, here's the error I get when I use `error:
and here is my new default.nix file where I wrap hyprland: `{ config, pkgs, lib, inputs, nixgl, ...}: let wayland.windowManager.hyprland = { xwayland.enable = true;
}; gtk = { home.pointerCursor = { }` and here's an error from when I manually wrap at runtime: `nick@nick-kub-new-rig:~/.config/nix/home-manager/apps/hyprland$ cat ~/.cache/hyprland/hyprlandCrashReport3332.txtHyprland Crash Report"stable" Hyprland received signal 6(ABRT) System info: GPU: os-release: Log tail: |
Beta Was this translation helpful? Give feedback.
All reactions
-
Right, this does not work because the wrapped version no longer exposes Alternatively we'd have to update the module to add an option to wrap with nixGL. |
Beta Was this translation helpful? Give feedback.
All reactions
-
I was able to solve that error by leaving the package unwrapped and adding the writeShellScriptBin wrapped hyprland to home.packages, but now I am getting an error I've seen before:
I did some digging and made sure that my nixGL version was up-to-date but I'm not exactly sure how to solve this. Maybe it is a nixGL bug? I have tried to switch between the different openGL wrappers of nixGL with no luck. For info, below is my
and here is my
|
Beta Was this translation helpful? Give feedback.
All reactions
-
You may have more luck debugging this with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been debugging these issues and have made it a few days before needing to make a post, I can't seem to get wayland to start no matter how hard I try. I'm using ubuntu and attempting to use home-manager/nix to manage hyprland on an nvidia gpu. Here are my steps to reproduce:
Steps to reproduce
Start hyprland in SDDM, crashing after logon
OR
Expected outcome
Hyprland launches and displays a Wayland session on my Nvidia GPU
Actual Outcome
Hyprland fails with
[ERR] [AQ] Wayland backend cannot start: wl_display_connect failed (is a wayland compositor running?)
System info
Operating System: Ubuntu 22.04.5 LTS
Kernel: Linux 6.8.0-60-generic
NVML library version: 570.133
CPU: AMD 7800x3D
GPU: NVIDIA RTX 4070
Hyprland --version output:
Hyprland 0.49.0 built from branch main at commit 9958d297641b5c84dcff93f9039d80a5ad37ab00 (version: bump to 0.49.0). Date: 2025-05-08 Tag: v0.49.0, commits: 9958d297641b5c84dcff93f9039d80a5ad37ab00 built against: aquamarine 0.8.0 hyprlang 0.6.3 hyprutils 0.7.1 hyprcursor 0.1.12 hyprgraphics 0.1.3
Config
Using nix with home-manager and flakes:
flake.nix:
~/.config/hypr/nvidia-gpu
is symlinked to the/dev/dri/by-path/
path for my nvidia card as hyprland kept breaking up the string by using the colons in the filepath as delimiters.Crash Report:
Hyprland.conf
and here is the
hyprland.conf
generated by the nix config:Beta Was this translation helpful? Give feedback.
All reactions