You are not logged in.

#1 2012-07-01 03:26:44

aya
Member
From: Japan
Registered: 2011-06-12
Posts: 51

[Solved] kdm.service fails to start X with systemd 185-4

Hello

After updating systemd yesterday to 185-4 and booting my pc in the morning I found out that either the boot stops in the middle giving me just black screen or it would throw me to console prompt after some time.

systemctl status kdm.service shows two errors

Jul  1 11:20:57 pc kdm[285]: X server startup timeout, terminating
Jul  1 11:21:08 pc kdm[285]: X server for display :0 cannot be started, session disabled

The same can be observed in logs. However, there are no errors in Xorg.0.log.

Moreover when I do
systemctl stop kdm.service
systemctl start kdm.service

kdm loads fine and I can login to kde.

I have temporarily reverted to 185-3 and the problem seems to be gone.
Does anybody experience a similar issue?

thanks

Last edited by aya (2012-07-02 14:05:53)

Offline

#2 2012-07-02 14:05:36

aya
Member
From: Japan
Registered: 2011-06-12
Posts: 51

Re: [Solved] kdm.service fails to start X with systemd 185-4

reinstalled 185-4 and have no problems now

Offline

#3 2012-07-04 13:17:07

unikum
Member
From: Russia
Registered: 2010-09-04
Posts: 151
Website

Re: [Solved] kdm.service fails to start X with systemd 185-4

~ $ ls -l  /etc/systemd/system/graphical.target.wants/kdm.service
lrwxrwxrwx 1 root root 35 мая   31 20:33 /etc/systemd/system/graphical.target.wants/kdm.service -> /usr/lib/systemd/system/kdm.service
~ $ cat /usr/lib/systemd/system/kdm.service
cat: /usr/lib/systemd/system/kdm.service: No such file or directory.

Also read - https://projects.archlinux.org/svntogit … 833ee7a0c8

Offline

#4 2012-07-04 15:18:59

aya
Member
From: Japan
Registered: 2011-06-12
Posts: 51

Re: [Solved] kdm.service fails to start X with systemd 185-4

Thanks unikum.
I see. Now it starts from /etc/rc.d/kdm
Though I don't quite understand the reason why the unit file was removed.

$ systemctl status kdm.service
kdm.service
          Loaded: loaded (/etc/rc.d/kdm)
          Active: active (running) since Wed, 04 Jul 2012 21:24:01 +0900; 2h 52min ago
        Main PID: 342 (kdm)
          CGroup: name=systemd:/system/kdm.service
                  ├ 342 /usr/bin/kdm -nodaemon
                  └ 366 /usr/bin/X :0 vt7 -nolisten tcp -auth /var/run/xauth/A:0-8ZoAvb

Offline

#5 2012-07-04 16:59:53

unikum
Member
From: Russia
Registered: 2010-09-04
Posts: 151
Website

Re: [Solved] kdm.service fails to start X with systemd 185-4

As workground, you can use this - https://github.com/sofar/user-session-units (there are packages in the AUR).

Offline

#6 2012-07-04 18:02:08

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved] kdm.service fails to start X with systemd 185-4

Or just yoink the unit from testing/kdebase-workspace ... user-session-units is a whole different setup which little to no documentation (and lots of bugs). For proper use, it even requires patching dbus. Not really recommended for general use...

Offline

#7 2012-07-05 00:38:03

aya
Member
From: Japan
Registered: 2011-06-12
Posts: 51

Re: [Solved] kdm.service fails to start X with systemd 185-4

Thank you guys.
I just don't understand from where /etc/rc.d/* are being triggered in the current setup.

Offline

#8 2012-07-05 12:52:52

aya
Member
From: Japan
Registered: 2011-06-12
Posts: 51

Re: [Solved] kdm.service fails to start X with systemd 185-4

After deleting the already broken /etc/systemd/system/graphical.target.wants/kdm.service kde no longer started on boot. I wonder why it managed to start somehow with the broken link......
So followed falconindy's advice and got kdm.service from testing/kdebase-workspace.
All solved.

Last edited by aya (2012-07-05 12:54:00)

Offline

#9 2013-11-27 15:07:03

smyrman
Member
Registered: 2008-07-08
Posts: 6

Re: [Solved] kdm.service fails to start X with systemd 185-4

Update:
I see that this thread is quite old. But if anyone have a similar issue, I recently saw this issue (with systemd 208-1). It seams that not only must kdm.service be enabled, but so must graphical.target:

     # systemctl enable graphical.target
     # systemctl enable kdm

Offline

Board footer

Powered by FluxBB