Cannot login Wayland sessions on 20.04

8,687

Run:

sudo -H gedit /etc/gdm3/custom.conf

Change this:

WaylandEnable=false

to this:

#WaylandEnable=false

Reboot and retest Wayland.

Update #1:

  • After closer review, turned out it was already commented out.

  • Created another user account, and Wayland works there.

  • This indicates a problem in the original user's account.

  • The most common problems occur in the ~/.cache, ~/.local, and ~/.config folders.

  • ONE at a time, rename the folder to .cache.HOLD, etc.

  • Log out and see if you can log in using Wayland. If not, rename the second folder, retest, etc.

  • These three folders will recreate themselves and populate themselves with default settings. If renaming these folders fixes the problem, MOVE (not copy) the contents of the .HOLD folders back into their respective non-.HOLD folders, but DO NOT replace existing files. Any files left over in .HOLD folders are suspects in causing the problem.

Share:
8,687

Related videos on Youtube

thorstorm
Author by

thorstorm

Ubuntu user since 2007.

Updated on September 18, 2022

Comments

  • thorstorm
    thorstorm over 1 year

    Since the upgrade to 20.04 I'm unable to login Wayland sessions. I'm using vanilla GNOME so in my greeter I have four options (GNOME, GNOME on Xorg, Ubuntu and Ubuntu on Wayland). I can log in the two Xorg sessions, but not the Wayland ones.

    I ran journalctl -b and found these error messages:

    gdm-password][118320]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
    gdm-password][118320]: gkr-pam: unable to locate daemon control file
    gdm-password][118320]: gkr-pam: stashed password to try later in open session
    systemd[1449]: Dependency failed for GNOME XSettings.
    systemd[1942]: Dependency failed for GNOME Shell on Wayland.
    systemd[1942]: Dependency failed for GNOME Wayland Session.
    systemd[1942]: Dependency failed for GNOME Wayland Session (session: gnome)
    

    I read that this might be a problem with NVIDIA GPUs, but my system has an Intel one.

    EDIT

    grep -i WaylandEnable /etc/gdm3/custom.conf
    

    gives:

    #WaylandEnable=false
    

    EDIT 2

    I tried creating another user and managed to log into a Wayland session. So the issue resides in my user folder.

    How do I re-enable Wayland sessions?

    • Boris Hamanov
      Boris Hamanov about 4 years
      Show me the complete output of grep -i WaylandEnable /etc/gdm3/custom.conf. Have you tried booting with nomodeset?
    • thorstorm
      thorstorm about 4 years
      Edited my question with the output.
    • Boris Hamanov
      Boris Hamanov about 4 years
      Status please...
    • thorstorm
      thorstorm about 4 years
      Without me changing it this morning it ran the command again and found it commented. Maybe I misread yesterday or an update changed something, but still cannot log in Wayland sessions.
  • thorstorm
    thorstorm about 4 years
    It is already commented.
  • Boris Hamanov
    Boris Hamanov about 4 years
    @ToDo Please see Update #1 in my answer. Report back.
  • thorstorm
    thorstorm about 4 years
    The .config folder was the culprit. Let's hope that things didn't break but renaming and copying things back. At the moment I cna login Wayland sessions.
  • Boris Hamanov
    Boris Hamanov about 4 years
    @ToDo Thanks for the update. If you look in the .config.HOLD folder, do you see any suspects left over after the moves?
  • thorstorm
    thorstorm about 4 years
    There are 8 folders left and among them dconf that contains one file called user
  • thorstorm
    thorstorm almost 4 years
    Problem has returned. I thought that gdm should retain the previous session setting, but for some reason I realised I was logged in an X11 session, Trying to log in a Wayland session returns the same errors in logs.
  • Boris Hamanov
    Boris Hamanov almost 4 years
    @ToDo Assuming that you can still log into a different account with Wayland and not see the problem still tells us the problem is with your account. If you haven't already done the .cache and .local folders like you did with the .config folder, do those now. Let me know, and if I need to, I'll outline the next troubleshooting step.
  • thorstorm
    thorstorm almost 4 years
    The .cache folder was the first one I tried renaming. I haven't done that with the .local folder yet. I can't do it now. I may do it when I'm more available. For the time being I'll stick to X11.
  • Boris Hamanov
    Boris Hamanov almost 4 years
    Let me know. Also, edit your question and show me ls -al ~/.local/share/gnome-shell/extensions and ls -al /usr/share/gnome-shell/extensions.
  • thorstorm
    thorstorm almost 4 years
    I tried uninstalling all user installed extensions and it still wouldn't let me login Wayland sessions.
  • Boris Hamanov
    Boris Hamanov almost 4 years
    Just to make sure we're on the same page... you CAN log into another account with Wayland, yes? And last I recall, you were going to try getting the .local folder out of the way, yes?
  • thorstorm
    thorstorm almost 4 years
    Since when I tried renaming the .config folder I had temporarily gained access to Wayland sessions, I tried to narrow it down a bit by inspecting the .config.HOLD folder and discovered that if I rename only the .config/dconf folder I was able to login Wayland sessions. Then I started reconfiguring things as they were before but one by one. Enabling the Gnome extensions, etc. and till now everything is still working.
  • Boris Hamanov
    Boris Hamanov almost 4 years
    Thanks for the update!
  • Johannes Lemonde
    Johannes Lemonde almost 3 years
    @ToDo : have you found the dconf param that bugs it all? Personnally I remember how I initially, after fresh-installing Ubuntu, configured my stuff in Wayland, then rebooted, and already then it didn't work so I've been using Xorg since then. By the way, thank you for your earlier comment!!!
  • Boris Hamanov
    Boris Hamanov almost 3 years
    @JohannesLemonde Please start a new question.
  • user2085899
    user2085899 over 2 years
    Thanks, I checked .config folder and the problem was .config/chrome-remote-desktop in my case
  • karthik nair
    karthik nair about 2 years
    The OP clearly states that he's got an Intel iGPU
  • kamal pandey
    kamal pandey about 2 years
    The answer was to help Nvidia users facing this issue, I was facing the same issue and landed here on google search. When I fixed the problem I thought of sharing it for others.