Announcement

Collapse
No announcement yet.

Very SLOW shut down/reboot

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Very SLOW shut down/reboot

    I have a Kubuntu 16.04.1
    CPU: Intel Core i5-4590 CPU @ 4x 3.7GHz
    GPU: GeForce GTX 970
    NVIDIA-SMI 361.42 Driver Version: 361.42

    Ever since switching to nvidia from nouveau, the shut down/reboot is atrocious.
    A fresh install was fine but installing nvidia does this

    Here's a chronological list of a reboot:

    0:00 Reboot, Desktop closing
    0:10 No Signal Monitor Message
    0:45 Screen goes black for second then returns
    0:46 No Signal Monitor Message
    2:00 Harddrives spin
    2:05 Post
    2:30 Kubuntu logo
    3:00 Login

    If this is an inapproprate forum category, I didn't know which was better (no Installation category?)
    KDE neon LTS 5.12

    #2
    Only a usb key and logitech unifier occupying usb slots.

    no encrypted drives.

    KDE neon LTS 5.12

    Comment


      #3
      In a console issue:
      sudo systemd-analyze blame
      and examine the output. The listing will be in the order of most time used to least time used.
      Mine shows:
      7.924s dev-sda1.device
      7.006s NetworkManager-wait-online.service
      4.604s systemd-journal-flush.service
      4.450s console-setup.service
      4.433s networking.service
      3.756s ondemand.service
      3.569s systemd-logind.service
      3.510s apport.service
      3.473s lm-sensors.service
      3.468s rsyslog.service
      3.415s avahi-daemon.service
      2.957s NetworkManager.service
      2.816s ufw.service
      2.732s ModemManager.service
      2.496s upower.service
      1.974s accounts-daemon.service
      1.641s gpu-manager.service
      1.586s systemd-udevd.service
      1.239s irqbalance.service
      1.181s systemd-tmpfiles-setup-dev.service
      1.082s systemd-modules-load.service
      947ms systemd-journald.service
      856ms packagekit.service
      762ms ssh.service
      746ms grub-common.service
      728ms binfmt-support.service
      727ms ebtables.service
      716ms keyboard-setup.service
      587ms polkitd.service
      556ms systemd-tmpfiles-setup.service
      539ms colord.service
      534ms systemd-backlight@backlight:acpi_video0.service
      457ms motion.service
      442ms icecast2.service
      341ms setvtrgb.service
      338ms plymouth-read-write.service
      313ms resolvconf.service
      254ms proc-sys-fs-binfmt_misc.mount
      228ms systemd-fsck@dev-disk-by\x2duuid-f2fc7b5a\x2dc52b\x2d4f60\x2d8af9\x2da6375752985f.s ervice
      214ms systemd-user-sessions.service
      208ms systemd-update-utmp.service
      207ms kmod-static-nodes.service
      204ms openvpn.service
      190ms dev-hugepages.mount
      176ms rtkit-daemon.service
      162ms udisks2.service
      150ms pppd-dns.service
      150ms systemd-udev-trigger.service
      148ms wpa_supplicant.service
      141ms systemd-rfkill.service
      137ms systemd-remount-fs.service
      116ms home.mount
      114ms systemd-sysctl.service
      95ms sddm.service
      77ms dev-mqueue.mount
      76ms user@1000.service
      74ms sys-kernel-debug.mount
      73ms systemd-random-seed.service
      71ms systemd-timesyncd.service
      58ms xfstt.service
      43ms alsa-restore.service
      42ms systemd-tmpfiles-clean.service
      41ms hddtemp.service
      12ms plymouth-quit.service
      5ms systemd-update-utmp-runlevel.service
      5ms ureadahead-stop.service
      5ms sys-fs-fuse-connections.mount
      4ms rc-local.service
      4ms systemd-backli
      Adding the times you can see that it takes over a minute for my system to boot up to the login screen and another minute for a working desktop to appear. It takes that long or more to shut down.
      Last edited by GreyGeek; Sep 05, 2016, 12:54 PM.
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #4
        34.006 ModemManager.service 34.006
        33.997 gpu-manager.service 33.997
        596 dev-sdc1.device 0.596
        250 console-setup.service 0.25
        196 systemd-rfkill.service 0.196
        175 networking.service 0.175
        170 accounts-daemon.service 0.17
        152 grub-common.service 0.152
        150 systemd-fsck@dev-disk-by\x2duuid-75d...f4e0b.s ervice 0.15
        150 upower.service 0.15
        134 systemd-logind.service 0.134
        112 apport.service 0.112
        112 ondemand.service 0.112
        109 irqbalance.service 0.109
        98 NetworkManager.service 0.098
        79 rsyslog.service 0.079
        79 alsa-restore.service 0.079
        76 systemd-user-sessions.service 0.076
        76 iio-sensor-proxy.service 0.076
        75 bluetooth.service 0.075
        74 pppd-dns.service 0.074
        74 apparmor.service 0.074
        74 avahi-daemon.service 0.074
        67 thermald.service 0.067
        50 plymouth-quit.service 0.05
        44 systemd-udev-trigger.service 0.044
        40 keyboard-setup.service 0.04
        40 mnt-FH_WD_BLACK_FILES.mount 0.04
        37 systemd-journald.service 0.037
        TOTAL 71.292

        71 seconds.

        But my shutdown is 120 sec and from post to desktop another 60 sec

        Do you recognize these services at the top?

        thanks greygeek
        KDE neon LTS 5.12

        Comment


          #5
          I ran:
          sudo systemctl stop ModemManager.service
          sudo systemctl disable ModemManager.service

          Now sudo systemd-analyze blame yields (3.5 sec)??
          587ms snapd.refresh.service
          407ms gpu-manager.service
          372ms dev-sdc1.device
          245ms systemd-fsck@dev-disk-by\x2duuid-75d...f4e0b.s ervice
          151ms upower.service
          113ms systemd-fsck@dev-disk-by\x2duuid-A4E0\x2d0DEF.service
          112ms accounts-daemon.service
          96ms mnt-FH_WD_BLACK_FILES.mount
          ...

          But now it is 1:55 from pressing reboot to POST and another 55 sec to reach desktop.

          But running systemd-analyze again shows:
          34.043s accounts-daemon.service
          33.935s gpu-manager.service
          33.876s setvtrgb.service
          33.825s plymouth-quit.service
          387ms dev-sdc1.device
          293ms console-setup.service
          ...
          KDE neon LTS 5.12

          Comment


            #6
            Carla Schroder does an excellent job in describing how to clean your system in this article.

            It explains the commonly used services, what they do, why you need them or not, and how to disable the ones you decided that you don't need.

            Your biggies are:
            ModemManager.service is a DBus-activated daemon that controls mobile broadband (2G/3G/4G) interfaces. If you don't have a mobile broadband interface -- built-in, paired with a mobile phone via Bluetooth, or USB dongle -- you don't need this.

            gpu-manager.service - Detect the available GPUs and deal with any system changes
            and you stopped and disabled the first. You can also uninstall it.

            You have both an intell internal gpu and a secondary gpu, NVIDIA. Is your NVIDIA selectable in the BIOS to be the prime gpu? If so, then set the BIOS to make it the primary GPU. (Mine wasn't, so I had to use BumbleBee to use it to run graphical apps that I wanted to accelerate).

            This article explains how to use BumbleBee. Once you get your GPU configured properly I suspect that your account services and other lags will resolve themselves.
            Last edited by GreyGeek; Sep 07, 2016, 10:43 AM.
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment


              #7
              Thank you SO MUCH GreyGeek.

              Great article. I will test disabling various services and return with my results.
              KDE neon LTS 5.12

              Comment


                #8
                It shaved off some seconds but still 2 min to reboot.

                Tried KDE Neon 5.7.5 on another partition and wow, less than 20 seconds for full reboot.

                Then I installed nVidia drivers and now it is slow just like Kubuntu is. WIth the same black screen at about the 40 sec point. +2min to get to POST.

                This seems to come down to nVidia and systemd.

                14.10 has no problem and is very fast to reboot.

                But 16.04 with nVidia drivers seems to cause this. (on Kubuntu,Neon and Mate)

                I'm not finding much on google.
                KDE neon LTS 5.12

                Comment


                  #9
                  34.043s accounts-daemon.service
                  33.935s gpu-manager.service
                  33.876s setvtrgb.service
                  33.825s plymouth-quit.service
                  Accounts-daemon.service is pulled in by graphical.target. The gpu-manager.service "Detect the available GPUs and deal with any system changes". setvrgb.service is also related to your display.
                  All four are having problems setting themselves up with either/or NVIDIA or Intell's GPU.

                  You have a config problem, probably on your NVIDIA, since Intel usually uses the i915 driver.

                  How about
                  systemd-analyze critical-chain
                  Last edited by GreyGeek; Sep 18, 2016, 07:31 PM.
                  "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                  – John F. Kennedy, February 26, 1962.

                  Comment

                  Working...
                  X