-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux Display Server Configuration
Complete beginner-friendly guide to display servers on Linux, covering Arch Linux, CachyOS, and other distributions including X11 vs Wayland comparison, switching between them, desktop environment support, and troubleshooting.
- Understanding Display Servers
- X11 Display Server
- Wayland Display Server
- X11 vs Wayland Comparison
- Switching Between X11 and Wayland
- Desktop Environment Support
- Troubleshooting
Display server is software that manages graphical output and input on Linux.
What it does:
- Manages windows: Controls window placement, sizing, stacking
- Handles input: Processes mouse and keyboard input
- Renders graphics: Displays applications on screen
- Manages displays: Handles multiple monitors
- Security: Controls application access to display
Why it's needed:
- Applications need display: Programs need to show windows
- Input handling: Mouse/keyboard need to work
- Window management: Multiple windows need management
- Security: Prevents unauthorized screen access
How it works:
Applications → Display Server → Graphics Driver → Monitor
Two main display servers:
- X11: Traditional display server (older)
- Wayland: Modern display server (newer)
X11 (also called X Window System or X) is the traditional display server for Linux.
Key features:
- Network transparency: Can display applications over network
- Mature: Very stable, well-tested
- Compatible: Works with almost everything
- Flexible: Highly configurable
Install Xorg:
# Arch/CachyOS
sudo pacman -S xorg xorg-server
# Install drivers
sudo pacman -S xf86-video-intel # Intel
sudo pacman -S xf86-video-amdgpu # AMD
sudo pacman -S nvidia # NVIDIADebian/Ubuntu:
sudo apt install xorgFedora:
sudo dnf install @xorg-x11-driversCreate config:
# Generate config
sudo Xorg :0 -configure
# Or create manually
sudo vim /etc/X11/xorg.confWayland is a modern display server protocol.
Key features:
- Modern: Designed for modern systems
- Security: Better security model
- Performance: Improved performance
- Simplicity: Simpler architecture
Install compositor:
# GNOME (uses Wayland)
sudo pacman -S gnome
# KDE (uses Wayland)
sudo pacman -S plasma-wayland-session
# Sway
sudo pacman -S sway
# Hyprland
yay -S hyprlandX11 benefits:
- Mature: Very stable, well-tested
- Compatible: Works with almost everything
- Network: Network transparency
- Flexible: Highly configurable
Wayland benefits:
- Security: Better security model
- Performance: Improved performance
- Modern: Designed for modern systems
- Simplicity: Simpler architecture
Use X11 if:
- You need maximum compatibility
- You use older applications
- You need network transparency
- You prefer stability
Use Wayland if:
- You want better security
- You want better performance
- You use modern applications
- You prefer modern architecture
Switch at login:
- Log out
- Click username on login screen
- Select session: GNOME (X11) or GNOME (Wayland)
- Log in
Switch at login:
- Log out
- Click session menu
- Select: Plasma (X11) or Plasma (Wayland)
- Log in
Check which server:
# Check display server
echo $XDG_SESSION_TYPE
# Should show: x11 or waylandGNOME supports both:
- Wayland: Default on modern GNOME
- X11: Available as fallback
KDE supports both:
- Wayland: Available, improving
- X11: Default, very stable
XFCE supports:
- X11: Primary support
- Wayland: Limited support
X11 window managers:
- i3, Awesome, bspwm, Openbox
Wayland compositors:
- Sway, Hyprland, Wayfire, Niri
Check logs:
# X11 logs
cat ~/.local/share/xorg/Xorg.0.log
# Wayland logs
journalctl -u wayland-sessionRun on X11:
# Force X11
GDK_BACKEND=x11 applicationRun on Wayland:
# Force Wayland
GDK_BACKEND=wayland applicationThis guide covered display server configuration for Arch Linux, CachyOS, and other distributions, including X11, Wayland, switching between them, and desktop environment support.
- Desktop Environments - Desktop setup
- Window Managers - Window managers
- Graphics Drivers - GPU setup
- ArchWiki Xorg: https://wiki.archlinux.org/title/Xorg
- ArchWiki Wayland: https://wiki.archlinux.org/title/Wayland
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.