LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   HP 17-x170ng slow bootup (https://www.linuxquestions.org/questions/linux-newbie-8/hp-17-x170ng-slow-bootup-4175625539/)

Rogi_n 03-14-2018 03:47 AM

HP 17-x170ng slow bootup
 
I recently bought a new laptop. Thing is it boots up slower than old and has some delays even when I'm only using terminal etc..
I think It could be in the BIOS but it has no ADVANCED option :newbie:
http://i64.tinypic.com/rtf29i.jpg
https://streamable.com/s/vcb7t/cupbdp
Help needed :)

ondoho 03-15-2018 03:03 AM

i don't know what you linked there, i cannot see it.

please tell us more about this machine - specs.
is it slow only during boot?
what are you comparing with (hardware, distro)?
did you already install or is it still in live mode?

also post output from:
Code:

uname -rv
lspci -k


syg00 03-15-2018 03:13 AM

@ondoho, turn noscript off .... ;) - at least you can see the (first) image.
@Rogi_n, we need more info - what distro, what messages ...

AwesomeMachine 03-15-2018 06:39 AM

When you compare the new lappy and the old one, is it with the same operating system? How long of a boot are we talking about? Is it scrolling the whole time, or does it stop and wait?

JZL240I-U 03-15-2018 09:31 AM

If your System starts with systemd try the commands shown here:

https://wiki.ubuntuusers.de/systemd/systemd-analyze/

I found particularly helpful "sudo systemd-analyze plot" and "sudo systemd-analyze blame", the latter spelling out the exact time used for starting the Services.

beachboy2 03-15-2018 10:59 AM

Rogi_n,

Welcome to LQ.

Which Linux distro are you using?
Your HP laptop with 8GB of RAM and an Intel i5-7200U CPU should be no slouch, regardless of distro.

There is no Advanced option in the BIOS of recent HP laptops. I have a similar InsydeH20 BIOS to your one.

@JZL240I-U,

Thanks for the link about systemd.
Unfortunately the only German I use is, “Noch ein bier bitte” and “Ein fassbier bitte”.

For others with limited German, try this Ubuntu page:
http://manpages.ubuntu.com/manpages/...analyze.1.html

https://askubuntu.com/questions/1009...-blame-results

JZL240I-U 03-15-2018 11:05 AM

Quote:

Originally Posted by beachboy2 (Post 5831304)
...
@JZL240I-U,

Thanks for the link about systemd.
Unfortunately the only German I use is, “Noch ein bier bitte” and “Ein fassbier bitte”.


Dear me, you must be thirsty, ordering an entire keg of beer :D. Though I have known situations like that...

Quote:

Originally Posted by beachboy2 (Post 5831304)



Sorry, switching between languages all day I overlooked that when I posted the link :(.

beachboy2 03-15-2018 11:07 AM

JZL240I-U,

Maybe it was "ein bier vom fass".

JZL240I-U 03-15-2018 11:10 AM

Quote:

Originally Posted by beachboy2 (Post 5831307)
JZL240I-U,

Maybe it was "ein bier vom fass".



As a rule you would get that anyhow in Germany, you'd need to stress it only when you want to make that really clear.


Ahh, but tonight I will have some bottles with my son :).

Rogi_n 03-16-2018 05:21 AM

Quote:

Originally Posted by ondoho (Post 5831154)
i don't know what you linked there, i cannot see it.

please tell us more about this machine - specs.
is it slow only during boot?
what are you comparing with (hardware, distro)?
did you already install or is it still in live mode?

also post output from:
Code:

uname -rv
lspci -k


Code:

[root@Host risto]# uname -rv
4.15.6-300.fc27.x86_64 #1 SMP Mon Feb 26 18:43:03 UTC 2018
[root@Host risto]# lspci -k
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
        Subsystem: Hewlett-Packard Company Device 828b
libkmod: kmod_config_parse: /etc/modprobe.d/rtl8723be.conf line 1: ignoring bad line starting with 'option'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: i915
        Kernel modules: i915
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: proc_thermal
        Kernel modules: processor_thermal_device
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: xhci_hcd
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: ahci
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: intel_pmc_core
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_skl
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445] (rev 83)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 07)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: r8169
        Kernel modules: r8169
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
        Subsystem: Hewlett-Packard Company Device 81c1
        Kernel driver in use: rtl8723be
        Kernel modules: rtl8723be
[root@Host risto]#

Uploaded the video to youtube so you can see it :)
YouTube Link
The older laptop has i3 4GB ram | New (bigger in video) HP laptop has i5 with 8GB ram with better graphics card - Both running fresh installs of fedora.

Rogi_n 03-16-2018 05:53 AM

Code:

[root@Host risto]# uname -rv
4.15.6-300.fc27.x86_64 #1 SMP Mon Feb 26 18:43:03 UTC 2018
[root@Host risto]# lspci -k
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
        Subsystem: Hewlett-Packard Company Device 828b
libkmod: kmod_config_parse: /etc/modprobe.d/rtl8723be.conf line 1: ignoring bad line starting with 'option'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: i915
        Kernel modules: i915
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: proc_thermal
        Kernel modules: processor_thermal_device
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: xhci_hcd
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: ahci
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: intel_pmc_core
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_skl
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445] (rev 83)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 07)
        Subsystem: Hewlett-Packard Company Device 828b
        Kernel driver in use: r8169
        Kernel modules: r8169
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
        Subsystem: Hewlett-Packard Company Device 81c1
        Kernel driver in use: rtl8723be
        Kernel modules: rtl8723be
[root@Host risto]#

Old DELL laptop has i3 4GM ram | New HP laptop has i5 8GB ram
Both fresh installs of Fedora
Uploaded a video to YouTube - LINK

Rogi_n 03-16-2018 06:00 AM

Quote:

Originally Posted by JZL240I-U (Post 5831272)
If your System starts with systemd try the commands shown here:

https://wiki.ubuntuusers.de/systemd/systemd-analyze/

I found particularly helpful "sudo systemd-analyze plot" and "sudo systemd-analyze blame", the latter spelling out the exact time used for starting the Services.

Code:

sudo systemd-analyze blame
        28.853s systemd-journal-flush.service
        25.738s plymouth-quit-wait.service
        19.593s udisks2.service
        12.614s dkms.service
        12.581s dracut-initqueue.service
        10.794s NetworkManager.service
        10.595s sssd.service
          9.818s firewalld.service
          9.516s NetworkManager-wait-online.service
          8.762s libvirtd.service
          8.080s vboxdrv.service
          7.554s lvm2-monitor.service
          6.553s dev-mapper-fedora_host\x2droot.device
          6.534s systemd-udev-settle.service
          4.679s initrd-switch-root.service
          3.492s polkit.service
          3.439s systemd-rfkill.service
          2.580s abrtd.service
          2.134s wpa_supplicant.service
          2.052s systemd-tmpfiles-setup.service
          1.746s ModemManager.service
          1.657s dnf-makecache.service
          1.548s systemd-tmpfiles-setup-dev.service


JZL240I-U 03-16-2018 11:38 AM

Looks quite different from my results. Okay, please use "sudo systemd-analyze plot > boot.svg" (or any file name you like). Display the result in any suitable program (I used Gwenview). You'll get a plot with lots of pinkish columns (or lines). Look for the long deep-red ones and their labels -- they are the culprits. I disabled two services and accelerated boot time from > 40 seconds to less than 10 seconds...

ondoho 03-17-2018 02:27 AM

Quote:

Originally Posted by Rogi_n (Post 5831615)
Code:

sudo systemd-analyze blame
        28.853s systemd-journal-flush.service
        25.738s plymouth-quit-wait.service
        19.593s udisks2.service
        12.614s dkms.service
        12.581s dracut-initqueue.service
        10.794s NetworkManager.service
        10.595s sssd.service
          9.818s firewalld.service
          9.516s NetworkManager-wait-online.service
          8.762s libvirtd.service
          8.080s vboxdrv.service
          7.554s lvm2-monitor.service
          6.553s dev-mapper-fedora_host\x2droot.device
          6.534s systemd-udev-settle.service
          4.679s initrd-switch-root.service
          3.492s polkit.service
          3.439s systemd-rfkill.service
          2.580s abrtd.service
          2.134s wpa_supplicant.service
          2.052s systemd-tmpfiles-setup.service
          1.746s ModemManager.service
          1.657s dnf-makecache.service
          1.548s systemd-tmpfiles-setup-dev.service


something surely is wrong there.
i'm not using fedora, but i really wonder why it would take systemd 28s to flush the journal? it takes 1.9s on my - much weaker - system.
you need to investigate those services one by one.
they are ordered by how long they take (not by order of appearance), and that's the order i would investigate in.

AwesomeMachine 03-17-2018 02:49 AM

In the OP's video, obviously the system is waiting for long periods. Yes, it extends the boot time. But it really isn't fair to include the waits as part of the boot time, because you can get rid of them.


All times are GMT -5. The time now is 09:31 AM.