how to force GDM to use wayland

I got a Xorg driver problem that causes the mouse cursor 1 seconds behind the mouse movement when in x11. This can be cured by launching gnome-session in WAYLAND mode

if [[ -z $DISPLAY && $(tty) == /dev/tty1 && $XDG_SESSION_TYPE == tty ]]; then  MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session; fi

Is there a way to force gdm to automatically login a user with wayland, since it makes no sense to want to login to a buggy x11.

Answer

Attribution
Source : Link , Question Author : Tankman六四 , Answer Author : Community

Leave a Comment