Ubuntu 18.04.1 freezes when connecting to a second screen

Solution 1:

So, the issue is in the 4.15.0-44-generic kernel and has been solved in the 4.15.0-45-generic. To manually update, run:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

And that fixes it.