You are not logged in.
I just decided to try Wayland today and read that GDM should choose Wayland by default, unless I choose "GNOME on Xorg" explicitly. However, I see only two options, "GNOME" and "GNOME Classic", and the "GNOME" option uses x11 (as confirmed by loginctl and XDG_SESSION_TYPE).
I'm using the NVIDIA driver. My package versions (let me know if I should provide others):
4.16.13-1-ARCH
nvidia: 396.24-7
gdm: 3.28.1-1
gnome-shell: 3.28.2-1
gnome-session: 3.28.1-1
wayland: 1.15.0-1
xorg-server-xwayland: 1.20.0-5
Although I have an NVIDIA GPU and an integrated Intel GPU, the Intel one is disabled in BIOS so I don't know if it matters. Output of "lspci | grep VGA":
01:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)
I tried starting a Wayland session manually by executing "XDG_SESSION_TYPE=wayland dbus-run-session gnome-session", but got
dbus-daemon[4713]: [session uid=1000 pid=4713] Activating service name='org.gtk.vfs.Daemon' requested by ':1.0' (uid=1000 pid=4733 comm="/usr/lib/gnome-session-check-accelerated ")
dbus-daemon[4713]: [session uid=1000 pid=4713] Successfully activated service 'org.gtk.vfs.Daemon'
fusermount: failed to access mountpoint /run/user/1000/gvfs: Permission denied
dbus-daemon[4713]: [session uid=1000 pid=4713] Activating service name='org.freedesktop.systemd1' requested by ':1.3' (uid=1000 pid=4714 comm="/usr/lib/gnome-session-binary ")
dbus-daemon[4713]: [session uid=1000 pid=4713] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[4713]: [session uid=1000 pid=4713] Activating service name='org.freedesktop.systemd1' requested by ':1.5' (uid=1000 pid=4714 comm="/usr/lib/gnome-session-binary ")
dbus-daemon[4713]: [session uid=1000 pid=4713] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[4713]: [session uid=1000 pid=4713] Activating service name='org.freedesktop.systemd1' requested by ':1.7' (uid=1000 pid=4714 comm="/usr/lib/gnome-session-binary ")
dbus-daemon[4713]: [session uid=1000 pid=4713] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[4713]: [session uid=1000 pid=4713] Activating service name='org.freedesktop.systemd1' requested by ':1.8' (uid=1000 pid=4714 comm="/usr/lib/gnome-session-binary ")
dbus-daemon[4713]: [session uid=1000 pid=4713] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
A connection to the bus can't be made
I also tried this https://wiki.archlinux.org/index.php/NV … de_setting but it had no effect I could see.
I'm not sure where to start as I'm completely new to this stuff. I can provide logs if told how to get them. Thanks for any help!
Last edited by zizheng (2018-06-05 02:45:42)
Offline
What you describe will occur if you have set an explicit WaylandEnable=false in /etc/gdm/custom.conf. That is not the default so you possibly set this long ago in the early days of Wayland issues and have forgotten about it.
Offline
What you describe will occur if you have set an explicit WaylandEnable=false in /etc/gdm/custom.conf. That is not the default so you possibly set this long ago in the early days of Wayland issues and have forgotten about it.
So I removed GDM completely, enabled DRM for NVIDIA following the wiki, and then tried to start Wayland from the tty after login with "XDG_SESSION_TYPE=wayland dbus-run-session gnome-session". And I got the error:
dbus-daemon[829]: [session uid=1000 pid=829] Activating service name='org.freedesktop.systemd1' requested by ':1.1' (uid=1000 pid=830 comm="/usr/lib/gnome-session-binary ")
dbus-daemon[829]: [session uid=1000 pid=829] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[829]: [session uid=1000 pid=829] Activating service name='org.freedesktop.systemd1' requested by ':1.3' (uid=1000 pid=830 comm="/usr/lib/gnome-session-binary ")
dbus-daemon[829]: [session uid=1000 pid=829] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[829]: [session uid=1000 pid=829] Activating service name='org.freedesktop.systemd1' requested by ':1.5' (uid=1000 pid=830 comm="/usr/lib/gnome-session-binary ")
dbus-daemon[829]: [session uid=1000 pid=829] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[829]: [session uid=1000 pid=829] Activating service name='org.freedesktop.systemd1' requested by ':1.7' (uid=1000 pid=830 comm="/usr/lib/gnome-session-binary ")
dbus-daemon[829]: [session uid=1000 pid=829] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[829]: [session uid=1000 pid=829] Activating service name='org.freedesktop.systemd1' requested by ':1.8' (uid=1000 pid=830 comm="/usr/lib/gnome-session-binary ")
dbus-daemon[829]: [session uid=1000 pid=829] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[829]: [session uid=1000 pid=829] Activating service name='org.freedesktop.systemd1' requested by ':1.8' (uid=1000 pid=830 comm="/usr/lib/gnome-session-binary ")
dbus-daemon[829]: [session uid=1000 pid=829] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Offline
Also, running "weston" directly in an X session works fine. Running "weston-launch" from tty results in a black screen, however.
Offline
Any idea what could be wrong?
Offline
I got the EXACT same problem.
Also I get the following error on every boot:
gnome-shell[566]: Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found.
gnome-shell[566]: Unable to initialize Clutter.
gnome-session[559]: gnome-session-binary[559]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
gnome-session-binary[559]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
gnome-session-binary[559]: Unrecoverable failure in required component org.gnome.Shell.desktop
This error doesn't occur when I'm uncommenting the #WaylandEnable=false line in /etc/gdm/custom.conf.
It's definitely the Nvidia driver, because nouveau is working fine with Wayland.
Also using a GTX1080, btw. I really would like to try Wayland, but it still isn't working with the proprietary Nvidia drivers I guess.
Offline
Any more insights into this issue? I do not have a hybrid gfx setup - nVidia GPU only - but still see the exact same behavior as described here. Putting WaylandEnable=true in /etc/gdm/custom.conf does not change anything either, btw.
Cheers,
Smoerrebroed
Offline
Still not working even with the very latest nvidia (396.51). Guess we'll have to wait for Gnome 3.30. :-/
Offline
I have just upgraded to GNOME 3.30 and wayland option is completely gone, although it was available in 3.28.
# echo $XDG_SESSION_TYPE
x11
No visible errors in journalctl, all I see is that gdm-x-session gets started right after gdm user is logged in.
Any ideas what can cause this, any workarounds?
I'm on hybrid intel/NVIDIA laptop, but 3.28 had worked just ok.
Offline
Wayland work with sddm ,nvidia gnome 3.30 gdm dos not work
Offline
Hello.
I have the same problem myself. I have a laptop with a dual intel/NVIDIA graphics card, while with Gnome 3.28 I could choose Gnome Wayland (which can only work with the intel card) and Gnome with Xorg (which can work with the NVIDIA or Intel card). The update to Gnome 3.30 only allows connection with Gnome on Xorg.
As dimsuz I don't see any serious errors in journalctl (segmentation fault for example) unlike the change from Gnome 3.26 to Gnome 3.28. This behaviour may be intended, if someone who is familiar with the Gnome project could explain the objective to us, it would be greatly appreciated.
The temporary solution I found is to disable the NVIDIA card by creating this file "/etc/modprobe.d/nvidia.conf" and put this:
blacklist nvidia
blacklist nvidia_drm
After a restart I found my usual session choices but obviously without being able to use the NVIDIA card, the time either to understand, if it is voluntary, or to have a correction if it is an unintentional bug.
Offline
I am using sddm with gnome 3.30 with Nvidia drivers,GRUB_CMDLINE_LINUX=“nvidia-drm.modeset=1”
$ loginctl show-session $(loginctl | grep $(whoami) | awk '{print $1}') -p Type
Type=wayland
$ echo $XDG_SESSION_TYPE
wayland
I could choose Gnome Wayland,X11gnome
Last edited by john29 (2018-09-24 11:11:52)
Offline
Maybe time to revisit this topic: I am on Linux 5.0.2, nVidia 418.43 and GNOME 3.32 including gdm now, still Wayland doesn't seem to work. Am I overlooking anything?
Last edited by Smoerrebroed (2019-03-17 09:26:44)
Offline
@Smoerrebroed
Wayland is explicitly disabled for the proprietary nvidia driver in /lib/udev/rules.d/61-gdm.rules:
# disable Wayland on Cirrus chipsets
ATTR{vendor}=="0x1013", ATTR{device}=="0x00b8", ATTR{subsystem_vendor}=="0x1af4", ATTR{subsystem_device}=="0x1100", RUN+="/usr/lib/gdm-disable-wayland"
# disable Wayland on Hi1710 chipsets
ATTR{vendor}=="0x19e5", ATTR{device}=="0x1711", RUN+="/usr/lib/gdm-disable-wayland"
# disable Wayland when using the proprietary nvidia driver
DRIVER=="nvidia", RUN+="/usr/lib/gdm-disable-wayland"
Last edited by shiveringpeach (2019-03-17 14:15:42)
Offline
I made packages libgdm-wayland-nvidia and gdm-wayland-nvidia which remove the change https://gitlab.gnome.org/GNOME/gdm/comm … 7e8bcd5f08 but I haven't updated them for 3.32 yet. However if you just remove that change yourself it should fix it.
Offline