You are not logged in.
Pages: 1
Topic closed
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 --allit shows that kdm.service has loaded (but I dont see KDM). If i run
systemctl stop kdm
systemctl start kdmkdm 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
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
Before I ran that command I ran
ls -l /etc/systemd/system/display-manager.serviceand got the output
lrwxrwxrwx 1 root root 35 Oct 14 02:20 /etc/systemd/system/display-manager.service -> /usr/lib/systemd/system/kdm.serviceSo it looks like the symlink was already created when I ran
systemctl enableI 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
Try adding default.target, like this:
ln -s /usr/lib/systemd/system/graphical.target /etc/systemd/system/default.targetTogether 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
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
bump?
Offline
# echo 'nvidia' >> /etc/modules-load.d/nvidia.confand off you should go.
(my KDM still fails to launch, though)
Offline
# echo 'nvidia' >> /etc/modules-load.d/nvidia.confand off you should go.
Thank you sandsmark! I guess forcing the module to load manually puts it ahead of loading KDM.
Offline
# echo 'nvidia' >> /etc/modules-load.d/nvidia.confand 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
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
What he said ^
Closing...
Offline
Pages: 1
Topic closed