Open opl- opened 6 days ago
hardware.nvidia.sync.enable = true;
this option does not exist.
NVK requires nouveau.
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 hardware.nvidia.modesetting.enable
? When DRM is involved it is required.
this option does not exist.
You're right; corrected it.
Have you enabled
hardware.nvidia.modesetting.enable
?
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.
Boot No. | NVIDIA driver version | NVIDIA kernel module | Kernel version | Result |
---|---|---|---|---|
1 | 555.58 | closed | 6.9.7 | SDDM froze. |
2 | 555.58 | closed | 6.9.7 | KDE froze 20 seconds after logging in. |
3 | 555.58 | closed | 6.9.7 | Firefox crashes. |
4 | 555.58 | open | 6.9.7 | Firefox crashes. |
5 | 555.58 | open | 6.6.36 | Firefox crashes. |
On the positive side, it seems the hardware.graphics.package = config.hardware.nvidia.package;
workaround is indeed not necessary when hardware.nvidia.modesetting.enable = true;
, but only when running the 555.82 NVIDIA driver (kernel 6.6.36). On NVIDIA 550.90.07 (kernel 6.9.7) the issue persists.
As for the other issue, given that after the two initial flukes the system does seem to boot, we should probably move to #311450.
The mesa NVK driver prints that warning on load, even if it is never actually used.
Would it still be logging this? Trying to create a swapchain through zink suggests to me it's not going through NVIDIA.
sddm-helper-start-wayland[1984]: "MESA: error: zink: could not create swapchain\n"
The mesa NVK driver prints that warning on load, even if it is never actually used.
Would it still be logging this? Trying to create a swapchain through zink suggests to me it's not going through NVIDIA.
sddm-helper-start-wayland[1984]: "MESA: error: zink: could not create swapchain\n"
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.
Does it work if you disable PRIME and use just a single driver?
You just made me realize the hardware.nvidia.prime.sync.enable = true;
is redundant, as the iGPU is completely unnecessary in this situation.
That said, on NVIDIA 555.58, kernel 6.9.7, nixpkgs b2852eb9365c6de48ffb0dc2c9562591f652242a, removing the workaround once again makes SDDM fail to start with the same errors. With hardware.graphics.package = config.hardware.nvidia.package;
it starts working again.
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 MOZ_ENABLE_WAYLAND=0
envvar. It's not perfect, as at least hardware video acceleration doesn't work, but it gets me running on the NVIDIA 555.58 driver and gets rid of flickering in Minecraft. Here's the relevant Bugzilla issue tracking the Firefox issue with some PRs submitted 4 days ago.
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 :+1: reaction to issues you find important.