You've confirmed that you're currently running an X11 session with GNOME on Debian 12. Switching to a Wayland session is straightforward. Here's a step-by-step guide:
Method 1: Change Session Type at Login (Recommended)
-
Log Out of Your Current Session:
- Click on the top-right corner of your GNOME desktop (where the power/settings icons are).
- Select your username (or just click on your profile picture).
- Choose Log Out.
- Confirm logout if prompted.
-
Select Wayland Session on the Login Screen:
- You'll be taken back to the GNOME Display Manager (GDM) login screen.
- Don't enter your password yet!
- Look for a gear icon ⚙️ or a cog icon (it might be subtle, but it's there) next to your username or password field.
- Location varies slightly:
- In most cases, it's at the bottom-right corner of the screen.
- Sometimes, it's right next to the "Log In" button.
- On some Debian setups, you might need to click on your username first, and then the gear icon appears.
- Click on the gear icon. A dropdown menu will appear with session options.
- Select "GNOME" (NOT "GNOME on Xorg" or "GNOME Classic").
- The plain "GNOME" option should be the Wayland session.
- Note: Debian 12 (Bookworm) uses GNOME 43+, which defaults to Wayland. So, just "GNOME" is fine.
-
Log Back In:
- Now, enter your password and log in as usual.
-
Verify You've Switched to Wayland:
- Open a terminal.
- Run:
echo $XDG_SESSION_TYPE
- It should now output:
wayland ✅
What if I don't see the gear icon?
-
GDM Not Configured Correctly (Unlikely): In extremely rare cases, GDM might not be showing the session selector. Try:
sudo dpkg-reconfigure gdm3
Reboot afterward.
-
GNOME Not Installed Properly: Ensure you have the latest GNOME packages:
sudo apt update
sudo apt install gnome-shell
Reboot.
-
Using a Different Display Manager (SDDM, LightDM): If you're not using GDM (GNOME's default), the process differs:
- SDDM (KDE's default): On the login screen, there's usually a "Session" dropdown menu at the top or bottom. Select "GNOME".
- LightDM: There's often a session selector next to the login button. Choose "GNOME".
Method 2: Force Wayland by Editing Config (Advanced, Not Usually Needed)
Edit with caution. Only do this if Method 1 fails.
-
Edit GDM Configuration:
sudo nano /etc/gdm3/daemon.conf
-
Uncomment or Add WaylandEnable Line:
Find the section that looks like:
#WaylandEnable=false
- Change it to (or just add this line if it doesn't exist):
WaylandEnable=true
- Save (Ctrl+O, Enter) and Exit (Ctrl+X).
-
Restart GDM (or Reboot):
sudo systemctl restart gdm3
Alternatively, just reboot: sudo reboot
This forces GDM to prioritize Wayland sessions. Now, when you log in, it should default to Wayland (use echo $XDG_SESSION_TYPE to verify).
Troubleshooting After Switching
After successfully switching, try Waydroid again:
waydroid session start
It should now connect to the Wayland compositor without errors.
Still stuck?
- Check Debian forums or GNOME/Wayland bug trackers for very specific GPU/login manager issues.
- Consider temporarily switching to another Wayland compositor like Sway (
sudo apt install sway) to isolate if the problem is GNOME-specific.
You should now be enjoying Wayland with GNOME on Debian 12!