How to disable intel gpu acceleration (dri)? [Solved]

Compiz, KDE, Gnome, Fluxbox, etc...

Moderator: Moderators

Post Reply
User avatar
linuxfluesterer
Old Dear Hen
Posts: 873
Joined: Thu Sep 20, 2012 19:47
Location: Germany

How to disable intel gpu acceleration (dri)? [Solved]

Post by linuxfluesterer » Sun Sep 16, 2018 19:44

Hallo guys.
I'm using Sabayon with Plasma 5.13.5 with Kernel 4.18.6.
I just installed simplescreenrecorder which I remember as a good, fast recording tool for desktop recording.
But I have trouble, when I am playing the recorded desktop (I saved in mp4 format).
There is a recurring flickering which is better described here:
http://www.maartenbaert.be/simplescreen ... shooting/

A (possible) solution is also given here:

Code: Select all

The recording occasionally flickers, showing parts of the desktop background instead of windows 
This is a known problem with Mutter-based window managers, which are used by GNOME 3 and Cinnamon. 
Since this is a window manager flaw, other recording software is affected by this too. 
For Intel GPUs, the flickering can sometimes be eliminated by uninstalling the driver for 2D acceleration (xserver-xorg-video-intel, 
xf86-video-intel or similar).
If that doesn't help, then the only solution is to switch to a different window manager, or use OpenGL recording.
I only have a cpu built in gpu in my intel processor, a HD630 gpu with 128MBytes shared memory.
https://ark.intel.com/de/products/97122 ... o-3_80-GHz

This is a sniplet of my /var/log/Xorg.0.log:

Code: Select all

[     2.031] (==) ModulePath set to "/usr/lib64/xorg/modules"
[     2.031] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[     2.031] (II) Loader magic: 0x55905091cce0
[     2.031] (II) Module ABI versions:
[     2.031]    X.Org ANSI C Emulation: 0.4
[     2.031]    X.Org Video Driver: 23.0
[     2.031]    X.Org XInput driver : 24.1
[     2.031]    X.Org Server Extension : 10.0
[     2.032] (++) using VT number 1

[     2.032] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     2.032] (II) xfree86: Adding drm device (/dev/dri/card0)
[     2.045] (--) PCI:*(0:0:2:0) 8086:5912:1849:5912 rev 4, Mem @ 0xde000000/16777216, 0xc0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[     2.045] (II) LoadModule: "glx"
[     2.045] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[     2.055] (II) Module glx: vendor="X.Org Foundation"
[     2.055]    compiled for 1.19.5, module version = 1.0.0
[     2.055]    ABI class: X.Org Server Extension, version 10.0
[     2.055] (==) Matched intel as autoconfigured driver 0
[     2.055] (==) Matched intel as autoconfigured driver 1
[     2.055] (==) Matched modesetting as autoconfigured driver 2
[     2.055] (==) Matched fbdev as autoconfigured driver 3
[     2.055] (==) Matched vesa as autoconfigured driver 4
[     2.055] (==) Assigned the driver to the xf86ConfigLayout
[     2.055] (II) LoadModule: "intel"
[     2.055] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[     2.058] (II) Module intel: vendor="X.Org Foundation"
[     2.058]    compiled for 1.19.5, module version = 2.99.917
[     2.058]    Module class: X.Org Video Driver
[     2.058]    ABI class: X.Org Video Driver, version 23.0
[     2.058] (II) LoadModule: "modesetting"
[     2.058] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[     2.059] (II) Module modesetting: vendor="X.Org Foundation"
[     2.059]    compiled for 1.19.5, module version = 1.19.5
[     2.059]    Module class: X.Org Video Driver
[     2.059]    ABI class: X.Org Video Driver, version 23.0
[     2.059] (II) LoadModule: "fbdev"
[     2.059] (WW) Warning, couldn't open module fbdev
[     2.059] (II) UnloadModule: "fbdev"
[     2.059] (II) Unloading fbdev
[     2.059] (EE) Failed to load module "fbdev" (module does not exist, 0)
[     2.059] (II) LoadModule: "vesa"
[     2.059] (WW) Warning, couldn't open module vesa
[     2.059] (II) UnloadModule: "vesa"
[     2.059] (II) Unloading vesa
[     2.059] (EE) Failed to load module "vesa" (module does not exist, 0)
[     2.059] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[     2.059] (II) intel: Driver for Intel(R) HD Graphics
[     2.059] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[     2.059] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[     2.059] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     2.060] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20180514
[     2.060] (WW) Falling back to old probe method for modesetting
[     2.060] (--) intel(0): gen9 engineering sample
[     2.060] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 4 threads
[     2.060] (II) intel(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[     2.060] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[     2.060] (==) intel(0): RGB weight 888
[     2.060] (==) intel(0): Default visual is TrueColor
[     2.061] (II) intel(0): Output DP1 has no monitor section
[     2.061] (II) intel(0): Enabled output DP1
[     2.061] (II) intel(0): Output HDMI1 has no monitor section
[     2.061] (II) intel(0): Enabled output HDMI1
[     2.061] (II) intel(0): Output HDMI2 has no monitor section
[     2.061] (II) intel(0): Enabled output HDMI2
[     2.061] (II) intel(0): Output HDMI3 has no monitor section
[     2.061] (II) intel(0): Enabled output HDMI3
[     2.061] (II) intel(0): Output DP2 has no monitor section
[     2.061] (II) intel(0): Enabled output DP2
[     2.061] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[     2.061] (II) intel(0): Output VIRTUAL1 has no monitor section
[     2.061] (II) intel(0): Enabled output VIRTUAL1
[     2.061] (--) intel(0): Output HDMI2 using initial mode 1920x1080 on pipe 0
[     2.061] (==) intel(0): TearFree enabled
[     2.061] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[     2.061] (==) intel(0): DPI set to (96, 96)
[     2.061] (II) Loading sub module "dri3"
[     2.061] (II) LoadModule: "dri3"
[     2.061] (II) Module "dri3" already built-in
[     2.061] (II) Loading sub module "dri2"
[     2.061] (II) LoadModule: "dri2"
[     2.061] (II) Module "dri2" already built-in
[     2.061] (II) Loading sub module "present"
[     2.061] (II) LoadModule: "present"
[     2.061] (II) Module "present" already built-in
[     2.061] (II) UnloadModule: "modesetting"
[     2.061] (II) Unloading modesetting
[     2.061] (==) Depth 24 pixmap format is 32 bpp
[     2.061] (II) intel(0): SNA initialized with Kabylake (gen9) backend
[     2.061] (==) intel(0): Backing store enabled
[     2.061] (==) intel(0): Silken mouse enabled
[     2.061] (II) intel(0): HW Cursor enabled
[     2.061] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[     2.061] (==) intel(0): DPMS enabled
[     2.061] (==) intel(0): Display hotplug detection enabled
[     2.061] (II) intel(0): [DRI2] Setup complete
[     2.061] (II) intel(0): [DRI2]   DRI driver: i965
[     2.061] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[     2.061] (II) intel(0): direct rendering: DRI2 enabled
[     2.061] (II) intel(0): hardware support for Present enabled
[     2.061] (--) RandR disabled
[     2.082] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[     2.082] (II) AIGLX: enabled GLX_ARB_create_context
[     2.082] (II) AIGLX: enabled GLX_ARB_create_context_profile
[     2.082] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[     2.082] (II) AIGLX: enabled GLX_INTEL_swap_event
[     2.082] (II) AIGLX: enabled GLX_SGI_swap_control
[     2.082] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[     2.082] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[     2.082] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[     2.082] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[     2.082] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[     2.082] (II) AIGLX: Loaded and initialized i965
[     2.082] (II) GLX: Initialized DRI2 GL provider for screen 0
[     2.084] (II) intel(0): switch to mode [email protected] on HDMI2 using pipe 0, position (0, 0), rotation normal, reflection none
[     2.094] (II) intel(0): Setting screen physical size to 508 x 285
...
I would like to follow the suggestion, so, how can I disable 2D acceleration , how can I find the similar module to xserver-xorg-video-intel in Sabayon?
And: Will this affect anything in my Plasma? I assume, I have to disable dri2 and maybe dri3 in xorg.conf file, but how?

Or: Do you have experiences with this topic (flickering of ssr recorded mp4 files) and you know how to prevent flickering?

Thank you very much in advance.

-Linuxfluesterer (I love KDE...)
Last edited by linuxfluesterer on Thu Nov 15, 2018 20:34, edited 1 time in total.
Take away Facebook from me and let there be real people again...

marcb
Simple Hen
Posts: 86
Joined: Tue Jul 06, 2010 22:42

Re: How to disable intel gpu acceleration (dri)?

Post by marcb » Sun Sep 16, 2018 21:32

equo s x11-drivers/xf86-video-intel

Code: Select all

╠      @@ Package: x11-drivers/xf86-video-intel-2.99.917_p20180214-r1 branch: 5, [sabayon-weekly] 
╠          Available:     version: 2.99.917_p20180214-r1 ~ tag: NoTag ~ revision: 0
╠          Installed:     version: Not installed ~ tag: n/a ~ revision: n/a
╠          Slot:          0
╠          Homepage:      https://www.x.org/wiki/ 
╠                         https://cgit.freedesktop.org/ 
╠          Description:   X.Org driver for Intel cards 

User avatar
linuxfluesterer
Old Dear Hen
Posts: 873
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: How to disable intel gpu acceleration (dri)?

Post by linuxfluesterer » Mon Sep 17, 2018 12:51

Hallo marcb.
Thank you for reply. This is my result of xf86-video-intel.

Code: Select all

equo s xf86-video-intel
╠  @@ Suche...
╠      @@ Paket: x11-drivers/xf86-video-intel-2.99.917_p20180214-r1 Branch: 5, [sabayonlinux.org] 
╠          Verfügbar:      Version: 2.99.917_p20180214-r1 ~ tag: NoTag ~ Version: 0
╠          Installiert:    Version: 2.99.917_p20180214-r1 ~ tag: NoTag ~ Version: 0
╠          Slot:           0
╠          Homepage:       https://www.x.org/wiki/ 
╠                          https://cgit.freedesktop.org/ 
╠          Beschreibung:   X.Org driver for Intel cards 
╠          Lizenz:         MIT
╠   Schlüsselwörter:  xf86-video-intel
╠   Gefunden:         1 Eintrag
As you can see, this package is installed.
So, this is for non 86-64 (32bit) operating systems or am I wrong?
Second, what should I do now? Uninstall, with completely purge this package?
Will anything else (speed, strange behavior or) be affected when uninstalled?

Thank you in advance again.

-Linuxfluesterer (I love KDE...)
Take away Facebook from me and let there be real people again...

User avatar
sabayonino
Sagely Hen
Posts: 3279
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: How to disable intel gpu acceleration (dri)?

Post by sabayonino » Mon Sep 17, 2018 13:06

You can try to install

x11-misc/driconf-0.9.1-r2

and run DRIConf GTK2 application to setup the Intel acceleration
You can find it on KDE Menu.
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

User avatar
linuxfluesterer
Old Dear Hen
Posts: 873
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: How to disable intel gpu acceleration (dri)?

Post by linuxfluesterer » Mon Sep 17, 2018 22:26

Thank you for this suggestion, Sabayonino.
First I will try to remove x11-drivers/xf86-video-intel-2.99.917_p20180214-r1 and test the result for it.
If that works, I will be satisfied then.
I will have time tomorrow afternoon (I hope so).

Linuxfluesterer (I love KDE...)
Take away Facebook from me and let there be real people again...

Post Reply