Ubuntu: Graphics issue after upgrading to 18.04: scrambled text and background in some windows



Question:

After upgrading to 18.04, I started experiencing several issues, and in particular there is a graphics issue with text and background in scrollable parts of some windows.

The problem appears usually after i try to scroll the text in a scrollable area or resize the window. Maybe other parts of windows are also affected. Sometimes the problem appears immediately on opening a window.

When i scroll a scrollable area or resize the whole window, text and background get scrambled by overlapping on themselves. Sometimes black or transparent areas appear. I am attaching a picture with a mild occurrence of the problem. gitg 3.26 windows are strongly affected.

I did not make a clean install of 18.04 but upgraded from older versions. I also removed or reinstalled quite a few packages in the process.

What could cause this problem?

enter image description here

I have Intel HD Graphics 520 (Skylake GT2).

Here is some diagnostic:

*

§ lsmod | grep -E 'video|i915|wmi'  uvcvideo               86016  0  videobuf2_vmalloc      16384  1 uvcvideo  videobuf2_memops       16384  1 videobuf2_vmalloc  videobuf2_v4l2         24576  1 uvcvideo  videobuf2_core         40960  2 uvcvideo,videobuf2_v4l2  videodev              184320  3 uvcvideo,videobuf2_core,videobuf2_v4l2  media                  40960  2 uvcvideo,videodev  snd_rawmidi            32768  1 snd_seq_midi  asus_nb_wmi            28672  0  asus_wmi               28672  1 asus_nb_wmi  sparse_keymap          16384  1 asus_wmi  snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi  snd                    81920  29 snd_compress,snd_hda_intel,snd_hwdep,snd_hda_codec_conexant,snd_seq,snd_hda_codec,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_seq_device,snd_soc_core,snd_pcm  i915                 1617920  34  i2c_algo_bit           16384  1 i915  drm_kms_helper        167936  1 i915  drm                   401408  18 i915,drm_kms_helper  wmi                    24576  1 asus_wmi  video                  40960  2 asus_wmi,i915  

*

§ lspci | grep VGA  00:02.0 VGA compatible controller: Intel Corporation HD Graphics 520 (rev 07)  

*

§ ls -l /lib/firmware/i915/ | grep skl  -rw-r--r-- 1 root root   8824 Mar 30  2017 skl_dmc_ver1_23.bin  -rw-r--r-- 1 root root   8928 Mar 30  2017 skl_dmc_ver1_26.bin  -rw-r--r-- 1 root root   8928 Mar 16 18:25 skl_dmc_ver1_27.bin  lrwxrwxrwx 1 root root     19 Mar 30  2017 skl_dmc_ver1.bin -> skl_dmc_ver1_26.bin  -rw-r--r-- 1 root root 109636 Mar 16 18:25 skl_guc_ver1.bin  -rw-r--r-- 1 root root 128320 Mar 16 18:25 skl_guc_ver4.bin  -rw-r--r-- 1 root root 129024 Mar 30  2017 skl_guc_ver6_1.bin  lrwxrwxrwx 1 root root     18 Mar 30  2017 skl_guc_ver6.bin -> skl_guc_ver6_1.bin  -rw-r--r-- 1 root root 147520 Mar 16 18:25 skl_guc_ver9_33.bin  -rw-r--r-- 1 root root 140992 Dec  5 21:31 skl_huc_ver01_07_1398.bin  

I noticed that i do not have xserver-xorg-video-intel installed, but "Software & Updates > Additional Drivers" does not propose any drivers to install.

By the way, 3D gaming works fine.


Things i tried that did not help:

  1. sudo apt install xserver-xorg-video-intel,

  2. sudo update-initramfs -u.


Solution:1

Reinstall the Drivers

Per this answerr try reinstalling intel drivers:

sudo apt-get update  sudo apt-get install --reinstall xserver-xorg-video-intel xserver-xorg-core  sudo dpkg-reconfigure xserver-xorg  

If this doesn't work, you might be able to fix it by tweaking settings with intel goodies:

sudo apt install intel-microcode inteltool intel-gpu-tools  

But I don't know how to use them so you are on your own. Here is a reference manual for intel-gpu-tools and you can always read the manpages. eg

man intel-gpu-tools  


Solution:2

When you run update-initramfs you should not be getting error messages for missing skylake drivers.

Under Ubuntu 16.04 LTS:

$ sudo update-initramfs -u  update-initramfs: Generating /boot/initrd.img-4.14.34-041434-generic  Adding /lib/firmware/i915/skl_guc_ver9_33.bin  

Under Ubuntu 18.04 LTS:

$ sudo update-initramfs -u  update-initramfs: Generating /boot/initrd.img-4.15.0-20-generic  Adding /lib/firmware/i915/skl_guc_ver9_33.bin  

In particular you should be seeing the last line. If not follow the instructions here: Updated kernel to 4.8 now missing firmware warnings


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »