Ubuntu – Ubuntu 18.04 not working with Intel Integrated Graphics


I'm trying to install 18.04 using my iGPU with the intention of using my dedicated GPU for GPU passthrough. Currently I'm just at the stage of trying to get Ubuntu just to work with my iGPU on the i5 6600K.

First time round I installed with just my RX480 as my primary gpu, the install went smoothly and everything was fine. I changed my primary gpu to the iGPU and instead of the Ubuntu splash screen I instead see the checks being done in the background, the screen flashes 4 times or so and then I get to the login screen (even though I had enabled auto-login). I enter the password, it looks like it is about to take me to the desktop, but it puts me back to the login screen.

I then thought that maybe I needed to install Ubuntu with the iGPU as the primary device, the first time round I started getting errors about holding bad packages and errors writing to virtual memory. So I tried again, this time removing the overclock from my CPU thinking it might be that. The install went perfectly until I had to reboot, then I got taken to the login screen but the screen is all torn and everything is illegible. I switched the primary device back to the dedicated GPU, and it boots up perfectly and the image is displayed properly.

I have tried adding GRUB_GFXPAYLOAD_LINUX=1920*1080 to my grub file which did not work and I tried updating xserver-xorg-video-intel but was told I had the latest version and I'm struggling to work out what is wrong and just getting ready to give up on this project.

If it helps at all my system specs are:

i5 6600k


RX 480 8GB

MSI Z170 Krait Gaming 3x

If anyone can help I'll love you forever and if you need me to provide any info please let me know what you need.

Best Answer

If I understand correctly, your first wish is to run on the IGD exclusively, then sort the remaining issues. The following steps should achieve the first goal to increasing degrees of thoroughness.

Check for improvement after each step, and stop when it works. Don't needlessly blacklist the kernel modules, as this could mean the discrete card won't be powered down. In fact, you may want to swap steps 3 and 4.

1. Configure Xorg to prefer the Intel

Create file /etc/X11/xorg.conf.d/10-intel.conf (this may require mkdir /etc/X11/xorg.conf.d), containing:

Section "OutputClass"
   Identifier "Intel"
   MatchDriver "i915"
   Driver "intel"

2. Disable modeswitching out of IGD

Edit /etc/default/grub and add xdg.force_integrated=1 to GRUB_CMDLINE_LINUX_DEFAULT. When done, run sudo update-grub before rebooting.

3. Blacklist the nouveau kernel driver

Edit /etc/default/grub and add modprobe.blacklist=nouveau to GRUB_CMDLINE_LINUX_DEFAULT. When done, run sudo update-grub before rebooting. (For AMD blacklist radeon, amdgpu, etc..)

4. Uninstall the Xorg nouveau driver

sudo apt remove xserver-xorg-video-nouveau  # or radeon, amdgpu ...

This will trigger removal of the xserver-xorg-video-all meta-package, which by default is installed. That is alright, but you may want to keep xserver-xorg-video-intel installed (but see update below):

sudo apt remove xserver-xorg-video-all
sudo apt install xserver-xorg-video-intel

Update 2019 the package description for xserver-xorg-video-intel now recommends against installing the package. It should only be needed on old (pre 2007) hardware.

Note: this is an edited copy of my answer to this question, which may have useful pointers for your follow-on steps, as it is about resolving issues with the discrete card.

Related Question