Results 1 to 8 of 8

Thread: display-manager service restart

  1. #1
    Join Date
    Apr 2014
    Location
    Kampala, Uganda
    Posts
    95

    Default 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?

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,279
    Blog Entries
    1

    Default Re: display-manager service restart

    That's not a normal thing to have to do....

    1) Is graphical.target set?
    Code:
    systemctl get-default
    2)Any errors reported by display-manager.service?
    Code:
    sudo journalctl -u display-manager

  3. #3
    Join Date
    Apr 2014
    Location
    Kampala, Uganda
    Posts
    95

    Default Re: display-manager service restart

    Quote Originally Posted by deano_ferrari View Post
    That's not a normal thing to have to do....

    1) Is graphical.target set?
    Code:
    systemctl get-default
    2)Any errors reported by display-manager.service?
    Code:
    sudo journalctl -u display-manager
    Here's my journal -u display-manager
    Code:
    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
    Code:
    graphical.target

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,279
    Blog Entries
    1

    Default Re: display-manager service restart

    No errors reported from display-manager before you need to restart it?
    Code:
    sudo systemctl status display-manager
    You could also check log relating to kdm...
    Code:
    sudo journalctl -b |grep kdm

  5. #5
    Join Date
    Apr 2014
    Location
    Kampala, Uganda
    Posts
    95

    Default Re: display-manager service restart

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

    Here you go;

    Code:
    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)

    Code:
    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)

  6. #6
    Join Date
    Sep 2012
    Posts
    5,024

    Default Re: display-manager service restart

    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.

  7. #7

    Default Re: display-manager service restart

    Code:
    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:

    Code:
    systemctl reenable display-manager.service
    You could also probably restart KDM:

    Code:
    systemctl restart kdm.service

  8. #8
    Join Date
    Apr 2014
    Location
    Kampala, Uganda
    Posts
    95

    Default Re: display-manager service restart

    Quote Originally Posted by tinylagarto View Post
    Code:
    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:

    Code:
    systemctl reenable display-manager.service
    You could also probably restart KDM:

    Code:
    systemctl restart kdm.service
    I just run this command, just rebooted and it works.

    Code:
    systemctl reenable display-manager.service

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •