-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KDE/SDDM fails to start on NVIDIA proprietary driver v560.35.03 + Kernel 6.11.0 (Could not initialize egl/EGL not available) #344167
Comments
Linking issue #343774 as it might be related, but the errors in the logs given there differ from mine. This comment on that issue links to an Arch forum thread, where someone explains the issue is caused by "simpledrm" not being automatically disabled by the NVIDIA driver due to header changes in kernel v6.11.0. SDDM and KDE start correctly when testing the suggested workaround by adding To quickly test if this will fix the issue, I selected the NixOS generation with kernel v6.11.0 in grub, pressed |
There's already a PR to the NVIDIA open-gpu-kernel-modules repository which adds support for the renamed kernel header files. I tried to test it with the following NixOS configuration change after merging the PR into the v560.35.03 kernel module. I think this is technically incorrect as I'm not globally overriding the As a result SDDM was no longer crashing, but wasn't rendering correctly either, staying as a black screen. The only reason I realized it's running is because it briefly flashed (at the wrong resolution) when I switched to a console TTY. After blindly entering my password into the black SDDM, KDE crashed with the errors from #343774 appearing in it. I guess I'm finally experiencing the reasons why people always say not to run the latest kernel with NVIDIA proprietary drivers. { config, pkgs }: {
# This does not work. Kind of.
hardware.nvidia.open = true;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta.overrideAttrs {
open = config.boot.kernelPackages.nvidiaPackages.beta.open.overrideAttrs {
src = pkgs.fetchFromGitHub {
owner = "opl-";
repo = "open-gpu-kernel-modules";
rev = "main";
hash = "sha256-SzbXewSU1Mn8uFtLlDGiJKJSEkXBoTRpLlFzlvZiliU=";
};
};
};
} |
And indeed, Kernel v6.10.11 ( |
Nvidia issue. Stay at 6.10 until new driver release. |
- Pin kernel to 6.10.11 for ryzennova, due to NixOS/nixpkgs#344167 - Fix eza icon options, made it set to "auto" instead of true - Removed qtbase, breaks Plasma 6.2.1 theming - Remove python nose as it was deprecated and remove from nixpkgs - Add space to transient prompt for oh-my-posh - Switch from base xwaylandvideobridge to kdePackages.xwaylandvideobridge - Remove gpg scdaemon settings as it seems to break Yubikey support
With kernel 6.11.5 ( package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
version = "565.57.01";
sha256_64bit = "sha256-buvpTlheOF6IBPWnQVLfQUiHv4GcwhvZW3Ks0PsYLHo=";
sha256_aarch64 = "sha256-aDVc3sNTG4O3y+vKW87mw+i9AqXCY29GVqEIUlsvYfE=";
openSha256 = "sha256-/tM3n9huz1MTE6KKtTCBglBMBGGL/GOHi5ZSUag4zXA=";
settingsSha256 = "sha256-H7uEe34LdmUFcMcS6bz7sbpYhg9zPCb/5AmZZFTx1QA=";
persistencedSha256 = "sha256-hdszsACWNqkCh8G4VBNitDT85gk9gJe1BlQ8LdrYIkg=";
}; Need to disable # The nvidia-settings build is currently broken due to a missing
# vulkan header; re-enable whenever?
# 0384602eac8bc57add3227688ec242667df3ffe3the hits stable.
nvidiaSettings = false; Also, booting the system with an external monitor attached makes the system freeze instantly when loading the kernel on my device (ProArt PX13), so for now I disconnect it before booting the machine. |
Could not stay on 6.10 as I can´t rebuild with it "because it reached end of life upstream". no Edit: getting a nvidia driver mismatch issue... Edit: fixed by deactivating boot nvidia modules. (or you can use nvidia_x11_beta)
|
Confirming using nvidia 565.57.01 is much more stable than previous versions after several hours of running. |
Great 👍
I'm still on 6.10 on my nvidia machine. I didn't notice this issue. boot.kernelPackages = pkgs.linuxPackages_6_10; |
Yes, this is on latest :
|
I can confirm that v565.57.01 works with 6.11.5-xanmod1! |
We can also confirm this on Kernel 6.11.5. |
Updating NixOS to nixpkgs c04d565 results in SDDM crashing on startup with "Could not initialize egl" and "EGL not available" errors logged in the journal.
Additional context
nixpkgs: c04d565
Kernel: v6.11.0
NVIDIA driver: v560.35.03 (crashes with both open and non-open kernel module)
KDE: v6.1.5 (wayland)
dGPU: NVIDIA RTX 3070 Ti Laptop
Previous working generation was running nixpkgs c374d94 (Linux kernel v6.10.6 with the beta v560.31.02 NVIDIA driver).
sudo journalctl -b -1 | grep sddm
Nearly identical with open and non-open kernel module, the only difference being the
HDMI-A-1
display being named unknown.The
simple-framebuffer
section is not present in thedrmdevice
output when using my previous system generation.nix shell nixpkgs#libdrm^bin -c drmdevice
Notify maintainers
@Kiskae @edwtjo
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: