What you will achieve
Know whether your session runs Wayland or X11, why it matters for screen sharing and GPU, and how to switch on Ubuntu/Fedora GNOME.
1) Detect session type
echo $XDG_SESSION_TYPE
loginctl show-session $(loginctl | awk 'NR==2{print $1}') -p Type
2) GNOME login toggle
On GDM login screen → gear icon → Ubuntu (Wayland) vs Ubuntu on Xorg.
3) Practical differences
- Wayland — better isolation, fractional scaling; some legacy X apps need XWayland.
- X11 — broader compatibility for remote desktop and older screen capture tools.
- NVIDIA — check driver docs; recent drivers improved Wayland on GNOME.
4) Force X11 (temporary)
# GDM custom.conf uncomment:
# WaylandEnable=false
Verify
echo $WAYLAND_DISPLAY
echo $DISPLAY
Wayland sets WAYLAND_DISPLAY=wayland-0; X11 sets DISPLAY=:0.
5) Screen sharing on Wayland
PipeWire and xdg-desktop-portal required for Zoom/Teams screen share on Wayland GNOME — install xdg-desktop-portal-gnome.
6) Remote desktop
RDP (xrdp) and VNC historically target X11. Wayland sessions may need different tools (RustDesk, GNOME Remote Desktop).
7) Variable refresh and gaming
Wayland compositors handle VRR better on KDE Plasma 6 and recent GNOME — check distro release notes for your GPU.
Check app compatibility
echo $XDG_SESSION_TYPE
glxinfo | grep "OpenGL renderer"
Proprietary apps still shipping X11-only may need GDK_BACKEND=x11 workaround until ported.
8) Headless servers irrelevant
Neither Wayland nor X11 applies to typical Ubuntu Server — saves you debugging session type on SSH-only boxes.
Prerequisites
Desktop environment installed (GNOME/KDE). GPU drivers current. Knowledge of whether remote desktop and screen sharing are daily requirements — drives X11 vs Wayland choice.
logind seat
loginctl show-session $(loginctl | awk 'NR==2{print $1}') -p Type
KDE Plasma Wayland session
SDDM login → Plasma (Wayland) vs Plasma (X11) — KDE maturity on Wayland differs from GNOME; pick per app compatibility testing.
Fractional scaling
Wayland GNOME 46+ improved 125%/150% scaling — X11 fractional scaling hacky. Laptops with HiDPI favour Wayland session when apps you use support it — test Zoom/Teams screen share before committing.
Steam and games
Proton and native games mix XWayland and Vulkan — Gamemode and correct session type affect frame pacing — check ProtonDB game notes for Wayland-specific bugs before switching session permanently.
obs studio capture
OBS 30+ native Wayland pipewire capture — X11 obs needs xcomposite. Streamers pick session type based on capture pipeline not ideology.
mutter vs kwin
GNOME mutter and KDE kwin compositors differ in Wayland maturity — app works on Fedora KDE Wayland may break on Ubuntu GNOME — test your stack not generic Wayland advice.