You are not logged in.

#1 2021-07-01 14:06:31

chemicalMoss
Member
Registered: 2021-07-01
Posts: 6

[SOLVED] Light Display Manager failed to start at boot

Hello everbody,

I have troubles installing lightdm. I did a clean install of arch closely following the official installation guide. However, it appears that I am running into what appears to be permission related issue.

When I boot nearly always get a message [FAILED] Failed to start Light Display Manager. I instead login via tty. Checking systemctl status lightdm outputs this:

× lightdm.service - Light Display Manager
     Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2021-07-01 13:27:20 UTC; 3min 33s ago
       Docs: man:lightdm(1)
    Process: 415 ExecStart=/usr/bin/lightdm (code=exited, status=1/FAILURE)
   Main PID: 415 (code=exited, status=1/FAILURE)
        CPU: 34ms

Jul 01 13:27:20 arch systemd[1]: lightdm.service: Failed with result 'exit-code'.
Jul 01 13:27:20 arch systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Jul 01 13:27:20 arch systemd[1]: Stopped Light Display Manager.
Jul 01 13:27:20 arch systemd[1]: lightdm.service: Start request repeated too quickly.
Jul 01 13:27:20 arch systemd[1]: lightdm.service: Failed with result 'exit-code'.
Jul 01 13:27:20 arch systemd[1]: Failed to start Light Display Manager.

When I run lightdm --test-mode --debug the output contains suspicious permission denied messages (Xauthority, ).
https://pastebin.com/gMySPWQr

Interestingly, I can get lightdm working by manually running systemctl start lightdm. However, on reboot it it extremely likely that I am back at the beginning. The laptop has a Ryzen CPU, with amdgpu video drivers, mesa, ... installed.

Here are the log files that I found to be relevant from other threads:
https://pastebin.com/38pqMqh9
https://pastebin.com/SLfq8qXf
https://pastebin.com/JgVdJ6Bx
https://pastebin.com/rAjAgaaG

Last edited by chemicalMoss (2021-07-02 11:26:02)

Offline

#2 2021-07-01 14:12:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,182

Offline

#3 2021-07-01 14:23:50

chemicalMoss
Member
Registered: 2021-07-01
Posts: 6

Re: [SOLVED] Light Display Manager failed to start at boot

Hey seth,

I made the assumption it wouldn't be a race condition, but I was wrong. The first link seems to have fix the issue. What part of the logs made you suspicious or was it based on instinct?
Thanks for the help!

Last edited by chemicalMoss (2021-07-01 14:24:47)

Offline

#4 2021-07-01 14:26:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,182

Re: [SOLVED] Light Display Manager failed to start at boot

When I boot nearly always get a message

Nondeterministic behavior is most likely a race condition and in this case most likely the linked one.
Using early KMS will get you a (slightly) faster system start and be more robust if you switch the DM (or use xinit)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#5 2021-07-02 02:01:13

bigo
Member
Registered: 2021-06-30
Posts: 8

Re: [SOLVED] Light Display Manager failed to start at boot

Edit the display-manager.service config file.

change restart to always, restartsec to 0.5s.

vim /etc/systemd/system/display-manager.service
[Unit]                                                                                                                                     
  1 Description=Light Display Manager
  2 Documentation=man:lightdm(1)
  3 Conflicts=getty@tty1.service
  4 After=getty@tty1.service systemd-user-sessions.service plymouth-quit.service acpid.service
  5 
  6 [Service]
  7 ExecStart=/usr/bin/lightdm
  8 Restart=always
  9 RestartSec=0.5
 10 StartLimitInterval=0
 11 IgnoreSIGPIPE=no
 12 BusName=org.freedesktop.DisplayManager
 13 
 14 [Install]
 15 Alias=display-manager.service

Last edited by bigo (2021-07-02 08:28:29)

Offline

#6 2025-08-22 15:04:58

pdizzle
Member
Registered: 2013-02-07
Posts: 16

Re: [SOLVED] Light Display Manager failed to start at boot

I realize this is really old but it ranks high on google searches. Do not do what that last post suggests, you will just be kicked into an infinite loop of attempting to restart lightDM and unable to use a TTY as you'll just keep getting kicked back to the TTY lightDM is attempting to start in. Trying to figure out how to undo this now

Offline

#7 2025-08-22 15:07:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,182

Re: [SOLVED] Light Display Manager failed to start at boot

2nd link below, boot the multi-user.target, fix the service from there
If you've an nvidia system and face a problem where the 580xx driver initializes too slow, the suggestion for now is to "ExecStartPre=usr/bin/sleep 1"

Offline

#8 2025-08-22 19:48:58

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,469
Website

Re: [SOLVED] Light Display Manager failed to start at boot

Mod note: closing this old topic.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

Board footer

Powered by FluxBB