Manjaro booting is very slow (30/40sec)

Booting Manjaro is a very long process, 40 seconds in average.
But windows 10 boot second 5 seconds

My laptop :
Huawei D15 2020 AMD
AMD vega 8 graphic
Ryzen 5 3500u
SSD Samgun (3500r / 3000w) in only manjaro plasma minimal x64/86

How can I make manjaro boot faster?

I want to learn Linux. I want you to help me with the first vexing case. Make me love Linux guys

systemd-analyze blame                                                                           ✔ 
2.559s NetworkManager-wait-online.service
2.428s ModemManager.service
 693ms dev-nvme0n1p2.device
 421ms plymouth-quit.service
 227ms systemd-udev-trigger.service
 218ms boot-efi.mount
 216ms user@1000.service
 209ms plymouth-quit-wait.service
 207ms systemd-user-sessions.service
 206ms systemd-remount-fs.service
 177ms systemd-modules-load.service
 147ms systemd-tmpfiles-setup.service
 134ms systemd-tmpfiles-setup-dev.service
 118ms lvm2-monitor.service
 116ms modprobe@fuse.service
 111ms upower.service
 103ms systemd-vconsole-setup.service
 103ms systemd-rfkill.service
  92ms systemd-journald.service
  81ms systemd-journal-flush.service
  79ms systemd-random-seed.service
  76ms modprobe@drm.service
  67ms systemd-logind.service
  63ms systemd-tmpfiles-clean.service
  60ms plymouth-read-write.service
  57ms polkit.service

It seems to open fast. but the bios icon appears twice and it takes a long time

Discussed ad nauseam here. Forum search is your friend.

hint: systemctl disable network-manager-wait-online.service
Similarly, you most likely don’t need ModemManager.service on a modern computer unless you have dial-up internet. systemctl disable ModemManager.service

1 Like

Can you write the necessary codes to disable it? I only use wifi for internet

Yes, there are many questions, but my case is different. The boot screen comes up twice and then opens. I’m new to Linux.

systemctl disable Network-manager-wait-online.service  1 ✘
Failed to disable unit: Unit file Network-manager-wait-online.service does not exist.

you have a typo, that is why the command does not work. In terminal:

systemctl disable NetworkManager-wait-online.service
systemctl disable ModemManager.service

Please post systemd-analyze output and please read the following:

thank you sir

inxi -v7azy                                                                                                                                                            ✔ 
System:
  Kernel: 6.1.1-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=0c9ab668-2ba0-4edc-b365-10ae451b3198 rw quiet splash
    resume=/dev/nvme0n1p3
  Desktop: KDE Plasma v: 5.26.4 tk: Qt v: 5.15.7 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HUAWEI product: BOHK-WAX9X v: M1010
    serial: <superuser required>
  Mobo: HUAWEI model: BOHK-WAX9X-PCB v: M1010 serial: <superuser required>
    UEFI: HUAWEI v: 1.18 date: 03/30/2022
Battery:
  ID-1: BAT1 charge: 36.4 Wh (100.0%) condition: 36.4/41.6 Wh (87.6%)
    volts: 12.8 min: 11.5 model: Sunwoda-H HB4692J5ECW-31 type: Li-ion
    serial: <filter> status: full cycles: 260
Memory:
  RAM: total: 6.71 GiB used: 1.75 GiB (26.0%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx bits: 64
    type: MT MCP arch: Zen/Zen+ note: check gen: 1 level: v3 note: check
    built: 2019 process: GF 12nm family: 0x17 (23) model-id: 0x18 (24)
    stepping: 1 microcode: 0x8108109
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 384 KiB desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB L3: 4 MiB
    desc: 1x4 MiB
  Speed (MHz): avg: 1478 high: 2100 min/max: 1400/2100 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1400 2: 1400
    3: 1397 4: 1397 5: 1332 6: 1400 7: 1400 8: 2100 bogomips: 33550
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb
    cpuid cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c
    flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf
    lahf_lm lbrv lm mca mce misalignsse mmx mmxext monitor movbe msr mtrr
    mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat
    pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rapl rdrand rdseed rdtscp rep_good
    sep sev sev_es sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2
    sse4a ssse3 succor svm svm_lock syscall tce topoext tsc tsc_scale
    v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt xgetbv1 xsave xsavec
    xsaveerptr xsaveopt xsaves
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT vulnerable
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
    disabled, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    vendor: Huawei driver: amdgpu v: kernel arch: GCN-5 code: Vega
    process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 ports:
    active: eDP-1 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 03:00.0 chip-ID: 1002:15d8
    class-ID: 0300 temp: 61.0 C
  Device-2: IMC Networks ov9734_azurewave_camera type: USB driver: uvcvideo
    bus-ID: 1-4.2:5 chip-ID: 13d3:56f9 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.6 compositor: kwin_x11 driver: X:
    loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP model: BOE Display 0x0872 built: 2019
    res: 1920x1080 hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: OpenGL v: 4.6 Mesa 22.3.1 renderer: AMD Radeon Vega 8 Graphics (raven
    LLVM 14.0.6 DRM 3.49 6.1.1-1-MANJARO) direct render: Yes
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Huawei
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 03:00.1 chip-ID: 1002:15de class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Huawei
    driver: snd_pci_acp3x v: kernel
    alternate: snd_rn_pci_acp3x,snd_pci_acp5x,snd_pci_acp6x,snd_acp_pci,snd_rpl_pci_acp6x,snd_pci_ps,snd_sof_amd_renoir,snd_sof_amd_rembrandt
    pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 03:00.5 chip-ID: 1022:15e2
    class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Huawei driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 03:00.6
    chip-ID: 1022:15e3 class-ID: 0403
  Sound API: ALSA v: k6.1.1-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.63 running: no
Network:
  Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    vendor: & Tele RSH driver: rtw_8822ce v: N/A modules: rtw88_8822ce pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 02:00.0
    chip-ID: 10ec:c822 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 3-2:2 chip-ID: 1358:c123 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 238.47 GiB used: 10.46 GiB (4.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLB256HBHQ-00000
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: EXH7201Q temp: 40.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 229.37 GiB size: 224.71 GiB (97.97%) used: 10.46 GiB (4.7%)
    fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: 0c9ab668-2ba0-4edc-b365-10ae451b3198
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A
    uuid: F190-E2D0
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p3 maj-min: 259:3 label: swap
    uuid: 277b87e6-52c3-4c88-a61c-5cf42c8abf58
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-3:2 info: Xenta 2.4Ghz wireless optical mouse receiver
    type: Mouse,Keyboard driver: hid-generic,usbhid interfaces: 2 rev: 1.1
    speed: 12 Mb/s power: 100mA chip-ID: 1d57:130f class-ID: 0301
  Hub-2: 1-4:3 info: Genesys Logic Hub ports: 2 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0610 class-ID: 0900
  Device-1: 1-4.1:4 info: Shenzhen Goodix Fingerprint Device
    type: Communication,CDC-Data driver: N/A interfaces: 2 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 27c6:5110 class-ID: 0a00
    serial: <filter>
  Device-2: 1-4.2:5 info: IMC Networks ov9734_azurewave_camera type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 13d3:56f9 class-ID: 0e02 serial: <filter>
  Hub-3: 2-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-4: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-2:2 info: Realtek Bluetooth Radio type: Bluetooth driver: btusb
    interfaces: 2 rev: 1.0 speed: 12 Mb/s power: 500mA chip-ID: 1358:c123
    class-ID: e001 serial: <filter>
  Hub-5: 4-0:1 info: Super-speed hub ports: 1 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 60.2 C mobo: N/A gpu: amdgpu temp: 60.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 237 Uptime: 5m wakeups: 1 Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman
  pkgs: 1084 libs: 310 tools: pamac,yay Shell: Zsh v: 5.9 default: Bash
  v: 5.1.16 running-in: konsole inxi: 3.3.24

Check with Huawei support if there is a BIOS/UEFI update. Also it sounds like you are dual booting with Windows. If that is the case, make sure that Windows is always completely shutdown and hibernation, hybrid sleep and fastboot are disabled in Windows.

Also, if for some reason disabling does not work for NetworkManager-wait-online.service,
then mask the service:

systemctl mask NetworkManager-wait-online.service

SSD only has manjaro. No windows. Bios is up to date. But the bios screen comes up twice at startup. The first screen takes a long time. The second is fast. I turned off the internet service, sir. Boot up pretty fast but my first bios screen takes a long time