Lately the issue is with using wayland as opposed to xOrg causing freezing,
which are used for rendering your display...wayland is much newer, and so still
has a lot of issues that prevent it from working ideally. I've had so many problems
with it doing the exact same thing, causing freezing, that I wonder why it isn't disabled
by default, and optional to try to get working.
Generally everything else works perfectly out of the box with most linux operating
systems these days.
At the login screen, under the password field, you’ll see a gear icon. Just click on it and you’ll see two options here. The default Ubuntu means it will be using Wayland while Ubuntu on Xorg obviously means it will use Xorg. You can select Ubuntu on Xorg to use Xorg here.
This quick tutorial shows you how to switch between xorg and Wayland display servers on Ubuntu and hopefully other Linux distributions.
itsfoss.com
My jaw literally dropped when I read your post because linux is so stable and fast that it typically doesn't suffer problems like that which are common on the main-stream bloated operating systems; and I made an account to try and help you.