-
-
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
Starting SDDM/KDE Plasma 6 on NVIDIA proprietary driver crashes #323396
Comments
Realized this comment is obviously an unrelated issue (#311450)Updating NVIDIA driver to beta Logs include the following:
|
this option does not exist.
This does not necessarily indicate an issue. The mesa NVK driver prints that warning on load, even if it is never actually used. Have you enabled |
You're right; corrected it.
I think I tried it without any success, but I tried again anyway. Technically it does improve the situation and allows SDDM and KDE to start, but now I'm hitting other issues. Using NVIDIA proprietary driver version 555.58 and their closed kernel module on kernel 6.9.7: On the first reboot SDDM froze, on the second reboot KDE froze after ~20 seconds. When I say "froze" I mean the system became so unresponsive even sysrq didn't work. Since the third reboot SDDM and KDE start correctly, but Firefox keeps crashing within seconds. See table below.
|
On the positive side, it seems the As for the other issue, given that after the two initial flukes the system does seem to boot, we should probably move to #311450. |
Would it still be logging this? Trying to create a swapchain through zink suggests to me it's not going through NVIDIA.
|
No that is a different issue, I believe that indicates SDDM is trying to use vulkan through zink as an opengl provider. Does it work if you disable PRIME and use just a single driver? Might be related to cross-driver weirdness. |
You just made me realize the That said, on NVIDIA 555.58, kernel 6.9.7, nixpkgs b2852eb, removing the workaround once again makes SDDM fail to start with the same errors. With In summary, my current config works, and is as follows: hardware.graphics.package = config.hardware.nvidia.package; # Fixes `MESA: error: zink: could not create swapchain`
hardware.nvidia.modesetting.enable = true; # Fixes SDDM starting with a black screen and a cursor.
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta; # 555.58 since #322963.
hardware.nvidia.open = true; # Works either way.
hardware.nvidia.prime.offload.enable = false;
services.displayManager.sddm.enable = true;
services.xserver.enable = true; # Probably optional, but I kept it in case Wayland doesn't work.
services.displayManager.sddm.wayland.enable = true;
services.desktopManager.plasma6.enable = true;
programs.xwayland.enable = true; I also found accidentally stumbled upon this comment, which now allows me to run Firefox without it crashing by running through XWayland with the |
From what I can tell the fix will only be included in Firefox 130, the prior versions are all marked with "wontfix"... |
Btw @opl- from what I know |
is there a separate issue for sddm starting with black screen and cursor ? Turning off hybrid mode with |
Only the latest kernels cause this problem. Setting boot.kernelPackage to pkgs.linuxPackages can solve this problem. |
So the problem now is that the nvidia driver does not work with wayland on the latest kernel. |
Indeed, |
Fixes framebuffer support in Linux 6.11. Fixes NixOS#343774, NixOS#323396.
Closing this since I believe the issue has been fixed with the recent updates. |
Describe the bug
Starting SDDM/KDE Plasma 6 on NVIDIA proprietary driver fails, leaving the user looking at the systemd logs in console mode.
Journal contains the following relevant logs:
Steps To Reproduce
Here's my best guess for the relevant settings:
Expected behavior
SDDM greeter starts and allows logging in to start a Wayland session.
Additional context
The following workaround suggested in this forum thread fixes the issue:
Perhaps it should be set by the nvidia module if
hardware.nvidia.prime.enable
isfalse
?Notify maintainers
@Kiskae
Metadata
NVIDIA driver version: 550.90.07
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: