Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-14-2019, 06:58 AM   #1
LQ Newbie
Registered: Jan 2014
Posts: 3

Rep: Reputation: Disabled
Question Even with WaylandEnable=false gdm3 and lightdm only load sometimes

I am happy to use either gdm3 or lightdm, but neither are stable on my Ubuntu 18.04 system, they will work for either one or several boots after I take corrective action, but inevitably this results in the greeter not loading - the last few times (at least) I noticed this was immediately after I did a sudo apt update. The graphics card on my Intel Core i5 system is an Nvidia GTX 970, and I manually installed nvidia-driver-415 using apt when I could not load a greeter as soon as I had installed.

Searching here and elsewhere, I have tried many things to resolve this, which I will outline below. If you know something else I can try - to get either greeter stable - please let me know.


Installed: 3.28.3-0ubuntu18.04.3

Even with WaylandEnable=false uncommented in /etc/gdm3/custom.conf, I could never login, instead of the greeter I would see either a black screen or graphic distortion like a black screen with some pink lines across the top, and I am only able to login setting nomodeset.

With gd3 not working, I tried lightdm, and on encountering similar issues switched back to gdm3 again:

sudo apt-get install gdm3
sudo dpkg-reconfigure gdm3
This seemed to work - kind of, for the first few days I could boot most of the time. I have quiet splash permanently removed from my boot options, and boot was sometimes hanging on Started NVIDIA Persistence Daemon as below:

Another time with gdm3 I saw the following output instead of the greeter:


Installed: 1.26.0-0ubuntu1

When I use lightdm instead, and the greeter does not load, I see a flashing black screen with a single white underscore top left. I can never get to a TTY using ctrl + alt + f3/f4/f5, REISUB does not work, so I hard rebooted, the greeter loads with nomodeset, and from there without logging in I switch to a TTY and I have tried what I outline below. Sometimes if I just reboot again without nomodeset the greeter will just load properly, without my changing anything.

Observing these permissions:

-rw-------  1 dusf dusf      56 Jan  7 17:38 .Xauthority
-rw-------  1 dusf dusf   15886 Jan  7 17:38 .ICEauthority
drwxrwxrwt 16 root root 4096 Jan  7 17:45 /tmp
I input the following, and could login normally next reboot:

sudo chown dusf:dusf .Xauthority
sudo chown dusf:dusf .ICEauthority
sudo chmod a+wt /tmp
The next time the issue occurred I input the following, and could login next reboot:

sudo dpkg-reconfigure lightdm
In .xsession-errors, I noticed the following line, which I thought could be relevant considering I see an underscore instead of a greeter?

Next temporary fix:

sudo mv .Xauthority .Xauthority.bak

sudo apt-get purge lightdmsudo apt-get install --reinstall lightdm
sudo apt-get install gnome
After a sudo apt upgrade a few days ago with the same issue recurring I input all of the following and everything seemed fine for a few days:

sudo apt upgradesudo apt purge lightdm
sudo apt purge gnome
sudo apt purge nvidia*
sudo apt remove nvidia-driver-415
sudo apt purge nvidia-*
sudo apt install nvidia-415
sudo apt install nvidia-driver-415
sudo apt purge xorg-* xserver-xorg
sudo apt install xorg xserver-xorg
sudo dpkg-reconfigure xorg
sudo apt purge ubuntu-gnome-desktop
sudo apt purge gnome-desktop-environment
apt install ubuntu-gnome-desktop
sudo apt install ubuntu-gnome-desktop
sudo apt purge lightdm
sudo apt install --reinstall lightdm
The next time the issue occurred I noticed in my .bash_history the last commands I input were:

sudo apt update
sudo apt upgrade
and I uploaded the following logs:




I read adding an xrandr line to some files may be the next step, but the actual lines seem to be system specific, and their are recommendations on adding them to different files.

How can I begin to resolve the issue, either with gdm3 or lightdm please?

Last edited by dusf; 01-14-2019 at 08:47 AM.
Old 01-14-2019, 10:17 PM   #2
Registered: Apr 2009
Distribution: Debian testing
Posts: 680

Rep: Reputation: 146Reputation: 146
I think the the problem is:
You don't know what you are doing, and the advise you apparently follow comes from somebody like you.
As such, you should just let the more knowledgeable Ubuntu design team set up your system.
In the example below you will find the owner is dusf, then you changed the owner to dusf:
-rw------- 1 dusf dusf 56 Jan 7 17:38 .Xauthority
-rw------- 1 dusf dusf 15886 Jan 7 17:38 .ICEauthority
sudo chown dusf:dusf .Xauthority
sudo chown dusf:dusf .ICEauthority
I fail to see the example below as a "fix":
sudo mv .Xauthority .Xauthority.bak
And purging everything followed by reinstalling may be good to undo your damage, switching between apt and apt-get likely gets different results. I'm using Geforce GTX-970M, and my Gnome 18.04.1 LTS system is stable, because I didn't enable ppa:graphics-drivers/ppa which is using latest "Beta" drivers. What I did, was issue command: sudo ubuntu-drivers autoinstall which installed the stable 390 version drivers. Another method of installing stable graphics in Ubuntu is by using graphical application in Ubuntu, all three methods "including your approach" are listed in this article. Pay attention to the warnings in the third method---> This PPA is still considered testing. Sometimes you might encounter dependency problems like below

So all in all, if you want to learn how to fix broken Ubuntu, just keep doing what you're doing. If you want a stable Ubuntu and rather waste your time doing something else other than wasting time fixing your "self destructed Ubuntu", just let the Ubuntu design team set up your system properly.


gdm3, gnome, greeter, lightdm, nvidia

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] lightdm-session error message after removal of lightdm rng Linux - General 3 08-28-2017 03:48 PM
GDM3 starts only on one X Screen of two krokoziabla Linux - Desktop 0 01-24-2014 06:45 PM
LXer: Simple LightDM Manager: Change The LightDM Background Or Logo Using A GUI LXer Syndicated Linux News 0 10-05-2011 06:41 PM
Sometimes 1000mbps and sometimes only 100mbps? FireRaven Linux - Hardware 10 10-14-2010 08:01 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration