Ubuntu 18.04 on Asus X550V
Getting Ubuntu 18.04 to work on an Asus laptop with Nvidia graphics using a few grub boot flags.

Intro

Ubuntu does not play nice with hardware. Especially Nvidia graphics. The X550V Asus laptop comes with a Nvidia GeForce GTX 950M card. In addition, something about PCIE seems to mess things up during the install. I found this bug, but that only solved my graphics problem. I still had locked CPUs, screens upon screens of PCIE errors, and frozen screens after log in. All it took were a few grub flags and it worked just fine.

Install Ubuntu

For the installation, make sure to edit the boot flags. Replace quiet splash with nomodeset acpi=force intel_idle.max_cstate=1 pci=nomsi pcie_aspm=off. Then run your installation as normal and reboot. This time add nouveau.modeset=0 acpi=force intel_idle.max_cstate=1 pci=nomsi pcie_aspm=off the end of the line that starts with linux. Your laptop should boot without issue. Once logged in modify the file /etc/default/grub so it reads:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force intel_idle.max_cstate=1 pci=nomsi pcie_aspm=off"

Then update grub sudo update-grub. Go to the “additional drivers” tab of Software and Updates and select the appropriate Nvidia driver for your card. As of this writing, it is nvidia-driver-390. Save the changes and reboot. There you have it. You should have a fully functioning system now with the latest Nvidia driver. Note: I have no idea why those grub flags work or even what they do. This worked for me, and that’s the only guarantee I make.

Other Flags

I tried quite a few flags and combinations during my attempted install of Qubes:

video=vesa:off
inst.text
nouveau.modeset=0
rhgb
rd.driver.blacklist=noveau
nouveau.noaccel=1

Update Oct 2020

So I had some problems with grub and I had to erase it. And with it, went all the boot flags.

After fiddling for quite some time I finally got my laptop to work again. Here is a brief description of what I had to do.

First I booted to the latest firmware and selected recovery mode. I altered the boot flags to include:

nouveau.modeset=0 acpi=force intel_idle.max_cstate=1 pci=nomsi pcie_aspm=off nvidia-drm.modeset=1

For some reason, the hard drive wasn’t mounting properly when I went through the usual automatic methods. So I immediately selected “drop to command line” and mounted manually:

cryptsetup luksOpen /dev/sda3 ubuntu-mapper-vg

I’m not sure that this did anything since I used the wrong name and it still worked.

mount /dev/mapper/ubuntu--vg-root /
exit

Enable Networking from the recovery menu. Then reenter command line.

My drive still said 0% space. I believe there is a error message file or some archive somewhere that is the cause of the full drive. But I couldn’t locate it, so I just deleted some old files to make enough room to update.

apt update && apt upgrade

There’s always problems with nvidia, so I updated those as well.

ubuntudrivers autoinstall

I took the opportunity to modify grub as well:

nano /etc/default/grub

I used the same boot flags listed above.

Then update grub and reboot.

update-grub
reboot

And everything is right with the world again.