Any way to speed up Intel integrated graphics on 18.04?

6,006

Ok, so usually you just need to create an xorg.conf and properly set the parameters in order to get a much more decent experience. In this case the parameters AccelMethod set to sna and the TearFree to true are what does the trick. Here's how to proceed in the terminal:

First step:

sudo mkdir /etc/X11/xorg.conf.d/ 

Second step:

Run the command

echo -e 'Section "Device"\n Identifier "Intel Graphics"\n Driver "Intel"\n Option "AccelMethod" "sna"\n Option "TearFree" "true"\nEndSection' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf

This will create /etc/X11/xorg.conf.d/20-intel.conf file with content:

Section "Device"
 Identifier "Intel Graphics"
 Driver "Intel"
 Option "AccelMethod" "sna"
 Option "TearFree" "true"
EndSection

After that just reboot. Hope it helps.

Share:
6,006

Related videos on Youtube

jaltair9
Author by

jaltair9

Updated on September 18, 2022

Comments

  • jaltair9
    jaltair9 over 1 year

    I'm running a Core i7-6500U with integrated Intel HD Graphics 520. Under GNOME, all animations, such as going to the activities screen, scrolling in Firefox, etc are choppy. Even videos don't play smoothly in VLC. My laptop has a built-in 4K LCD panel, but it's choppy even at 1920x1080. Is there anything I can do to make it more smooth, or is this just the limits of the GPU? Kernel is 4.16.9. inxi -G says

    Graphics:  Card: Intel HD Graphics 520
               Display Server: x11 (X.Org 1.19.6 )
               drivers: fbdev (unloaded: modesetting,vesa)
               Resolution: [email protected]
               OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
               version: 4.5 Mesa 18.0.0-rc5
    

    glxinfo |grep -Ei 'opengl|direct rendering' says

    direct rendering: Yes
    OpenGL vendor string: Intel Open Source Technology Center
    OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) 
    OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.0.0-rc5
    OpenGL core profile shading language version string: 4.50
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 3.0 Mesa 18.0.0-rc5
    OpenGL shading language version string: 1.30
    OpenGL context flags: (none)
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 18.0.0-rc5
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    
    • Admin
      Admin almost 6 years
      i disabled the gnome animated effects and now its better. ... i have no problem with vlc video playback
    • Admin
      Admin almost 6 years
      @dsstorefile1 done
    • Admin
      Admin almost 6 years
      You can try an Ubuntu community flavour with a lighter desktop environment than standard Ubuntu: Lubuntu, Ubuntu Budgie, Ubuntu MATE, Xubuntu. Try them live (without installing) and install the flavour that works best for you.
    • Admin
      Admin almost 6 years
      Kernel 4.16.9 was garbage for me. Try default 4.15.0-20 or whatever it is now.
    • Admin
      Admin almost 6 years
      I upgraded the kernel from 4.15.0 in the hopes that it would help with performance, but it didn't seem to change much.
    • Admin
      Admin almost 6 years
      So after a lot of research and trying new things (including trying almost every other DE I could think of), I looked at intel_gpu_top and found that the GPU utilization was about 50% when scrolling Firefox at 1080p (which I somehow made much smoother), and maxed out at 4K, so I think that the integrated GPU simply can't handle the full 4K resolution smoothly.
    • Admin
      Admin almost 6 years
      You are right, standard Ubuntu can't handle the full 4K resolution smoothly. Have you tried an Ubuntu community flavour with a lighter desktop environment yet?
    • Admin
      Admin almost 6 years
      I ended up installing Mate, which while it isn't perfect (although maybe my standards are too high), is for the most part usable in 4K. intel_gpu_top only hits about 75% when scrolling. I still wish GNOME was more optimized though; I use it on my higher-end desktop and it's great.
  • abu_bua
    abu_bua almost 6 years
    Welcome to Ask Ubuntu! I recommend to edit this answer to expand it with specific details. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
  • Piotr Czekalski
    Piotr Czekalski over 4 years
    Thanks indeed major improvement on Intel 630 (i5 integrated). One hint as some users may be in doubt when they find xorg.conf.d folder in /usr/share/X11 so far driver looks in both localisations for the config files, so /etc/X11/xorg.conf/d is also valid, even parallel to the