Can’t log into an X11 session

I updated my Gnome based system and now I can’t log into an X11 session. Wayland feels too buggy, as I can see edges of my windows bleed into my secondary monitor. Scaling feels weird and when I change resolution scaling my cursor keeps blinking. I never had these problems with X11

Here’s what I tried

sudo rm -rf /etc/gdm/custom.conf
sudo rm -rf /var/lib/gdm/.cache

sudo pacman -Syu \
gdm \
gnome-shell \
gnome-session \
manjaro-gnome-settings \
xorg-server \
xorg-xwayland \
mesa \
dbus \
--overwrite="*"


cat > /usr/share/xsessions/gnome-xorg.desktop <<-EOF
    [Desktop Entry]
    Name=GNOME on Xorg
    Comment=GNOME Session (X11)
    Exec=env GNOME_SHELL_SESSION_MODE=gnome gnome-session --session=gnome
    TryExec=gnome-session
    Type=Application
    DesktopNames=GNOME
    X-GDM-SessionRegisters=true
EOF


sudo systemctl enable gdm --force
sudo systemctl enable dbus

With this, I do get a “Xorg on Gnome” in the login screen, but I cannot actually log in. It gets stuck on the long screen. I can however log into a Wayland session

These are some stack traces

Dec 12 12:37:19 pragyan dbus-broker-launch[2323]: Ignoring duplicate name 'org.freedesktop.FileManager1' in service file '/usr/share//dbus-1/services/org.xfce.Thunar.File
Manager1.service'
Dec 12 12:37:19 pragyan gnome-session[2326]: Failed to start unit gnome-session-x11@gnome.target: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit gnome-session-x11@
gnome.target not found.
Dec 12 12:37:19 pragyan systemd-coredump[2335]: [🡕] Process 2326 (gnome-session-i) of user 60588 dumped core.

Dec 12 12:37:49 pragyan dbus-broker-launch[2430]: Ignoring duplicate name 'org.freedesktop.FileManager1' in service file '/usr/share//dbus-1/services/org.xfce.Thunar.File
Manager1.service'
Dec 12 12:38:07 pragyan dbus-broker-launch[2633]: Ignoring duplicate name 'org.freedesktop.FileManager1' in service file '/usr/share//dbus-1/services/org.xfce.Thunar.File
Manager1.service'
Dec 12 12:38:17 pragyan gdm-password][4043]: gkr-pam: unable to locate daemon control file
Dec 12 12:38:19 pragyan Xsession[4651]: Failed to start unit gnome-session-x11@gnome.target: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit gnome-session-x11@gnome
.target not found.
Dec 12 12:38:19 pragyan systemd-coredump[4682]: [🡕] Process 4651 (gnome-session-i) of user 1000 dumped core.

When I remove # WaylandEnable=false from /etc/gdm/custom.conf gdm doesn’t start, which makes me think I did something terribly wrong while trying to switch to X11 but I have no idea what.

Please let me know if any other info is needed

Here’s the output of inxi -G

Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] driver: nvidia
    v: 580.105.08
  Device-2: Chicony Integrated Camera driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.21 with: Xwayland v: 24.1.9
    compositor: gnome-shell v: 49.2 driver: X: loaded: nvidia
    gpu: nvidia,nvidia-nvswitch resolution: 1: 6144x3456~60Hz
    2: 4096x2560~60Hz
  API: EGL v: 1.5 drivers: nvidia,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 580.105.08
    renderer: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
  Info: Tools: api: eglinfo,glxinfo gpu: nvidia-settings,nvidia-smi
    x11: xprop,xrandr

The removal of X11 from Gnome was explained in the 2nd post of the update announcement (which, of course, should always be read before doing an update):

4 Likes

See Known Issues and Solutions

1 Like