Ubuntu 19.04 – blank screen after boot

I was able to us my Ubuntu 19.04 installation without any problems, but today while working it started to act strange. Every command I would enter into the terminal resulted in permission denied. So I decided to reboot.

I would then enter the password to decrypt the partion, and then it would go to a blank screen, sometimes with a static _ in the upper left corner.

Things I’ve tried

Changed /etc/default/grub from

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT=""

Tried purging nvidia. But nothing was removed, presumably because it wasnt installed.

So try I tried install nvidia with sudo apt install nvidia-driver-390.

This slightly changed the result, but only slightly. Now the screen is almost blank, with the exception of a green OK in the corner.

However, on subsequent reboots I now no longer get the green OK. I just get a static _.

Output from hwinfo --gfxcard --short:

nvidia GP107M [Geforce GTX 1050 Ti Mobile] Intel UHD Graphics 630 Mobile 

I tried sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.mybak but get /etc/X11/xorg.conf no such file or directory.

Tried sudo apt-get remove --purge nvidia-*. And this uninstalled a lot of stuff!

Tried sudo apt-get remove --purge xserver-xorg-video-nouveau but this E: Unable to locate package xserver-xorg-video-nouveau