display-manager service restart

Hi guys,

I find that I have to restart display-manager.service everytime I boot up my machine. Is there a file I can edit so all services are started when the machine is booting up?

That’s not a normal thing to have to do…

  1. Is graphical.target set?
systemctl get-default

2)Any errors reported by display-manager.service?

sudo journalctl -u display-manager

Here’s my journal -u display-manager

Nov 28 07:53:27 Doofenshmirtz systemd[1]: Starting X Display Manager...
Nov 28 07:53:29 Doofenshmirtz display-manager[824]: /etc/vconsole.conf available
Nov 28 07:53:29 Doofenshmirtz display-manager[824]: KEYMAP: us
Nov 28 07:53:29 Doofenshmirtz display-manager[824]: Command: localectl set-keymap us
Nov 28 07:53:30 Doofenshmirtz display-manager[824]: I: Using systemd /usr/share/systemd/kbd-model-map mapping
Nov 28 07:53:31 Doofenshmirtz systemd[1]: PID file /var/run/displaymanager.pid not readable (yet?) after start.
Nov 28 07:53:31 Doofenshmirtz display-manager[824]: Starting service kdm..done
Nov 28 07:53:31 Doofenshmirtz kdm_config[884]: Multiple occurrences of section [General] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 07:53:31 Doofenshmirtz kdm_config[884]: Multiple occurrences of section [Xdmcp] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 07:53:31 Doofenshmirtz kdm_config[884]: Multiple occurrences of section [X-*-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 07:53:31 Doofenshmirtz kdm_config[884]: Multiple occurrences of section [X-*-Greeter] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 07:53:31 Doofenshmirtz kdm_config[884]: Multiple occurrences of key 'Language' in section [X-*-Greeter] of /usr/share/kde4/config/kdm/kdmrc
Nov 28 07:53:31 Doofenshmirtz kdm_config[884]: Multiple occurrences of section [X-:*-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 07:53:31 Doofenshmirtz systemd[1]: Started X Display Manager.
Nov 28 07:53:32 Doofenshmirtz kdm[883]: plymouth is running
Nov 28 07:53:36 Doofenshmirtz kdm[883]: plymouth is active on VT 7, reusing for :0
Nov 28 07:53:36 Doofenshmirtz kdm[883]: plymouth should quit after server startup
Nov 28 07:53:57 Doofenshmirtz kdm[883]: Quitting Plymouth with transition
Nov 28 07:53:57 Doofenshmirtz kdm[883]: Is Plymouth still running? no
Nov 28 07:54:27 Doofenshmirtz kdm_greet[1461]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory
Nov 28 07:54:37 Doofenshmirtz kdm[1315]: :0[1315]: pam_unix(xdm:session): session opened for user sharone by (uid=0)
Nov 28 08:02:11 Doofenshmirtz systemd[1]: Stopping X Display Manager...
Nov 28 08:02:18 Doofenshmirtz display-manager[2445]: Shutting down service kdm..done
Nov 28 08:02:22 Doofenshmirtz systemd[1]: Starting X Display Manager...
Nov 28 08:02:23 Doofenshmirtz display-manager[2486]: /etc/vconsole.conf available
Nov 28 08:02:23 Doofenshmirtz display-manager[2486]: KEYMAP: us
Nov 28 08:02:23 Doofenshmirtz display-manager[2486]: Command: localectl set-keymap us
Nov 28 08:02:23 Doofenshmirtz display-manager[2486]: I: Using systemd /usr/share/systemd/kbd-model-map mapping
Nov 28 08:02:24 Doofenshmirtz display-manager[2486]: Starting service kdm..done
Nov 28 08:02:24 Doofenshmirtz systemd[1]: PID file /var/run/displaymanager.pid not readable (yet?) after start.
Nov 28 08:02:25 Doofenshmirtz kdm_config[2511]: Multiple occurrences of section [General] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:02:25 Doofenshmirtz kdm_config[2511]: Multiple occurrences of section [Xdmcp] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:02:25 Doofenshmirtz kdm_config[2511]: Multiple occurrences of section [X-*-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:02:25 Doofenshmirtz kdm_config[2511]: Multiple occurrences of section [X-*-Greeter] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:02:25 Doofenshmirtz systemd[1]: Started X Display Manager.
Nov 28 08:02:25 Doofenshmirtz kdm[2510]: plymouth is NOT running
Nov 28 08:03:11 Doofenshmirtz kdm_greet[2531]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory
Nov 28 08:03:22 Doofenshmirtz kdm[2530]: :0[2530]: pam_unix(xdm:session): session opened for user sharone by (uid=0)
-- Reboot --
Nov 28 08:05:44 Doofenshmirtz systemd[1]: Starting X Display Manager...
Nov 28 08:05:44 Doofenshmirtz display-manager[840]: /etc/vconsole.conf available
Nov 28 08:05:44 Doofenshmirtz display-manager[840]: KEYMAP: us
Nov 28 08:05:44 Doofenshmirtz display-manager[840]: Command: localectl set-keymap us
Nov 28 08:05:44 Doofenshmirtz display-manager[840]: I: Using systemd /usr/share/systemd/kbd-model-map mapping
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [General] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [Xdmcp] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [X-*-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [X-*-Greeter] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of key 'Language' in section [X-*-Greeter] of /usr/share/kde4/config/kdm/kdmrc
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [X-:*-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm[885]: plymouth is running
Nov 28 08:05:44 Doofenshmirtz kdm[885]: plymouth is active on VT 7, reusing for :0
Nov 28 08:05:44 Doofenshmirtz kdm[885]: plymouth should quit after server startup
Nov 28 08:05:44 Doofenshmirtz display-manager[840]: Starting service kdm..done
Nov 28 08:05:44 Doofenshmirtz systemd[1]: Started X Display Manager.
Nov 28 08:05:44 Doofenshmirtz kdm[885]: Quitting Plymouth with transition
Nov 28 08:05:44 Doofenshmirtz kdm[885]: Is Plymouth still running? no
Nov 28 08:05:45 Doofenshmirtz kdm_greet[961]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory
Nov 28 08:05:48 Doofenshmirtz kdm[959]: :0[959]: pam_unix(xdm:session): session opened for user sharone by (uid=0)


systemctl get-default

graphical.target

No errors reported from display-manager before you need to restart it?

sudo systemctl status display-manager

You could also check log relating to kdm…

sudo journalctl -b |grep kdm

I probably should have shared logs/report before starting the service.

Here you go;

systemctl status display-manager
display-manager.service - X Display Manager
   Loaded: loaded (/usr/lib/systemd/system/display-manager.service; disabled)
   Active: active (running) since Mon 2016-11-28 08:05:44 EAT; 4h 38min ago
  Process: 840 ExecStart=/usr/lib/X11/display-manager start (code=exited, status=0/SUCCESS)
 Main PID: 885 (kdm)
   CGroup: /system.slice/display-manager.service
           ├─885 /usr/bin/kdm
           └─906 /usr/bin/X :0 vt7 -nolisten tcp -seat seat0 -auth /var/lib/kdm/AuthFiles/A:0-uMvErc

Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [X-:*-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm[885]: plymouth is running
Nov 28 08:05:44 Doofenshmirtz kdm[885]: plymouth is active on VT 7, reusing for :0
Nov 28 08:05:44 Doofenshmirtz kdm[885]: plymouth should quit after server startup
Nov 28 08:05:44 Doofenshmirtz display-manager[840]: Starting service kdm..done
Nov 28 08:05:44 Doofenshmirtz systemd[1]: Started X Display Manager.
Nov 28 08:05:44 Doofenshmirtz kdm[885]: Quitting Plymouth with transition
Nov 28 08:05:44 Doofenshmirtz kdm[885]: Is Plymouth still running? no
Nov 28 08:05:45 Doofenshmirtz kdm_greet[961]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory
Nov 28 08:05:48 Doofenshmirtz kdm[959]: :0[959]: pam_unix(xdm:session): session opened for user sharone by (uid=0)
journalctl -b |grep kdm
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [General] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [Xdmcp] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [X-*-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [X-*-Greeter] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of key 'Language' in section [X-*-Greeter] of /usr/share/kde4/config/kdm/kdmrc
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [X-:*-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm_config[886]: Multiple occurrences of section [X-:0-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 28 08:05:44 Doofenshmirtz kdm[885]: plymouth is running
Nov 28 08:05:44 Doofenshmirtz kdm[885]: plymouth is active on VT 7, reusing for :0
Nov 28 08:05:44 Doofenshmirtz kdm[885]: plymouth should quit after server startup
Nov 28 08:05:44 Doofenshmirtz display-manager[840]: Starting service kdm..done
Nov 28 08:05:44 Doofenshmirtz kdm[885]: Quitting Plymouth with transition
Nov 28 08:05:44 Doofenshmirtz kdm[885]: Is Plymouth still running? no
Nov 28 08:05:45 Doofenshmirtz kdm_greet[961]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory
Nov 28 08:05:48 Doofenshmirtz kdm[959]: :0[959]: pam_unix(xdm:session): session opened for user sharone by (uid=0)

None of your logs explain, why you need to restart display-manager.service, nor is it clear how to relate your logs to the time when you restart. Please start with telling us why you need to restart service. What does not work without restarting.

systemctl status display-manager display-manager.service - X Display Manager
   Loaded: loaded (/usr/lib/systemd/system/display-manager.service; disabled

I am not yet a guru with systemd but it seems your display manager service is disabled. I do not think this is normal behavior.

Did you somehow remove it?

What does:

systemctl reenable display-manager.service

You could also probably restart KDM:

systemctl restart kdm.service

I just run this command, just rebooted and it works.

systemctl reenable display-manager.service