You are not logged in.

#1 2012-10-15 04:01:25

mattbarszcz
Member
Registered: 2012-06-25
Posts: 35

KDM not working after systemd migration

I migrated my running desktop arch installation over to a systemd/initscripts configuration.  sysvinit has been removed and systemd-sysvcompat has been installed as per the systemd article.

I have everything working as before except for kdm.  Previously I started kdm vis inittab.

I have followed the instructions in the wiki (https://wiki.archlinux.org/index.php/Sy … er_systemd)

systemctl enable kdm.service

(this succeeds)

I do not have a default.target already set that would cause problems.

When I reboot the system, I get a text login and nothing on tty7.  If I login as root and run a

systemctl --all

it shows that kdm.service has loaded (but I dont see KDM).  If i run

systemctl stop kdm

systemctl start kdm

kdm will loads right up and works fine.

There isn't much more information in the documentation about this other than to enable the service it and it should work.  Does anyone know why KDM doesn't load up automatically at boot (even though it starts automatically) or how I could further troubleshoot this?

Offline

#2 2012-10-15 04:13:59

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: KDM not working after systemd migration

Have you tried doing

ln -s /usr/lib/systemd/system/kdm.service /etc/systemd/system/display-manager.service

?


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-10-15 04:56:35

mattbarszcz
Member
Registered: 2012-06-25
Posts: 35

Re: KDM not working after systemd migration

Before I ran that command I ran

ls -l /etc/systemd/system/display-manager.service

and got the output

lrwxrwxrwx 1 root root 35 Oct 14 02:20 /etc/systemd/system/display-manager.service -> /usr/lib/systemd/system/kdm.service

So it looks like the symlink was already created when I ran

systemctl enable

I tried to create it again anyway though and it just returned "ln: failed to create symbolic link ‘/etc/systemd/system/display-manager.service’: File exists"

Offline

#4 2012-10-15 06:17:47

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: KDM not working after systemd migration

Try adding default.target, like this:

ln -s /usr/lib/systemd/system/graphical.target /etc/systemd/system/default.target

Together with your existing display-manager.service it should work (it does for me at least).

Btw, when you review the output of systemctl and journalctl, can you see any errors (like system trying to load KDM but it fails for some reason)?


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2012-10-15 23:29:46

mattbarszcz
Member
Registered: 2012-06-25
Posts: 35

Re: KDM not working after systemd migration

No luck with the default.target but here was an interesting section I found with journalctl:

Oct 15 19:20:06 matt systemd[1]: Starting K Display Manager...
Oct 15 19:20:06 matt systemd[1]: Started K Display Manager.

Oct 15 19:20:06 matt systemd[1]: Starting Getty on tty1...
Oct 15 19:20:06 matt systemd[1]: Started Getty on tty1.
Oct 15 19:20:06 matt systemd[1]: Starting Login Prompts.
Oct 15 19:20:06 matt systemd[1]: Reached target Login Prompts.
Oct 15 19:20:06 matt winbindd[247]: [2012/10/15 19:20:06.265774,  0] winbindd/winbindd_cache.c:3147(initialize_winbindd_cache)
Oct 15 19:20:06 matt winbindd[247]: initialize_winbindd_cache: clearing cache and re-creating with version number 2
Oct 15 19:20:06 matt smbd[248]: [2012/10/15 19:20:06.326121,  0] smbd/server.c:1109(main)
Oct 15 19:20:06 matt smbd[248]: standard input is not a socket, assuming -D option
Oct 15 19:20:06 matt systemd[1]: Started Login Service.
Oct 15 19:20:06 matt systemd[1]: Starting Multi-User.
Oct 15 19:20:06 matt systemd[1]: Reached target Multi-User.
Oct 15 19:20:06 matt systemd[1]: Starting Graphical Interface.
Oct 15 19:20:06 matt systemd[1]: Reached target Graphical Interface.
Oct 15 19:20:06 matt systemd[1]: Starting Update UTMP about System Runlevel Changes...
Oct 15 19:20:06 matt systemd-logind[249]: Watching system buttons on /dev/input/event5 (Power Button)
Oct 15 19:20:06 matt systemd-logind[249]: Watching system buttons on /dev/input/event4 (Power Button)
Oct 15 19:20:06 matt systemd-logind[249]: New seat seat0.
Oct 15 19:20:06 matt systemd[1]: Started Update UTMP about System Runlevel Changes.
Oct 15 19:20:06 matt systemd[1]: Startup finished in 3s 75ms 868us (kernel) + 694ms 214us (userspace) = 3s 770ms 82us.
Oct 15 19:20:06 matt winbindd[247]: initialize_winbindd_cache: clearing cache and re-creating with version number 2
Oct 15 19:20:06 matt smbd[248]: [2012/10/15 19:20:06.326121,  0] smbd/server.c:1109(main)
Oct 15 19:20:06 matt smbd[248]: standard input is not a socket, assuming -D option
Oct 15 19:20:06 matt systemd[1]: Started Login Service.
Oct 15 19:20:06 matt systemd[1]: Starting Multi-User.
Oct 15 19:20:06 matt systemd[1]: Reached target Multi-User.
Oct 15 19:20:06 matt systemd[1]: Starting Graphical Interface.
Oct 15 19:20:06 matt systemd[1]: Reached target Graphical Interface.
Oct 15 19:20:06 matt systemd[1]: Starting Update UTMP about System Runlevel Changes...
Oct 15 19:20:06 matt systemd-logind[249]: Watching system buttons on /dev/input/event5 (Power Button)
Oct 15 19:20:06 matt systemd-logind[249]: Watching system buttons on /dev/input/event4 (Power Button)
Oct 15 19:20:06 matt systemd-logind[249]: New seat seat0.
Oct 15 19:20:06 matt systemd[1]: Started Update UTMP about System Runlevel Changes.
Oct 15 19:20:06 matt systemd[1]: Startup finished in 3s 75ms 868us (kernel) + 694ms 214us (userspace) = 3s 770ms 82us.
Oct 15 19:20:06 matt smbd[266]: [2012/10/15 19:20:06.499229,  0] printing/print_cups.c:151(cups_connect)
Oct 15 19:20:06 matt smbd[266]: Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory
Oct 15 19:20:06 matt smbd[248]: [2012/10/15 19:20:06.499462,  0] printing/print_cups.c:528(cups_async_callback)
Oct 15 19:20:06 matt smbd[248]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
Oct 15 19:20:06 matt kernel: firewire_core 0000:04:00.0: created device fw0: GUID 0010dc00019a91af, S400
Oct 15 19:20:06 matt kdm[255]: X server died during startup
Oct 15 19:20:06 matt kdm[255]: X server for display :0 cannot be started, session disabled

Oct 15 19:20:06 matt kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.0/0000:01:00.1/sound/card2/input15
Oct 15 19:20:06 matt kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/0000:01:00.1/sound/card2/input16
Oct 15 19:20:06 matt kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/0000:01:00.1/sound/card2/input17
Oct 15 19:20:06 matt kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/0000:01:00.1/sound/card2/input18
Oct 15 19:20:06 matt kernel: vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
Oct 15 19:20:06 matt kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  304.51  Tue Sep 18 17:16:56 PDT 2012
---------

It seems that systemd is trying to load KDM before the nvidia driver is loaded.

How can I rearrange the boot order to correct this?  I thought systemd was supposed to figure out the order automatically.

Last edited by mattbarszcz (2012-10-15 23:30:39)

Offline

#6 2012-10-18 23:14:03

mattbarszcz
Member
Registered: 2012-06-25
Posts: 35

Re: KDM not working after systemd migration

bump?

Offline

#7 2012-10-19 01:03:47

sandsmark
Member
From: Trondheim, Norway
Registered: 2008-04-10
Posts: 38
Website

Re: KDM not working after systemd migration

# echo 'nvidia' >> /etc/modules-load.d/nvidia.conf

and off you should go.

(my KDM still fails to launch, though)

Offline

#8 2012-10-19 03:22:46

mattbarszcz
Member
Registered: 2012-06-25
Posts: 35

Re: KDM not working after systemd migration

sandsmark wrote:
# echo 'nvidia' >> /etc/modules-load.d/nvidia.conf

and off you should go.

Thank you sandsmark!  I guess forcing the module to load manually puts it ahead of loading KDM.

Offline

#9 2014-12-11 18:45:48

Rixsus
Member
Registered: 2014-12-11
Posts: 1

Re: KDM not working after systemd migration

sandsmark wrote:
# echo 'nvidia' >> /etc/modules-load.d/nvidia.conf

and off you should go.

(my KDM still fails to launch, though)


Thank you!!! I think I hate systemd more and more....
Exactly same problem and solution today...

Offline

#10 2014-12-12 02:42:39

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: KDM not working after systemd migration

Rixsus wrote:

Thank you!!! I think I hate systemd more and more....
Exactly same problem and solution today...

Please don't necrobump old threads. I'm slightly curious as to why you think systemd is supposedly causing you this problem two years after the rest of us updated our systems (and the Arch documentation, which should always be search before posting), but I'm not sure there's much use in asking. And stow the anti-systemd talk. For most of us, that crap got old years ago.

Welcome to Arch. Had you not violated two of our forum rules and tossed in some flame bait in your first post I'd likely have been more amicable.

Offline

#11 2014-12-12 02:44:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: KDM not working after systemd migration

What he said ^


Closing...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB