Hello everyone
I’ve been using NixOS with Gnome and Wayland for a while. Because of remote desktop software, I had to switch to Gnome with X in the Gnome login. That worked. The next time I started it up, the selection at the bottom right was still …X. I then switched back to Gnome. But the login screen comes back immediately after logging in. Logging in with X works.
I also tried to force Wayland with:
services.displayManager.defaultSession = "gnome";
but that doesn’t change anything… What could have happened?
My complete config…
https://paste.schwoon.info/?fdfa6762217af644#TMBWzEsC1M9dCBqwfarLqb8FQiVPwnzjEScrpEaQYEz
This is my journalctl, beginning at time 13:00, the login on gdm is at 13:02~ and the change to X11 is on 13:05~.
Had waited to better see the diffs… If this helps…?!
journalctl
This doesn’t seem right:
Aug 03 13:02:12 daw systemd[1836]: org.gnome.Shell@wayland.service: Main process exited, code=killed, status=9/KILL
NVIDIA graphics, to me means higher risk of something going wrong.
Did you try the proprietary driver?
No, but it has worked until the one time switch to Gnome with X…
But i’ll take a look to that prp. driver…
OK, i have enabled the driver by
services.xserver.videoDrivers = [ "nvidia" ];
But after reboot only one of my two displays are working, the max res. was 1024x768… And only Gnome was working, not Gnome with X. Strange…
Now i habe disabled that, and bootet the config some days ago, with working wayland.!
It seems the switching to Gnome with X and running a rebuild breaks something.
What to do now? Looking for the latest running boot entry with wayland and run a rebuild then??
Did you try nixpkgs-unstable?
Did you read through this?
Also, perhaps try without TeamViewer.
Yes, i’m running unstable. 24.11. And yes, in a 1st try i added the config from here, but that won’t built…
And i can disable Teamviewer, but havn’t any hope that it will help.
Question is, what is happening after rebuilt switch while using the Gnome with X…
I wouldn’t give that too much weight.
Any chance this is a desktop and you could try with a different brand GPU?
Not realy, it is an older DELL workstation… Have no spare parts.
But!
I found something. To have the ability to choose Gnome with X, i had disabled autologin, by putting # in front the two lines…
#Enable automatic login for the user.
services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = “wolf”;
Now with reenableing it, it starts in wayland again… wtf.
Glad you have made progress. You could look into the implementation of autoLogin if you need to.
Yes, that seems more complicated… Simply set to false disables autologin, and then no wayland login is possible… Only X11. So what, i like to use wayland, but some remote desktop apps won’t work with wayland. Think that takes some time…