Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LightDM keeps restarting
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
MarcGentoo
n00b
n00b


Joined: 26 Nov 2020
Posts: 65

PostPosted: Fri Apr 30, 2021 4:41 am    Post subject: LightDM keeps restarting Reply with quote

Hello,

I have the issue that once I leave my PC alone for some time (lightdm locks display) it sometimes has only a flickering underscore on the screen.

Turns out, lightdm is starting again and again.
If I restart lightdm manually it recovers.

This happens only when I use quite some RAM (~16 GB of 32 GB and 2 GB Swap on 32 GB zram).
Once I free some ram, lightdm recovers itself.

I am using openrc.

Here is the log from
/var/log/lightdm/lightdm.log
You can see it start and stops again, but I can't find out why.
Code:

[+136556.04s] DEBUG: Seat seat0: Creating display server of type x
[+136556.04s] DEBUG: Using VT 8
[+136556.04s] DEBUG: Seat seat0: Starting local X display on VT 8
[+136556.04s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+136556.04s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+136556.04s] DEBUG: XServer 1: Launching X Server
[+136556.04s] DEBUG: Launching process 134792: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+136556.04s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+136556.17s] DEBUG: Process 134792 exited with return value 1
[+136556.17s] DEBUG: XServer 1: X server stopped
[+136556.17s] DEBUG: Releasing VT 8
[+136556.17s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+136556.17s] DEBUG: Seat seat0: Display server stopped
[+136556.17s] DEBUG: Seat seat0: Stopping session
[+136556.17s] DEBUG: Seat seat0: Session stopped
[+136556.17s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+136556.17s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+136556.17s] DEBUG: Seat seat0: Creating greeter session
[+136556.17s] DEBUG: Seat seat0: Creating display server of type x
[+136556.17s] DEBUG: Using VT 8
[+136556.17s] DEBUG: Seat seat0: Starting local X display on VT 8
[+136556.17s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+136556.17s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+136556.17s] DEBUG: XServer 1: Launching X Server
[+136556.17s] DEBUG: Launching process 134852: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+136556.17s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+136556.30s] DEBUG: Process 134852 exited with return value 1
[+136556.30s] DEBUG: XServer 1: X server stopped
[+136556.30s] DEBUG: Releasing VT 8
[+136556.30s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+136556.30s] DEBUG: Seat seat0: Display server stopped
[+136556.30s] DEBUG: Seat seat0: Stopping session
[+136556.30s] DEBUG: Seat seat0: Session stopped
[+136556.30s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+136556.30s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+136556.30s] DEBUG: Seat seat0: Creating greeter session
[+136556.30s] DEBUG: Seat seat0: Creating display server of type x
[+136556.30s] DEBUG: Using VT 8
[+136556.30s] DEBUG: Seat seat0: Starting local X display on VT 8
[+136556.30s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+136556.30s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+136556.30s] DEBUG: XServer 1: Launching X Server
[+136556.30s] DEBUG: Launching process 134877: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+136556.30s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+136556.44s] DEBUG: Process 134877 exited with return value 1
[+136556.44s] DEBUG: XServer 1: X server stopped
[+136556.44s] DEBUG: Releasing VT 8
[+136556.44s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+136556.44s] DEBUG: Seat seat0: Display server stopped
[+136556.44s] DEBUG: Seat seat0: Stopping session
[+136556.44s] DEBUG: Seat seat0: Session stopped
[+136556.44s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+136556.44s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+136556.44s] DEBUG: Seat seat0: Creating greeter session
[+136556.44s] DEBUG: Seat seat0: Creating display server of type x
[+136556.44s] DEBUG: Using VT 8
[+136556.44s] DEBUG: Seat seat0: Starting local X display on VT 8
[+136556.44s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+136556.44s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+136556.44s] DEBUG: XServer 1: Launching X Server
[+136556.44s] DEBUG: Launching process 134902: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+136556.44s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+136556.57s] DEBUG: Process 134902 exited with return value 1
[+136556.57s] DEBUG: XServer 1: X server stopped
[+136556.57s] DEBUG: Releasing VT 8
[+136556.57s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+136556.57s] DEBUG: Seat seat0: Display server stopped
[+136556.57s] DEBUG: Seat seat0: Stopping session
[+136556.57s] DEBUG: Seat seat0: Session stopped
[+136556.57s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+136556.57s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+136556.57s] DEBUG: Seat seat0: Creating greeter session
[+136556.57s] DEBUG: Seat seat0: Creating display server of type x
[+136556.57s] DEBUG: Using VT 8
[+136556.57s] DEBUG: Seat seat0: Starting local X display on VT 8
[+136556.57s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+136556.57s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+136556.57s] DEBUG: XServer 1: Launching X Server
[+136556.57s] DEBUG: Launching process 134927: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+136556.57s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+136556.70s] DEBUG: Process 134927 exited with return value 1
[+136556.70s] DEBUG: XServer 1: X server stopped
[+136556.70s] DEBUG: Releasing VT 8
[+136556.70s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+136556.70s] DEBUG: Seat seat0: Display server stopped
[+136556.70s] DEBUG: Seat seat0: Stopping session
[+136556.70s] DEBUG: Seat seat0: Session stopped
[+136556.70s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+136556.70s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+136556.70s] DEBUG: Seat seat0: Creating greeter session
[+136556.70s] DEBUG: Seat seat0: Creating display server of type x
[+136556.70s] DEBUG: Using VT 8
[+136556.70s] DEBUG: Seat seat0: Starting local X display on VT 8
[+136556.70s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+136556.70s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+136556.70s] DEBUG: XServer 1: Launching X Server
[+136556.70s] DEBUG: Launching process 134952: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+136556.70s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+136556.85s] DEBUG: Process 134952 exited with return value 1
[+136556.85s] DEBUG: XServer 1: X server stopped
[+136556.85s] DEBUG: Releasing VT 8
[+136556.85s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+136556.85s] DEBUG: Seat seat0: Display server stopped
[+136556.85s] DEBUG: Seat seat0: Stopping session
[+136556.85s] DEBUG: Seat seat0: Session stopped
[+136556.85s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+136556.85s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+136556.85s] DEBUG: Seat seat0: Creating greeter session
[+136556.85s] DEBUG: Seat seat0: Creating display server of type x
[+136556.85s] DEBUG: Using VT 8
[+136556.85s] DEBUG: Seat seat0: Starting local X display on VT 8
[+136556.85s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+136556.85s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+136556.85s] DEBUG: XServer 1: Launching X Server
[+136556.85s] DEBUG: Launching process 134976: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+136556.85s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+136557.00s] DEBUG: Process 134976 exited with return value 1
[+136557.00s] DEBUG: XServer 1: X server stopped
[+136557.00s] DEBUG: Releasing VT 8
[+136557.00s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+136557.00s] DEBUG: Seat seat0: Display server stopped
[+136557.00s] DEBUG: Seat seat0: Stopping session
[+136557.00s] DEBUG: Seat seat0: Session stopped
[+136557.00s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+136557.00s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+136557.00s] DEBUG: Seat seat0: Creating greeter session
[+136557.00s] DEBUG: Seat seat0: Creating display server of type x
[+136557.00s] DEBUG: Using VT 8
[+136557.00s] DEBUG: Seat seat0: Starting local X display on VT 8
[+136557.00s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+136557.00s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+136557.00s] DEBUG: XServer 1: Launching X Server
[+136557.00s] DEBUG: Launching process 135000: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+136557.00s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+136557.15s] DEBUG: Process 135000 exited with return value 1
[+136557.15s] DEBUG: XServer 1: X server stopped
[+136557.15s] DEBUG: Releasing VT 8
[+136557.15s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+136557.15s] DEBUG: Seat seat0: Display server stopped
[+136557.15s] DEBUG: Seat seat0: Stopping session
[+136557.15s] DEBUG: Seat seat0: Session stopped
[+136557.15s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+136557.15s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+136557.15s] DEBUG: Seat seat0: Creating greeter session
[+136557.15s] DEBUG: Seat seat0: Creating display server of type x
[+136557.15s] DEBUG: Using VT 8
[+136557.15s] DEBUG: Seat seat0: Starting local X display on VT 8
[+136557.15s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+136557.15s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+136557.15s] DEBUG: XServer 1: Launching X Server
[+136557.15s] DEBUG: Launching process 135024: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+136557.15s] DEBUG: XServer 1: Waiting for ready signal from X server :1


tail -f /var/log/lightdm/x-0.log
Code:

(EE) client bug: timer event14 debounce short: scheduled expiry is in the past (-13ms), your system is too slow
(EE) client bug: timer event14 debounce: scheduled expiry is in the past (-0ms), your system is too slow
(EE) client bug: timer event14 debounce short: scheduled expiry is in the past (-13ms), your system is too slow
(EE) client bug: timer event14 debounce short: scheduled expiry is in the past (-2ms), your system is too slow
(EE) client bug: timer event14 debounce short: scheduled expiry is in the past (-2ms), your system is too slow
(EE) client bug: timer event14 debounce short: scheduled expiry is in the past (-2ms), your system is too slow
(EE) client bug: timer event14 debounce short: scheduled expiry is in the past (-3ms), your system is too slow
(EE) client bug: timer event14 debounce short: scheduled expiry is in the past (-4ms), your system is too slow
(EE) client bug: timer event14 debounce short: scheduled expiry is in the past (-4ms), your system is too slow
(II) AIGLX: Suspending AIGLX clients for VT switch


Code:

tail -f /var/log/Xorg.0.log
[219907.271] (II) config/udev: removing device Logitech MX Master 3
[219907.271] (II) UnloadModule: "libinput"
[219907.313] (II) config/udev: removing device HID 046a:010d
[219907.313] (II) UnloadModule: "libinput"
[219907.331] (II) config/udev: removing device HID 046a:010d
[219907.331] (II) UnloadModule: "libinput"
[219907.331] (II) config/udev: removing device HID 046a:010d
[219907.331] (II) UnloadModule: "libinput"
[219907.344] (II) config/udev: removing device USBest Technology SiS HID Touch Controller
[219907.344] (II) UnloadModule: "libinput"


Any hints what I could look for?

Thanks a lot in advance
Back to top
View user's profile Send private message
MarcGentoo
n00b
n00b


Joined: 26 Nov 2020
Posts: 65

PostPosted: Fri May 07, 2021 2:58 pm    Post subject: Reply with quote

Hello,

does anyone have an idea what I could look for?

Thanks a lot in advance.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sat May 08, 2021 11:33 am    Post subject: Reply with quote

I used to use LightDM with light-locker on a non-Gentoo Linux machine but don't any more so cannot be much help, but I do remember light-locker causing an issue at one point although I can't recall what. You might consider switching to xscreensaver, as its locker worked well with LightDM the last time I tried, albeit it has a rather ugly lock screen. One of my laptops running Gentoo Linux uses LightDM but with kde-plasma/kscreenlocker, and I have not experienced any problems with that either.

Does your machine have an NVIDIA GPU or NVIDIA Optimus hardware?

What video drivers are installed and being used?

Do you have an /etc/X11/xorg.conf file? If so, what are its contents?

What graphics card-related files, if any, do you have in /etc/X11/xorg.conf.d/ and what are their contents?

Which desktop environment are you using?

Which LightDM greeter is being used?
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
MarcGentoo
n00b
n00b


Joined: 26 Nov 2020
Posts: 65

PostPosted: Sun May 09, 2021 11:33 am    Post subject: Reply with quote

Hi,

thanks for your response, I answered in the text below.

Also, to note: this error has started only since some update. But as I was using the pc headless for some time, I can't put a finger on the update which messed it up.

Fitzcarraldo wrote:

Does your machine have an NVIDIA GPU or NVIDIA Optimus hardware?
No, I am using AMDGPU

What video drivers are installed and being used?
amd gpu and radeonsi

Do you have an /etc/X11/xorg.conf file? If so, what are its contents?

Section "ServerFlags"
Option "DontZap" "false"
EndSection


What graphics card-related files, if any, do you have in /etc/X11/xorg.conf.d/ and what are their contents?

keyboard:
Section "InputClass"
Identifier "keyboard"
MatchIsKeyboard "yes"
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
EndSection

vnc:
section "Module"
Load "vnc"
EndSection

Section "Screen"
Identifier "Default Screen"
Option "PasswordFile" "/etc/X11/vncpasswd"
EndSection

nothing else.



Which desktop environment are you using?
i3

Which LightDM greeter is being used?
the default one I guess? I did not (knowingly) set a greeter, but followed the wiki https://wiki.gentoo.org/wiki/LightDM
How can I find that out?


Thank you for your support.

Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sun May 09, 2021 12:15 pm    Post subject: Reply with quote

The message 'XServer 1: Waiting for ready signal from X server :1' in the LightDM log file contents you posted makes me wonder if there is a time-out of some sort occurring. Some years ago I experienced a problem with LightDM starting before the graphics driver had completed loading at boot on a laptop running Sabayon Linux, and the solution was to add the following line in the '[LightDM]' section in the lightdm.conf file:

Code:
logind-check-graphical=true


If you're using OpenRC+elogind you could try that to see if it has an effect, albeit your situation is different.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
MarcGentoo
n00b
n00b


Joined: 26 Nov 2020
Posts: 65

PostPosted: Sat May 15, 2021 5:04 am    Post subject: Reply with quote

Hi, I tried a lot in the meantime, but I figured this seems to be a lightdm problem for me. I now switched for sddm and do not face any issues anymore.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum