Ubuntu 22.04 slowness after login

Recently I upgraded from Ubuntu 20.04 to 22.04 using the upgrade option on my dual boot intel laptop with 8GB RAM and Mate DE installed separately.

The upgraded system is working ok, except the following -

(1) Login screen appears reasonably fast within 15-20 seconds, but after successful login it takes 30-60 seconds for the desktop to be visible. How to check what is causing this delay after a successful login?

(2) Firefox and Chromium are slow - take a while to connect to sites especially immediately after starting or while restoring old sessions. Tried cleaning cache and browsing data using CTRL-Shift-DEL. But the slowness does not go away.

Startup programs are - Blueman applet, Ibus daemon, Maximus Windows Management

(3) Caja and Files often lag while displaying folders (not always) as if they are re-scanning the folders.

Any hints are welcome… tx

1 Like

After boot, instead login, switch to a console (ctrl-alt-F3 for example), login there.
Start
top
Press ctrl-alt-F6 (that should bring you back to the login screen).
Do login there too, and immediatley press ctrl-alt-F3 (back to the previous console, whic has running top.
Whatching top you can guess what takes too much CPU.
If that does not give a clue, repeat the experiment using iotop: you may need to install it: sudo apt install iotop
Wharching iotop on a console, while the login on the GUI happens, may give a clue, what takes a lot of disk I/O.
After having a suspect, investigate more in that direction.

5 Likes

Are these apps snap packages.? Snaps are large, and take a while to load when first launched.

5 Likes

Yes, that could be a reason.
Running
snap list
and examining its output can confirm they are snap installed.
The most I dislike in Ubuntu is the snap…

7 Likes

It is ironic … if my memory does not fail me I read that snap on 24.04 was improved against 22.04 …

Just in one laptop I did do a complete upgrade from 22.04 to 24.04 and practically same performance

Interesting about iotop … I know exists top, htop and btop … something I really enjoy in this network is that always there is a tool mentioned to start a research

6 Likes

I think it’s more an improvement on individual snap packages rather than snap as a whole. Firefox was always a sticking point for me. I used a different browser for about a year due to the slow startup. It’s not noticeable on my home laptop anymore. Maybe if the hardware is older it still would be.

3 Likes

Yes, both are snaps… I used them because of my old habit of trusting the official repositories. What options do I have? PPAs?

2 Likes

@kovacslt - Thank you… I will try this and report.

2 Likes

None really. PPA’s have other problems.
Choose another distro such as Mint that is like Ubuntu but avoids snaps.

2 Likes

I second Linux Mint Mate. That’s your best bet, as you are familiar with Mate now, and “ordinary” Linux Mint is directly derived from Ubuntu, so it has the exact same hardware support out of the box. But without forcing you to use those snaps. :slight_smile:
It is possible to “talk out” Ubuntu of using snaps, but it’s not trivial, and it gets harder with every newer release.
Linux Mint is simply much more friendly in every aspect I can think of…

3 Likes

While you’re at it - check out this It’s FOSS article

I particularly like #3 Preload and for FF I prefer Flatpak which does seem (to me anyway) faster than the snap which I have consistently removed from Ubuntu distros. I use FF Flatpak on my daily driver Debian 12.

4 Likes

I’m not in favour of cleaning apps but have used Ubuntu Cleaner.
Not suggesting this as a fix but can say I’ve used it without issue.

Might be worth looking at.

3 Likes

That was my first choice up to about 6 months back then I changed to lmde with cinnamon desktop as first place with mate 2nd and xfce for older less well spec machines

Mate is good but sometimes a bit chunky, but there is very little to choose.

1 Like

Thanks for this, first time I have seen a cleaner for a linux system, very similar to early ccleaner, wonder if it works on Mint ?
Does it make a big difference ?
Will it develop as ccleaner had done to other parts, uninstall, startup apps, as ccleaner has done
I was taught that linux does not need a cleaning tool or defrag tool… is this still correct or just an urban myth ?

1 Like

I only found out about the cleaner via a moderator on zorin forum.
It can delete things that you can’t, if that makes sense.
Probably OS derivative related.

Apparently safe to use for noobs like me.
Wouldn’t post anything I haven’t tried beforehand.

What’s an urban myth?

humorous or horrific story or piece of information circulated as though true, especially one purporting to involve someone vaguely related or known to the teller.

2 Likes

I expected that kind of reply.
Was hiding in the myth.

Have to ask, do you run or ever have used MX?

I tried and failed… just once. Someone on this site recommended it, but in the end It would not run on the box I needed it for so swapped the xfce mint instead.

Ok i did not give it a real go, was short of time and needed to get a box back to a client as he was leaving the following day.

Perhaps further down the line I may try again

1 Like

MX, (issues aside) is certainly worth a look at when you can.
I run it as a VM and will probably be my future main OS.

@Arvind sorry for the deviation of the thread.

3 Likes

I dont understand the ‘urban’ bit.?
Paul’s wikipddia link does not help.
Urban, to me, refers to people who live in town.
So, what is a non-urban or rural myth?

2 Likes