I’m noticing a pause in the boot sequence near 20 seconds into boot. If it weren’t for this pause, I think I’d be seeing a desktop near 20 seconds instead of 40+. Full system log in a gist: Clear Linux system log during boot · GitHub
System log starts with:
9:34:47 PM kernel: initcall rfkill_init+0x0/0x120 [rfkill] returned 0 after 63 usecs
9:34:47 PM kernel: calling rfkill_init+0x0/0x120 [rfkill] @ 393
and there are a couple hundred entries over the initial 2 seconds… I see bluetooth (which I don’t use nor want) as well as KVM stuff:
9:34:47 PM kernel: initcall svm_init+0x0/0xc79 [kvm_amd] returned -95 after 392 usecs
9:34:47 PM kernel: kvm: disabled by bios
9:34:47 PM kernel: calling svm_init+0x0/0xc79 [kvm_amd] @ 383
9:34:47 PM kernel: calling rtl8822be_driver_init+0x0/0x1000 [r8822be] @ 393
9:34:47 PM kernel: initcall svm_init+0x0/0xc79 [kvm_amd] returned -95 after 200 usecs
9:34:47 PM kernel: kvm: disabled by bios
9:34:47 PM kernel: calling svm_init+0x0/0xc79 [kvm_amd] @ 390
9:34:47 PM kernel: initcall svm_init+0x0/0xc79 [kvm_amd] returned -95 after 405 usecs
9:34:47 PM kernel: kvm: disabled by bios
9:34:47 PM kernel: calling svm_init+0x0/0xc79 [kvm_amd] @ 391
But the problems seem near here: look at the time jump from 9:35:32 to 9:36:06 with little activity…
9:36:06 PM sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
9:35:42 PM systemd: systemd-localed.service: Succeeded.
9:35:32 PM dbus-daemon: [system] Failed to activate service 'org.freedesktop.PackageKit': timed out (service_start_timeout=25000ms)
9:35:32 PM gnome-shell: Error calling StartServiceByName for org.freedesktop.PackageKit: Timeout was reached
9:35:27 PM kernel: pcieport 0000:00:01.7: BAR 15: assigned [mem 0xf0400000-0xf05fffff 64bit pref]
9:35:27 PM kernel: pci_bus 0000:02: Allocating resources
9:35:20 PM systemd-timesyn: Synchronized to time server for the first time 216.229.0.50:123 (1.clearlinux.pool.ntp.org).
25 seconds before the error is this:
9:35:07 PM packagekitd: Failed to resolve auto: No backends found
9:35:07 PM kernel: rfkill: input handler disabled
9:35:07 PM packagekitd: daemon start
9:35:07 PM systemd: Starting PackageKit Daemon...
9:35:07 PM dbus-daemon: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.39' (uid=1000 pid=628 comm="/usr/bin/gnome-shell ")
1. Any thoughts about the pause or if it could be related to that error? 2. What can I do to eliminate bluetooth?
Thanks in advance for help - I’m looking forward to seeing how quick I can get this Ryzen 7 laptop to boot to desktop.
Boot time issue? Step one: inspect /run/log/bootchart-*.svg (open it in a browser). You may need to tune /etc/systemd/bootchartd.conf to make the chart log longer. systemd-analyze blame also may show useful info.
Thanks for new info and helping me learn cool new systemd things!
There is not a bootchartd.conf file on my system, so I’ll google adding that. I updated the gist here: Clear Linux system log during boot · GitHub with the output from blame.
I agree 20 seconds is abysmal, but I’m accustomed to ubuntu needing a 20 second sleep-over when it tries for wifi or bluetooth (i don’t use BT)
Sadly, a new development: I plugged in a keyboard and then my keyboard and mouse would stutter and go away for 10 or 20 seconds. I haven’t had that problem in a decade and will try to dig up a usb hub. But I’d really like to get the boot thing sorted out, too.
It is still 4.2 seconds. Frequency is supposed to be Hz samples and 200 samples per second is not 25 Hz like I set in /etc/systemd/bootchart.conf Yeah, after several tries, it’s obviously ignoring my conf file.
No matter what I did, bootchart is not of any use to me.
Added a /etc/systemd/bootchart.conf as per suggested and also the man page. – SVG output stayed the same.
Delete /usr/lib/systemd/bootchart.conf.d/clear.conf so that systemd might look at /etc/systemd/bootchart.conf – no SVG output at all.
Edit /usr/lib/systemd/bootchart.conf.d/clear.conf (not adding any entries, just changing parameters) – no SVG output at all --> and then /usr/lib/systemd/bootchart.conf.d/clear.conf was changed back to defaults.