Very long firmware boot time

My firmware takes a very long time to launch. Running systemd-analyze gives me:

Startup finished in 2.912s (firmware) + 2min 56.554s (loader) + 11.580s (kernel) + 5.216s (userspace) = 3min 16.264s 

I have a problem with long boot time. It lasts 3 min. 16 sec or more. Can someone help me with this? Thanks.

$systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @4.901s
└─multi-user.target @4.900s
  └─ModemManager.service @4.482s +416ms
    └─polkit.service @4.188s +288ms
      └─basic.target @4.164s
        └─sockets.target @4.164s
          └─dbus.socket @4.164s
            └─sysinit.target @4.158s
              └─systemd-backlight@backlight:intel_backlight.service @4.229s +19ms
                └─system-systemd\x2dbacklight.slice @4.226s
                  └─system.slice @383ms
                    └─-.slice @383ms   

uname -a

Linux Manjjj 5.10.105-1-MANJARO #1 SMP PREEMPT Fri Mar 11 14:12:33 UTC 2022 x86_64 GNU/Linux

Hi @Manjjj,

I’m not :100: about this, but this :point_down: looks like the boot loader, not the firmware.

Which boot loader do you use? If grub, please post the output of:

cat /etc/default/grub

If not, I don’t know.

Also, have a look here:

and please provide more information. Also, should it be necessary:

Hope you manage!

1 Like

cat /etc/default/grub

GRUB_TIMEOUT="5"
GRUB_TIMEOUT_STYLE="grub"
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=b518f78c-9fff-4d32-a73f-02f67fd282a6 :luks-b518f78c-9fff-4d32-a73f-02f67fd282a6 :allow-discards root=/dev/mapper/luks-b518f78c-9fff-4d32-a73f-02f67fd282a6  rd.luks.options=discard resume=/dev/mapper/luks-b518f78c-9fff-4d32-a73f-02f67fd282a6  resume_offset=2506752 splash apparmor=1 security=apparmor  ipv6.disable=1 "
GRUB_CMDLINE_LINUX="ipv6.disable=1 "

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT="true"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK="y"

# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"

# Uncomment to disable graphical terminal
GRUB_TERMINAL_OUTPUT="gfxterm"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE="1024x768"

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX="1024x768"

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
GRUB_ENABLE_CRYPTODISK="y"

#GRUB_HIDDEN_TIMEOUT="0"

# Uncomment this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false  

All looks good from what I can see. But I’m no expert, so please provide the other info as requested so that it’'s there for someone that can tell you more than me.

1 Like

I every time i logout and login ,I have 2 minutes delay.(just login after enter password)
Output jounalctl

Apr 11 09:01:23 systemd[1004]: bamfdaemon.service: Failed with result 'exit-code'.
Apr 11 09:01:23 pulseaudio[1149]: Error opening PCM device front:1: No such file or directory
Apr 11 09:01:23 pulseaudio[1149]: Error opening PCM device front:1: No such file or directory
Apr 11 09:01:23 bamfdaemon[25615]: cannot open display: :0
Apr 11 09:01:23 systemd[1004]: bamfdaemon.service: Failed with result 'exit-code'.
Apr 11 09:01:23 systemd[1004]: Failed to start BAMF Application Matcher Framework.
Apr 11 09:01:24 bamfdaemon[25621]: cannot open display: :0
Apr 11 09:01:24 systemd[1004]: bamfdaemon.service: Failed with result 'exit-code'.
Apr 11 09:01:24 systemd[1004]: Failed to start BAMF Application Matcher Framework.
Apr 11 09:01:24 bamfdaemon[25644]: cannot open display: :0
Apr 11 09:01:24 systemd[1004]: bamfdaemon.service: Failed with result 'exit-code'.
Apr 11 09:01:24 systemd[1004]: Failed to start BAMF Application Matcher Framework.
Apr 11 09:01:25 bamfdaemon[25685]: cannot open display: :0
Apr 11 09:01:25 systemd[1004]: bamfdaemon.service: Failed with result 'exit-code'.
Apr 11 09:01:25 systemd[1004]: Failed to start BAMF Application Matcher Framework.
Apr 11 09:01:25 bamfdaemon[25686]: cannot open display: :0
Apr 11 09:01:25 systemd[1004]: bamfdaemon.service: Failed with result 'exit-code'.
Apr 11 09:01:25 systemd[1004]: Failed to start BAMF Application Matcher Framework.
Apr 11 09:01:25 systemd[1004]: bamfdaemon.service: Start request repeated too quickly.
Apr 11 09:01:25 systemd[1004]: bamfdaemon.service: Failed with result 'exit-code'.
Apr 11 09:01:25 systemd[1004]: Failed to start BAMF Application Matcher Framework.
Apr 11 09:01:32 lightdm[25680]: gkr-pam: unable to locate daemon control file
Apr 11 09:04:37 xfconfd[1116]: Got G_TYPE_STRV.  Shouldn't happen anymore, right?

Do you know what this is?
Do you have Unity?
Do you use some kind of dock?

Is bamf installed? Check with:

pamac search bamf

For example:

$ pamac search bamf
bamf-ubuntu-bzr                                                                                                                                                                                                           r655-1                  AUR
Application matching framework (development version with Canonical patches)
bamf-ubuntu                                                                                                                                                                                                               0.5.3.16.10.20160929-1  AUR
Removes the headache of applications matching into a simple DBus daemon and c wrapper library
bamf                                                                                                                                                                                                                      0.5.5-2                 community
Application matching framework

if it is installed, it’ll have an [Installed] label next to it.

1 Like

1:I dont know
2:No i dont have Unity
3: plank and conky
pamac search bamf

bamf-ubuntu-bzr                                                                         r655-1                  AUR 
    Application matching framework (development version with Canonical patches)
bamf-ubuntu                                                                             0.5.3.16.10.20160929-1  AUR 
    Removes the headache of applications matching into a simple DBus daemon and c
    wrapper library
bamf                                                                        [Installed] 0.5.5-2                 community 
    Application matching framework                                                                                   

Yes, installed
Do you have to remove?

Try it and see if there are any dependencies that’ll be removed along with it:

pamac remove bamf

If it’s safe and there are no dependencies go ahead and try.

1 Like

Thank you

1 Like

After update i can’t login xfce
Show error
Lightdm[1016]:gkr-pam: unable to locate daemon control file

I add /etc/profile
XDG_RUNTIME_DIR=/run/user/$UID
But not solved my the problem still show errer
How to solved?
Thanks

I added exactly the same text: Do I have to write $UID instead of my uid?

I’m trying again
encountered these errors
systemd[1106]: Failed to start BAMF Application Matcher Framework.
systemd[1106]: Failed to start BAMF Application Matcher Framework.
systemd[1106]: Failed to start BAMF Application Matcher Framework.
systemd[1106]: Failed to start BAMF Application Matcher Framework.
Lightdm[1016]:gkr-pam: unable to locate daemon control file

I completely updated manjaro four months later
My only problem is that after entering the password login , the xfce will not load
I will list the relevant errors below
Journalctl
Lightdm[1106]:gkr-pam: unable to locate daemon control file
Lightdm[1106]:gkr-pam:stashed password to try later in open session
Lightdm[1106]:gkr-pam: gkr-pam gnome-keyring-daemon started properly and unlocked keyring

If I can not solve the problem
I have to go back to the update four months ago
Thanks

can you check in .pacnew files

1 Like

can you provide

inxi -Fza

I returned the system to the previous update and re-updated
My problem is after login ,two minutes will take the system above
After a few times logout and login ( take two minutes)
The problem (long time) is related to the log

Apr 10 22:59:58 Manjjj Tor[841]: Bridge 'Unnamed' has both an IPv4 and an IPv6 address.  Will prefer using its IPv4 address (90.45.162.27:443) based on the configured Bridge address.
Apr 10 23:00:51 Manjjj dbus-daemon[1036]: [session uid=1000 pid=1036] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.4' (uid=1000 pid=1028 comm="xfce4-session ")
Apr 10 23:00:51 Manjjj systemd[1015]: Starting Virtual filesystem service...
Apr 10 23:00:51 Manjjj dbus-daemon[1036]: [session uid=1000 pid=1036] Successfully activated service 'org.gtk.vfs.Daemon'
Apr 10 23:00:51 Manjjj systemd[1015]: Started Virtual filesystem service.
Apr 10 23:00:51 Manjjj dbus-daemon[1036]: [session uid=1000 pid=1036] Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.7' (uid=1000 pid=1028 comm="xfce4-session ")
Apr 10 23:00:51 Manjjj systemd[1015]: Starting Accessibility services bus...
Apr 10 23:00:51 Manjjj dbus-daemon[1036]: [session uid=1000 pid=1036] Successfully activated service 'org.a11y.Bus'
Apr 10 23:00:51 Manjjj systemd[1015]: Started Accessibility services bus.
Apr 10 23:00:51 Manjjj dbus-daemon[1036]: [session uid=1000 pid=1036] Activating service name='org.xfce.Xfconf' requested by ':1.4' (uid=1000 pid=1028 comm="xfce4-session ")
Apr 10 23:00:51 Manjjj dbus-daemon[1036]: [session uid=1000 pid=1036] Successfully activated service 'org.xfce.Xfconf'
Apr 10 23:00:51 Manjjj at-spi-bus-launcher[1123]: dbus-daemon[1123]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=1000 pid=1028 comm="xfce4-session ")
Apr 10 23:00:51 Manjjj at-spi-bus-launcher[1123]: dbus-daemon[1123]: Successfully activated service 'org.a11y.atspi.Registry'
Apr 10 23:00:51 Manjjj at-spi-bus-launcher[1131]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Apr 10 23:00:51 Manjjj dbus-daemon[1036]: [session uid=1000 pid=1036] Activating service name='org.xfce.ScreenSaver' requested by ':1.4' (uid=1000 pid=1028 comm="xfce4-session ")
Apr 10 23:00:51 Manjjj dbus-daemon[1036]: [session uid=1000 pid=1036] Successfully activated service 'org.xfce.ScreenSaver'
Apr 10 23:00:52 Manjjj systemd[1015]: Started GnuPG cryptographic agent and passphrase cache.
Apr 10 23:00:52 Manjjj gpg-agent[1144]: gpg-agent (GnuPG) 2.2.32 starting in supervised mode.
Apr 10 23:00:52 Manjjj gpg-agent[1144]: using fd 3 for extra socket (/run/user/1000/gnupg/S.gpg-agent.extra)
Apr 10 23:00:52 Manjjj gpg-agent[1144]: using fd 4 for browser socket (/run/user/1000/gnupg/S.gpg-agent.browser)
Apr 10 23:00:52 Manjjj gpg-agent[1144]: using fd 5 for std socket (/run/user/1000/gnupg/S.gpg-agent)
Apr 10 23:00:52 Manjjj gpg-agent[1144]: using fd 6 for ssh socket (/run/user/1000/gnupg/S.gpg-agent.ssh)
Apr 10 23:00:52 Manjjj gpg-agent[1144]: listening on: std=5 extra=3 browser=4 ssh=6
Apr 10 23:00:52 Manjjj systemd[1015]: Started GnuPG cryptographic agent and passphrase cache.
Apr 10 23:00:52 Manjjj gpg-agent[1147]: gpg-agent (GnuPG) 2.2.32 starting in supervised mode.
Apr 10 23:00:52 Manjjj gpg-agent[1147]: using fd 3 for extra socket (/run/user/1000/gnupg/S.gpg-agent.extra)
Apr 10 23:00:52 Manjjj gpg-agent[1147]: using fd 4 for browser socket (/run/user/1000/gnupg/S.gpg-agent.browser)
Apr 10 23:00:52 Manjjj gpg-agent[1147]: using fd 5 for std socket (/run/user/1000/gnupg/S.gpg-agent)
Apr 10 23:00:52 Manjjj gpg-agent[1147]: using fd 6 for ssh socket (/run/user/1000/gnupg/S.gpg-agent.ssh)
Apr 10 23:00:52 Manjjj gpg-agent[1147]: listening on: std=5 extra=3 browser=4 ssh=6
Apr 10 23:00:52 Manjjj systemd[1015]: Created slice User Core Session Slice.
Apr 10 23:00:52 Manjjj systemd[1015]: Starting Sound Service...

Me through command systemd-analyze blame
I checked services no problem in the delay, all services is time normal
Can someone help?

Apr 10 23:34:46 Manjjj kernel: audit: type=1334 audit(1649599486.385:131): prog-id=17 op=UNLOAD
Apr 10 23:34:46 Manjjj kernel: audit: type=1334 audit(1649599486.385:132): prog-id=16 op=UNLOAD
Apr 10 23:36:27 Manjjj dbus-daemon[1018]: [session uid=1000 pid=1018] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.4' (uid=1000 pid=1014 comm="xfce4-session ")
Apr 10 23:36:27 Manjjj systemd[1001]: Starting Virtual filesystem service...
Apr 10 23:36:27 Manjjj dbus-daemon[1018]: [session uid=1000 pid=1018] Successfully activated service 'org.gtk.vfs.Daemon'
Apr 10 23:36:27 Manjjj systemd[1001]: Started Virtual filesystem service.
Apr 10 23:36:27 Manjjj dbus-daemon[1018]: [session uid=1000 pid=1018] Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.7' (uid=1000 pid=1014 comm="xfce4-session ")
Apr 10 23:36:27 Manjjj systemd[1001]: Starting Accessibility services bus...
Apr 10 23:36:27 Manjjj dbus-daemon[1018]: [session uid=1000 pid=1018] Successfully activated service 'org.a11y.Bus'
Apr 10 23:36:27 Manjjj systemd[1001]: Started Accessibility services bus.
Apr 10 23:36:27 Manjjj dbus-daemon[1018]: [session uid=1000 pid=1018] Activating service name='org.xfce.Xfconf' requested by ':1.4' (uid=1000 pid=1014 comm="xfce4-session ")
Apr 10 23:36:27 Manjjj dbus-daemon[1018]: [session uid=1000 pid=1018] Successfully activated service 'org.xfce.Xfconf'
Apr 10 23:36:27 Manjjj at-spi-bus-launcher[1103]: dbus-daemon[1103]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=1000 pid=1014 comm="xfce4-session ")
Apr 10 23:36:27 Manjjj at-spi-bus-launcher[1103]: dbus-daemon[1103]: Successfully activated service 'org.a11y.atspi.Registry'
Apr 10 23:36:27 Manjjj dbus-daemon[1018]: [session uid=1000 pid=1018] Activating service name='org.xfce.ScreenSaver' requested by ':1.4' (uid=1000 pid=1014 comm="xfce4-session ")
Apr 10 23:36:27 Manjjj at-spi-bus-launcher[1111]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Apr 10 23:36:27 Manjjj dbus-daemon[1018]: [session uid=1000 pid=1018] Successfully activated service 'org.xfce.ScreenSaver'
Apr 10 23:36:28 Manjjj systemd[1001]: Started GnuPG cryptographic agent and passphrase cache.
Apr 10 23:36:28 Manjjj gpg-agent[1124]: gpg-agent (GnuPG) 2.2.32 starting in supervised mode.
Apr 10 23:36:28 Manjjj gpg-agent[1124]: using fd 3 for std socket (/run/user/1000/gnupg/S.gpg-agent)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.