After login, very slow boot

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
s.lamoureux
Level 1
Level 1
Posts: 25
Joined: Tue Jan 31, 2012 8:00 pm

After login, very slow boot

Post by s.lamoureux »

After I login, my screen goes dark and it takes about 30seconds before my desktop displays. This was not happening until today but I'm not sure what I did/installed to cause this. Mint 20.1 w/ cinnamon.

I'm not sure what other info is needed, but this is a pretty fresh install and was booting very fast before this.

systemd-analyze

Code: Select all

Startup finished in 17.595s (firmware) + 12.957s (loader) + 3.967s (kernel) + 4.383s (userspace) = 38.904s 
graphical.target reached after 4.373s in userspaces
systemd-analyze blame

Code: Select all

2.301s ufw.service                                          
1.565s snapd.service                                        
1.542s lightdm.service                                      
1.538s plymouth-quit-wait.service                           
1.010s upower.service                                       
 929ms systemd-resolved.service                             
 870ms snapd.seeded.service                                 
 677ms snap-snapd-11107.mount                               
 676ms snap-snapd-11036.mount                               
 652ms snap-notion\x2dsnap-6.mount                          
 639ms systemd-logind.service                               
 597ms dev-nvme0n1p5.device                                 
 580ms snap-zoom\x2dclient-136.mount                        
 570ms dev-loop2.device                                     
 542ms dev-loop1.device                                     
 528ms snap-docker-796.mount                                
 526ms snap-gnome\x2d3\x2d28\x2d1804-145.mount              
 524ms snap-gtk\x2dcommon\x2dthemes-1514.mount              
 454ms gpu-manager.service                                  
 370ms systemd-rfkill.service                               
 331ms systemd-timesyncd.service                            
 269ms fwupd.service                                        
 186ms dev-loop0.device                                     
 183ms blueman-mechanism.service                            
 181ms dev-loop4.device                                     
 155ms dev-loop5.device                                     
 135ms snap-core18-1988.mount                               
 131ms snap-emote-15.mount                                  
 125ms dev-loop3.device                                     
 106ms systemd-modules-load.service                         
  92ms lvm2-monitor.service                                 
  92ms accounts-daemon.service                              
  86ms udisks2.service                                      
  84ms networkd-dispatcher.service                          
  82ms apparmor.service                                     
  81ms user@1000.service                                    
  74ms networking.service                                   
  68ms systemd-journald.service                             
  65ms avahi-daemon.service                                 
  65ms systemd-udev-trigger.service                         
  64ms bluetooth.service                                    
  62ms ubuntu-system-adjustments.service                    
  60ms NetworkManager.service                               
  55ms polkit.service                                       
  55ms systemd-journal-flush.service                        
  47ms switcheroo-control.service                           
  43ms systemd-udevd.service                                
  42ms keyboard-setup.service                               
  42ms thermald.service                                     
  41ms swapfile.swap                                        
  40ms wpa_supplicant.service                               
  37ms ModemManager.service                                 
  37ms grub-common.service                                  
  35ms snapd.apparmor.service                               
  33ms dev-loop6.device                                     
  32ms kerneloops.service                                   
  28ms hddtemp.service                                      
  23ms lm-sensors.service                                   
  22ms packagekit.service                                   
  19ms systemd-fsck@dev-disk-by\x2duuid-A6FF\x2d51CB.service
  19ms e2scrub_reap.service                                 
  17ms rsyslog.service                                      
  16ms systemd-sysctl.service                               
  14ms plymouth-start.service                               
  12ms dev-loop8.device                                     
  12ms plymouth-read-write.service                          
  11ms nvidia-persistenced.service                          
  11ms systemd-tmpfiles-setup.service                       
  10ms pppd-dns.service                                     
  10ms dns-clean.service                                    
  10ms systemd-remount-fs.service                           
  10ms grub-initrd-fallback.service                         
   9ms systemd-random-seed.service                          
   9ms modprobe@drm.service                                 
   9ms dev-hugepages.mount                                  
   9ms dev-mqueue.mount                                     
   9ms colord.service                                       
   8ms systemd-update-utmp-runlevel.service                 
   8ms user-runtime-dir@1000.service                        
   8ms sys-kernel-debug.mount                               
   8ms alsa-restore.service                                 
   8ms systemd-tmpfiles-setup-dev.service                   
   8ms sys-kernel-tracing.mount                             
   7ms systemd-update-utmp.service                          
   7ms systemd-sysusers.service                             
   6ms blk-availability.service                             
   6ms boot-efi.mount                                       
   6ms kmod-static-nodes.service                            
   4ms systemd-user-sessions.service                        
   4ms console-setup.service                                
   4ms ifupdown-pre.service                                 
   3ms finalrd.service                                      
   3ms rtkit-daemon.service                                 
   3ms sys-kernel-config.mount                              
   2ms sys-fs-fuse-connections.mount                        
   2ms openvpn.service                                      
   1ms setvtrgb.service                                     
 819us snapd.socket 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: After login, very slow boot

Post by Moonstone Man »

s.lamoureux wrote: Sun Mar 07, 2021 10:33 pm ... I'm not sure what I did/installed to cause this.
Well, for starters, you must have installed this:

Code: Select all

4.060s snapd.service
It is blocked in Linux Mint so you must have done something that you're not telling us about. In addition:

Code: Select all

Startup finished in 17.595s (firmware) + 6.461s (loader) + 3.934s (kernel) + 5.990s (userspace) = 33.982s 
More than half of the time (51.78% to be exact) is clearly down to you machine's firmware, which leaves less than 17 seconds (16.387 seconds to be exact) for Grub, kernel boot and landing on the desktop.

So, without more information, I don't think any more can be said.
s.lamoureux
Level 1
Level 1
Posts: 25
Joined: Tue Jan 31, 2012 8:00 pm

Re: After login, very slow boot

Post by s.lamoureux »

I completely removed snap and that has helped quite a bit. I installed it initially because it's the only way I could get docker installed.
My numbers here don't look much different, but my screen is black for about 5 seconds now instead of 30.

Code: Select all

Startup finished in 17.600s (firmware) + 4.475s (loader) + 3.904s (kernel) + 3.136s (userspace) = 29.115s 
graphical.target reached after 3.128s in userspace

Code: Select all

1.832s ufw.service                                          
1.491s gpu-manager.service                                  
1.104s plymouth-quit-wait.service                           
1.037s systemd-logind.service                               
 776ms lightdm.service                                      
 404ms systemd-resolved.service                             
 391ms systemd-timesyncd.service                            
 333ms systemd-rfkill.service                               
 252ms fwupd.service                                        
 213ms upower.service                                       
 190ms blueman-mechanism.service                            
 159ms dev-nvme0n1p5.device                                 
 102ms apparmor.service                                     
  96ms accounts-daemon.service                              
  85ms networkd-dispatcher.service                          
  81ms udisks2.service                                      
  80ms lvm2-monitor.service                                 
  71ms user@1000.service                                    
  70ms systemd-journald.service                             
  66ms avahi-daemon.service                                 
  65ms nvidia-persistenced.service                          
  65ms bluetooth.service                                    
  62ms NetworkManager.service                               
  62ms systemd-journal-flush.service                        
  61ms systemd-udev-trigger.service                         
  55ms polkit.service                                       
  50ms ubuntu-system-adjustments.service                    
  48ms switcheroo-control.service                           
  48ms systemd-udevd.service                                
  46ms systemd-localed.service                              
  43ms keyboard-setup.service                               
  43ms thermald.service                                     
  41ms wpa_supplicant.service                               
  35ms swapfile.swap                                        
  34ms grub-common.service                                  
  32ms kerneloops.service                                   
  31ms ModemManager.service                                 
  30ms e2scrub_reap.service                                 
  29ms hddtemp.service                                      
  27ms dns-clean.service                                    
  26ms networking.service                                   
  25ms systemd-fsck@dev-disk-by\x2duuid-A6FF\x2d51CB.service
  23ms lm-sensors.service                                   
  19ms packagekit.service                                   
  18ms rsyslog.service                                      
  17ms systemd-tmpfiles-setup.service                       
  16ms systemd-modules-load.service                         
  15ms plymouth-start.service                               
  14ms plymouth-read-write.service                          
  14ms modprobe@drm.service                                 
  13ms console-setup.service                                
  11ms pppd-dns.service                                     
  10ms systemd-random-seed.service                          
  10ms finalrd.service                                      
   9ms grub-initrd-fallback.service                         
   9ms systemd-sysctl.service                               
   9ms systemd-sysusers.service                             
   9ms dev-hugepages.mount                                  
   8ms systemd-remount-fs.service                           
   8ms dev-mqueue.mount                                     
   8ms alsa-restore.service                                 
   8ms colord.service                                       
   8ms sys-kernel-debug.mount                               
   8ms boot-efi.mount                                       
   7ms sys-kernel-tracing.mount                             
   7ms systemd-tmpfiles-setup-dev.service                   
   7ms user-runtime-dir@1000.service                        
   6ms blk-availability.service                             
   6ms systemd-update-utmp-runlevel.service                 
   5ms systemd-update-utmp.service                          
   5ms kmod-static-nodes.service                            
   4ms systemd-user-sessions.service                        
   3ms rtkit-daemon.service                                 
   2ms setvtrgb.service                                     
   2ms ifupdown-pre.service                                 
   2ms openvpn.service                                      
   2ms sys-fs-fuse-connections.mount                        
   1ms sys-kernel-config.mount   
s.lamoureux
Level 1
Level 1
Posts: 25
Joined: Tue Jan 31, 2012 8:00 pm

Re: After login, very slow boot

Post by s.lamoureux »

Now that I figured out how to install docker without snap, I'm back to the same 30second black screen after the login menu. Is this normal with docker?

Code: Select all

Startup finished in 17.595s (firmware) + 3.873s (loader) + 3.938s (kernel) + 6.087s (userspace) = 31.495s

Code: Select all

4.251s NetworkManager-wait-online.service                   
1.897s ufw.service                                          
1.215s docker.service                                       
 435ms systemd-resolved.service                             
 407ms systemd-logind.service                               
 343ms gpu-manager.service                                  
 319ms e2scrub_reap.service                                 
 310ms networkd-dispatcher.service                          
 246ms fwupd.service                                        
 213ms upower.service                                       
 183ms dev-nvme0n1p5.device                                 
 169ms blueman-mechanism.service                            
 106ms systemd-timesyncd.service                            
  87ms accounts-daemon.service                              
  84ms lvm2-monitor.service                                 
  77ms apparmor.service                                     
  76ms systemd-journald.service                             
  76ms udisks2.service                                      
  66ms systemd-udev-trigger.service                         
  66ms systemd-journal-flush.service                        
  65ms user@1000.service                                    
  58ms avahi-daemon.service                                 
  58ms bluetooth.service                                    
  54ms NetworkManager.service                               
  52ms ubuntu-system-adjustments.service                    
  49ms lightdm.service                                      
  48ms polkit.service                                       
  46ms plymouth-quit-wait.service                           
  43ms switcheroo-control.service                           
  43ms alsa-restore.service                                 
  42ms containerd.service                                   
  42ms keyboard-setup.service                               
  40ms systemd-udevd.service                                
  38ms thermald.service                                     
  36ms wpa_supplicant.service                               
  35ms networking.service                                   
  35ms systemd-fsck@dev-disk-by\x2duuid-A6FF\x2d51CB.service
  31ms ModemManager.service                                 
  31ms grub-common.service                                  
  29ms systemd-rfkill.service                               
  28ms swapfile.swap                                        
  26ms nvidia-persistenced.service                          
  23ms packagekit.service                                   
  20ms lm-sensors.service                                   
  16ms systemd-modules-load.service                         
  14ms rsyslog.service                                      
  13ms systemd-tmpfiles-setup.service                       
  13ms plymouth-start.service                               
  13ms kerneloops.service                                   
  12ms hddtemp.service                                      
  11ms systemd-random-seed.service                          
  11ms plymouth-read-write.service                          
  11ms dns-clean.service                                    
  11ms systemd-remount-fs.service                           
  10ms colord.service                                       
  10ms grub-initrd-fallback.service                         
   9ms pppd-dns.service                                     
   9ms systemd-sysctl.service                               
   9ms dev-hugepages.mount                                  
   9ms systemd-sysusers.service                             
   9ms modprobe@drm.service                                 
   8ms dev-mqueue.mount                                     
   8ms systemd-tmpfiles-setup-dev.service                   
   8ms user-runtime-dir@1000.service                        
   8ms sys-kernel-debug.mount                               
   8ms ubuntu-fan.service                                   
   7ms sys-kernel-tracing.mount                             
   7ms systemd-update-utmp.service                          
   6ms blk-availability.service                             
   5ms systemd-update-utmp-runlevel.service                 
   5ms kmod-static-nodes.service                            
   5ms boot-efi.mount                                       
   4ms systemd-user-sessions.service                        
   4ms console-setup.service                                
   3ms finalrd.service                                      
   3ms rtkit-daemon.service                                 
   3ms sys-fs-fuse-connections.mount                        
   3ms ifupdown-pre.service                                 
   2ms setvtrgb.service                                     
   2ms sys-kernel-config.mount                              
   2ms openvpn.service                                      
   1ms docker.socket       
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: After login, very slow boot

Post by Moonstone Man »

s.lamoureux wrote: Sun Mar 07, 2021 11:18 pm IMy numbers here don't look much different...

Code: Select all

Startup finished in 17.600s (firmware)
And they won't. As I said, your system is the cause, but you're still looking at Linux as the cause. If you've done a BIOS update lately, you may want to revert it to an earlier version. On the other hand, if you haven't done a BIOS update lately, you might want to check with the manufacturer's site to see if there's an updated BIOS available. You might also want to double-check that secure boot is disabled while you're in the BIOS, and also check the boot drive sequence and BBS priorities if you have more than one drive as this will cause the BIOS to go on a hunt if you've removed a drive or added one, for example.

Taking away your firmware time from the total, you have a very respectable response from the three stage boot i.e. Grub, kernel and DE, in that order. Linux isn't the issue here, at least not yet. It is reasonable to expect that firmware should be loaded and already have fired up the system in 10 seconds or less, but that depends on your machine, which we still know nothing about.

Post the output of inxi -Fxz.
s.lamoureux
Level 1
Level 1
Posts: 25
Joined: Tue Jan 31, 2012 8:00 pm

Re: After login, very slow boot

Post by s.lamoureux »

Its odd because I wasn't having any issues beforehand, and this install is less than a week old. I didn't update BIOS and secure boot was turned off before install. I'll take another peek and check for a BIOS update and look at the drive sequence. Those times do not seem to count the over 20 seconds I'm getting after entering in my password though. Especially because the numbers didn't really change the 1 time it showed my desktop after about 5secs.

Edit: I just did 5 restarts, and the first 2 or 3 times the desktop loaded very quickly after the login screen, then it went back to the long black screen for the last couple.

Here is the output of inxi -Fxz

Code: Select all

System:    Kernel: 5.8.0-7642-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 4.8.6 
           Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Desktop Mobo: Micro-Star model: MPG X570 GAMING EDGE WIFI (MS-7C37) v: 1.0 
           serial: <filter> UEFI: American Megatrends v: 1.90 date: 07/11/2020 
CPU:       Topology: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 
           L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 115193 
           Speed: 2098 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2098 2: 2706 3: 1921 
           4: 2200 5: 2169 6: 3265 7: 3085 8: 3962 9: 1926 10: 2688 11: 2161 12: 3792 13: 3260 
           14: 4113 15: 1944 16: 2009 
Graphics:  Device-1: NVIDIA vendor: eVga.com. driver: nvidia v: 460.56 bus ID: 2d:00.0 
           Display: x11 server: X.Org 1.20.9 driver: nvidia 
           unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz, 2560x1440~144Hz 
           OpenGL: renderer: GeForce RTX 3090/PCIe/SSE2 v: 4.6.0 NVIDIA 460.56 direct render: Yes 
Audio:     Device-1: NVIDIA vendor: eVga.com. driver: snd_hda_intel v: kernel bus ID: 2d:00.1 
           Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus ID: 2f:00.4 
           Device-3: Microdia USB Live camera type: USB driver: snd-usb-audio,uvcvideo 
           bus ID: 5-1:2 
           Sound Server: ALSA v: k5.8.0-7642-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Micro-Star MSI X570-A PRO driver: r8169 v: kernel port: d000 bus ID: 27:00.0 
           IF: enp39s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Device-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi v: kernel 
           port: d000 bus ID: 29:00.0 
           IF: wlp41s0 state: down mac: <filter> 
Drives:    Local Storage: total: 1.36 TiB used: 68.38 GiB (4.9%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 1TB size: 931.51 GiB 
           ID-2: /dev/sda vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB 
Partition: ID-1: / size: 248.92 GiB used: 68.35 GiB (27.5%) fs: ext4 dev: /dev/nvme0n1p5 
Sensors:   System Temperatures: cpu: 56.2 C mobo: N/A gpu: nvidia temp: 55 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:      Processes: 391 Uptime: 2m Memory: 31.35 GiB used: 2.00 GiB (6.4%) Init: systemd 
           runlevel: 5 Compilers: gcc: 9.3.0 Shell: zsh v: 5.8 inxi: 3.0.38
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: After login, very slow boot

Post by Moonstone Man »

s.lamoureux wrote: Mon Mar 08, 2021 12:00 am Those times do not seem to count the over 20 seconds I'm getting after entering in my password though.
My apologies. I had forgotten about that, and your machine is very far from being a slouch, so you're right and I'm wrong. There are several things to try.

You can create a new account and see if that exhibits the same issue. If it doesn't exhibit the issue then the problem is in your settings thus the fix should be obvious i.e. switch to a different account. If the new account does exhibit the issue then the problem is deeper and likely to be some OS issue. In either case, the output of dmesg --level-err might be useful. The other thing you can do is boot into Grub and choose an earlier kernel if one more have been retained.

Don't be taken aback by my admission to error. Readily admitting my errors allows me to get away with them more often.
s.lamoureux
Level 1
Level 1
Posts: 25
Joined: Tue Jan 31, 2012 8:00 pm

Re: After login, very slow boot

Post by s.lamoureux »

Thanks for the help so far, I'm going to hit the hay but I'll troubleshoot some more tomorrow.

Here is the output of dmesg --level err:

Code: Select all

[    5.060058] usb 5-1: 4:1: cannot get freq at ep 0x84
[    8.214930] usb 5-1: 4:1: cannot get freq at ep 0x84
[    8.250925] usb 5-1: 4:1: cannot get freq at ep 0x84
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: After login, very slow boot

Post by Moonstone Man »

s.lamoureux wrote: Mon Mar 08, 2021 12:21 am

Code: Select all

dmesg: read kernel buffer failed: Operation not permitted
That means something has happened to alter the kernel's root behaviour. Linux Mint kernels do not require root permissions to see the output of dmesg. So, you must be using a non-standard kernel, which means the advice I gave you earlier needs to be followed:
The other thing you can do is boot into Grub and choose an earlier kernel if one more have been retained.
You need to select a standard Ubuntu kernel, not one of your self-installed kernels, if there are any others. Actually, while I'm kicking myself a little for not seeing it in your inxi output the first time around, I am completely gobsmacked that you are "not sure what [you] did/installed to cause this". Your unwillingness to provide full and frank disclosure of your changes costs people their time, which they give freely and at no cost to you. So I am less than impressed even though I missed the probable cause the first time around. What has happened here exemplifies why we tell people that use out-of-tree kernels that they're on their own.

The correct way to install a kernel is to use the Linux Kernels option on the View menu of the Update Manager.

I'm out. I'll leave you to it. You have the best advice I can give and you've had two hours of my time.
s.lamoureux
Level 1
Level 1
Posts: 25
Joined: Tue Jan 31, 2012 8:00 pm

Re: After login, very slow boot

Post by s.lamoureux »

I have no clue what you're talking about or why you're upset, I didn't install a kernal on my own.
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: After login, very slow boot

Post by Moonstone Man »

s.lamoureux wrote: Mon Mar 08, 2021 12:59 am I have no clue what you're talking about or why you're upset, I didn't install a kernal on my own.
If you didn't do it wittingly, you have knowingly subscribed to a repository that provides non-standard kernels, possibly a POP OS repository, and you have been offered the kernel as an update as a result, and consequently you unwittingly approved its installation without checking. It still boils down to the same thing.

You are now the proud owner of a Frankenstein Operating System of your own making. The only cures are to a) revert to a timeshift snapshot at a point in time before you added whatever non-standard repository has installed this kernel with your explicit permission to do so, b) clean install, or c) restore from an earlier disk image.
s.lamoureux
Level 1
Level 1
Posts: 25
Joined: Tue Jan 31, 2012 8:00 pm

Re: After login, very slow boot

Post by s.lamoureux »

If I choose the 5.4 kernal from grub, my second display doesn't work and I get a notification that says system is running without video hardware acceleration. Was the 5.8 kernel necessary because of my gpu? I did add a Pop OS repo just for an icon pack, would that really change my kernal?!
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: After login, very slow boot

Post by Moonstone Man »

s.lamoureux wrote: Mon Mar 08, 2021 1:26 am If I choose the 5.4 kernal from grub, my second display doesn't work and I get a notification that says system is running without video hardware acceleration. Was the 5.8 kernel necessary because of my gpu? I did add a Pop OS repo just for an icon pack, would that really change my kernal?!
I'm sorry, but I spelled it all out for you. I'm now on private Linux Consultancy rates. My fees are $US850 per hour, three square meals a day at 5 star international cuisine restaurants only, first class travel (private jet preferred), 5 star international hotel accommodation (penthouse suite only), all expenses paid, minimum 5 day 24/7 engagement, unfettered access to your credit cards (American Express Centurion preferred but Platinum is acceptable), your right arm, your left leg, and your first born child.
s.lamoureux
Level 1
Level 1
Posts: 25
Joined: Tue Jan 31, 2012 8:00 pm

Re: After login, very slow boot

Post by s.lamoureux »

I uninstalled 5.8 and went back to 5.4. I was able to get my video drivers working again by switching to nouveau, and then back to Nvidia. The black screen problem is still there but it's down to about 10secs now so I'll deal. It seems like it's the Nvidia drivers so I'm probably stuck with it.
Mek101
Level 1
Level 1
Posts: 48
Joined: Thu Mar 09, 2017 3:53 pm
Location: Italy

Re: After login, very slow boot

Post by Mek101 »

Jumping in to bump since I could have a really similar problem, although it doesn't happen consistently.

What's your

Code: Select all

systemd-analyze --user blame
output?
dave0808
Level 5
Level 5
Posts: 986
Joined: Sat May 16, 2015 1:02 pm

Re: After login, very slow boot

Post by dave0808 »

I also had the same symptoms: ~30s blank screen after login most times (but not always).

I disabled applications that were listed in the 'Startup Applications' and that resolved it. I can't access my main system right now, but I believe disabling the nvidia applications was what has worked for me so far.
s.lamoureux
Level 1
Level 1
Posts: 25
Joined: Tue Jan 31, 2012 8:00 pm

Re: After login, very slow boot

Post by s.lamoureux »

Mek101 wrote: Sun Apr 11, 2021 5:11 pm Jumping in to bump since I could have a really similar problem, although it doesn't happen consistently.

What's your

Code: Select all

systemd-analyze --user blame
output?

Code: Select all

systemd-analyze --user blame 
9.669s pulseaudio.service                   
 279ms tracker-extract.service              
 176ms tracker-miner-fs.service             
 144ms xdg-desktop-portal.service           
  83ms gnome-terminal-server.service        
  73ms xdg-desktop-portal-gtk.service       
  73ms bamfdaemon.service                   
  72ms evolution-source-registry.service    
  50ms evolution-calendar-factory.service   
  39ms gvfs-goa-volume-monitor.service      
  29ms evolution-addressbook-factory.service
  15ms gvfs-udisks2-volume-monitor.service  
  12ms xdg-document-portal.service          
  11ms tracker-store.service                
   9ms gvfs-gphoto2-volume-monitor.service  
   7ms gvfs-mtp-volume-monitor.service      
   6ms gvfs-daemon.service                  
   5ms xdg-permission-store.service         
   5ms obex.service                         
   4ms at-spi-dbus-bus.service              
   4ms gvfs-afc-volume-monitor.service      
lines 1-21...skipping...
9.669s pulseaudio.service                   
 279ms tracker-extract.service              
 176ms tracker-miner-fs.service             
 144ms xdg-desktop-portal.service           
  83ms gnome-terminal-server.service        
  73ms xdg-desktop-portal-gtk.service       
  73ms bamfdaemon.service                   
  72ms evolution-source-registry.service    
  50ms evolution-calendar-factory.service   
  39ms gvfs-goa-volume-monitor.service      
  29ms evolution-addressbook-factory.service
  15ms gvfs-udisks2-volume-monitor.service  
  12ms xdg-document-portal.service          
  11ms tracker-store.service                
   9ms gvfs-gphoto2-volume-monitor.service  
   7ms gvfs-mtp-volume-monitor.service      
   6ms gvfs-daemon.service                  
   5ms xdg-permission-store.service         
   5ms obex.service                         
   4ms at-spi-dbus-bus.service              
   4ms gvfs-afc-volume-monitor.service      
   3ms gvfs-metadata.service                
lines 1-22...skipping...
9.669s pulseaudio.service                   
 279ms tracker-extract.service              
 176ms tracker-miner-fs.service             
 144ms xdg-desktop-portal.service           
  83ms gnome-terminal-server.service        
  73ms xdg-desktop-portal-gtk.service       
  73ms bamfdaemon.service                   
  72ms evolution-source-registry.service    
  50ms evolution-calendar-factory.service   
  39ms gvfs-goa-volume-monitor.service      
  29ms evolution-addressbook-factory.service
  15ms gvfs-udisks2-volume-monitor.service  
  12ms xdg-document-portal.service          
  11ms tracker-store.service                
   9ms gvfs-gphoto2-volume-monitor.service  
   7ms gvfs-mtp-volume-monitor.service      
   6ms gvfs-daemon.service                  
   5ms xdg-permission-store.service         
   5ms obex.service                         
   4ms at-spi-dbus-bus.service              
   4ms gvfs-afc-volume-monitor.service      
   3ms gvfs-metadata.service                
   3ms dbus.socket                          
lines 1-23...skipping...
9.669s pulseaudio.service                   
 279ms tracker-extract.service              
 176ms tracker-miner-fs.service             
 144ms xdg-desktop-portal.service           
  83ms gnome-terminal-server.service        
  73ms xdg-desktop-portal-gtk.service       
  73ms bamfdaemon.service                   
  72ms evolution-source-registry.service    
  50ms evolution-calendar-factory.service   
  39ms gvfs-goa-volume-monitor.service      
  29ms evolution-addressbook-factory.service
  15ms gvfs-udisks2-volume-monitor.service  
  12ms xdg-document-portal.service          
  11ms tracker-store.service                
   9ms gvfs-gphoto2-volume-monitor.service  
   7ms gvfs-mtp-volume-monitor.service      
   6ms gvfs-daemon.service                  
   5ms xdg-permission-store.service         
   5ms obex.service                         
   4ms at-spi-dbus-bus.service              
   4ms gvfs-afc-volume-monitor.service      
   3ms gvfs-metadata.service                
   3ms dbus.socket    
   
Mek101
Level 1
Level 1
Posts: 48
Joined: Thu Mar 09, 2017 3:53 pm
Location: Italy

Re: After login, very slow boot

Post by Mek101 »

Not sure if you're still having this issue.

I too had trouble with pulse being slow to start. In my case, I had to disable the bluetooth module to make it start in reasonable time.

Be warned that this may break bluetooth headphones and such.

To disable it:
Open /etc/pulse/default.pa with your editor of choice (eg, from terminal sudo nano /etc/pulse/default.pa), then find the Automatically load driver modules for Bluetooth hardware section and comment it out by prefixing # to each and every line of it. Save and exit (eg, in nano, ctrl+o)
After that, remove the pulseaudio-module-bluetooth package.

Check if this fixes the issue, otherwise revert those passages
Locked

Return to “Beginner Questions”