This will result Gnome starting into Qayland and there is no dropdown or anything on log in to choose X. Tried removing gdm line but then X11 will fail to start and the startup fails. Couldn’t find any resources regarding this.
Any ideas? The reason for X11 over Wayland is that Teams screen sharing is not working too well on Wayland (otherwise I would prefer Wayland).
Adding that line results just an empty black screen with cursor blinking on the upper left corner on boot up (just before the graphical UI should start). Same happened when I tried to add following lines to /etc/gdm/custom.conf:
Now I have a new problem: if I try to go switch back to KDE plasma from gnome the X11 fails on startup: https://pastebin.com/cxqkpPLN
Not sure if I managed to break X11 somehow. Not sure what I can do besides a reinstall as KDE still works from previous generations, but it fails to start up if I switch to to the exact configuration I had earlier.
May 14 20:04:34 nixos /nix/store/855dn1bi3fcsqh5xkqkh29bhb4c2zy97-gdm-42.0/libexec/gdm-x-session[2219]: Fatal server error:
May 14 20:04:34 nixos /nix/store/855dn1bi3fcsqh5xkqkh29bhb4c2zy97-gdm-42.0/libexec/gdm-x-session[2219]: (EE) Caught signal 11 (Segmentation fault). Server aborting
On the other hand, your new log shows this:
May 15 12:55:45 nixos kernel: nouveau 0000:01:00.0: gr: init failed, -110
That’s suspicious, that’s the open nvidia driver. Is this a laptop with mixed graphics? You may need to configure it to handle both correctly.
My guess is that the switch between Wayland/X triggered some funky path in the “which GPU is rendering my display” logic.
Configured Nvidia PRIME etc. according to https://nixos.wiki/wiki/Nvidia and now I can boot into Gnome on X11 with services.xserver.displayManager.gdm.wayland = false;
If I configure it like this, when I log in, I have a blackscreen.
If I understand correctly in this topic, it may come from the nvidia driver that has a problem with X, but what I don’t understand is if I try to use plasma with X and the nvidia driver it works correctly.
Can you create a new topic? This one is resolved, so few people will read it.
Also include the output of journalctl --boot in your post like OP did - without it it’s hard to tell what’s going wrong.
This can also be fixed, by the way. It’s not that screen sharing is broken, screen sharing your whole screen won’t work because of Wayland restricting X11 applications for security reasons.
The discord app, despite being a chrome browser with a theme, is not built with Wayland support, so it runs as an X11 application, and is therefore restricted.
Easiest way around this is to use firefox (not sure if chrome is correctly set up for Wayland yet, but firefox is as of NixOS 22.11) instead of the standalone app, that even saves resources because you don’t need to have a browser just dedicated to running discord!
That, or you just always screen share a specific window.