You are not logged in.

#1 2014-03-20 00:37:32

DoDoENT
Member
Registered: 2010-06-09
Posts: 23

[SOLVED] KDM systemd service has got wrong dependencies

KDM systemd service has got wrong dependencies...

... at least I think so.

Here is the problem I am facing:

if I enable KDM systemd service to start on boot, my system boots and leaves me with blank screen. I am even unable to switch to tty consoles. However, it appears that login proceeds normally because I can hear my KDE login sound (I've configured KDM to perform automatic login). On the other hand, if I disable the KDM service and manually start it after logging in into tty, it works normally. Is there a way to delay the startup of KDM until boot finishes? Currently /usr/libsystemd/system/kdm.service has got following contents:

[Unit]
Description=K Display Manager
After=systemd-user-sessions.service

[Service]
ExecStart=/usr/bin/kdm -nodaemon

[Install]
Alias=display-manager.service

I believe this means that it should be started after systemd-user-sessions.service. Apparently in my case this is too early - I end up with blank monitor. I need KDM to wait even more before starting. What is the last unit that systemd starts? How can I check that on my system? Is there a way to tell unit to wait 500 ms before executing a line from ExecStart? I don't mind waiting a second or two more for KDM startup if it will start for sure - it would still be faster than logging in into tty and manually starting the KDM service.

Last edited by DoDoENT (2014-03-20 10:32:50)


Smile! It makes people wonder what you are thinking about...

Offline

#2 2014-03-20 00:59:04

DoDoENT
Member
Registered: 2010-06-09
Posts: 23

Re: [SOLVED] KDM systemd service has got wrong dependencies

I've also tried modifying the /usr/lib/systemd/system/kdm.service by adding WantedBy=multi-user.target but without any luck. It didn't help.

[Unit]
Description=K Display Manager
After=systemd-user-sessions.service

[Service]
ExecStart=/usr/bin/kdm -nodaemon

[Install]
Alias=display-manager.service
WantedBy=multi-user.target

The screen just keeps beeing off - like driver was not initialized properly. Closing the laptop lid and opening it again does not help - it just turns on the screen backlight. The only solution to start the X server is by logging in to tty and manually start the KDM.

Does anyone have any better idea?


Smile! It makes people wonder what you are thinking about...

Offline

#3 2014-03-20 08:52:27

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [SOLVED] KDM systemd service has got wrong dependencies

Try the following:

[Unit]
Description=K Display Manager
Conflicts=getty@tty1.service
After=systemd-user-sessions.service getty@tty1.service

[Service]
ExecStart=/usr/bin/kdm -nodaemon
Restart=always
IgnoreSIGPIPE=no
StandardOutput=syslog

[Install]
Alias=display-manager.service

Offline

#4 2014-03-20 09:20:32

DoDoENT
Member
Registered: 2010-06-09
Posts: 23

Re: [SOLVED] KDM systemd service has got wrong dependencies

Padfoot wrote:

Try the following:

[Unit]
Description=K Display Manager
Conflicts=getty@tty1.service
After=systemd-user-sessions.service getty@tty1.service

[Service]
ExecStart=/usr/bin/kdm -nodaemon
Restart=always
IgnoreSIGPIPE=no
StandardOutput=syslog

[Install]
Alias=display-manager.service

Thank you for your suggestion. Unfortunately it does not work. Out of 4 boots, 3 time I ended up with blank screen. Interestingly, in the last boot I was able to switch to tty1 just after screen went blank and managed to log in to tty. I've restarted the kdm.service then manually in hope the image will be restored, but it wasn't. The restart of kdm then made the screen totally blank and I was unable to switch to tty anymore.

Is it possible that radeon module in kernel has some slow initialization procedure and if X requires its services before it is properly initialized it ends up with blank screen?


Smile! It makes people wonder what you are thinking about...

Offline

#5 2014-03-20 10:21:05

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] KDM systemd service has got wrong dependencies

DoDoENT wrote:

Is it possible that radeon module in kernel has some slow initialization procedure and if X requires its services before it is properly initialized it ends up with blank screen?

I don't know, but if you're not using early KMS start already, try that.

Offline

#6 2014-03-20 10:32:16

DoDoENT
Member
Registered: 2010-06-09
Posts: 23

Re: [SOLVED] KDM systemd service has got wrong dependencies

Raynman wrote:
DoDoENT wrote:

Is it possible that radeon module in kernel has some slow initialization procedure and if X requires its services before it is properly initialized it ends up with blank screen?

I don't know, but if you're not using early KMS start already, try that.

This not only solved my issue, but increased the boot speed. Thank you, thank you, thank you! You are the hero of the day!


Smile! It makes people wonder what you are thinking about...

Offline

Board footer

Powered by FluxBB