How to solve the Ubuntu 18.04 display issues (lagging, flickering)?
Solution 1:
Assuming the nVidia is causing the issue, a workaround is to run on the Intel IGD exclusively. The following steps achieve this in increasing order of 'exclusivity'. You could check for improvement after each step.
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"
EndSection
2. Disable modeswitching out of IGD
Edit /etc/default/grub
and add xdg.force_integrated=1
to GRUB_CMDLINE_LINUX
. 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
. When done, run sudo update-grub
before rebooting.
4. Uninstall the Xorg nouveau driver
sudo apt remove xserver-xorg-video-nouveau
This will trigger removal of the xserver-xorg-video-all
meta-package, which by default is installed. That is alright, as long as xserver-xorg-video-intel
remains installed. To be sure:
sudo apt remove xserver-xorg-video-all
sudo apt install xserver-xorg-video-intel