Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673040 - x11-drivers/xf86-video-intel[-dri3] with vsync enabled in Plasma-5.14.4: flickering and blackouts since Qt-5.12.0
Summary: x11-drivers/xf86-video-intel[-dri3] with vsync enabled in Plasma-5.14.4: flic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-12 19:41 UTC by Franz Trischberger
Modified: 2019-04-26 21:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2018-12-12 19:41:15 UTC
I just updated to qt-5.12.0 and after a re-login plasma is unusable. It is flickering with long complete blackouts. It also seems to take way longer to load the desktop than with qt-5.11.3. This is with plasma on X. On wayland things seem to run smoother, though it still has the known issues like wonky placement of tooltips and menus.

===

emerge --info

Portage 2.3.52 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop, gcc-7.3.0, glibc-2.27-r6, 4.18.20-gentoo x86_64)
=================================================================
System uname: Linux-4.18.20-gentoo-x86_64-Intel-R-_Core-TM-_i3-2350M_CPU_@_2.30GHz-with-gentoo-2.6
KiB Swap:    5242876 total,   5242356 free
Timestamp of repository gentoo: Wed, 12 Dec 2018 17:04:24 +0000
Head commit of repository gentoo: b3226b823346a38540e2d0d2ffc59b2166989095

Head commit of repository kde: 54c37e370438c76df0d0e9bb3120f317469fbf6a

Head commit of repository qt: 7ffe15fefa8bb25be58249827d3bce997d9b4a51

sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p5) 2.30.0
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.13.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.40.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.12.6-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /var/repositories/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

kde
    location: /var/repositories/kde
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/kde.git
    masters: gentoo

qt
    location: /var/repositories/qt
    sync-type: git
    sync-uri: https://github.com/gentoo/qt
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=sandybridge -mno-aes -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXX="clang++"
CXXFLAGS="-march=sandybridge -mno-aes -O2 -pipe -ggdb"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build y --quiet-fail y --dynamic-deps y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apm berkdb branding bzip2 cairo cdda cdr cli crypt cups cxx dbus directfb dri dts dvd dvdr emboss encode exif fam ffmpeg flac fortran gdbm gif glamor gpm iconv infinality introspection ipv6 jpeg jpeg2k kipi lcdfilter lcms libtirpc linguas_de linguas_de_DE mad mmx mmxext mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp openrc pam pango pcre pdf png policykit ppds pulse pulseaudio readline sdl seccomp spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis vpx x264 xattr xcb xcomposite xml xscreensaver xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="krita sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="appmenu backlight battery bluez4 clock conf conf-applications conf-bindings conf-comp conf-dialogs conf-display conf-interaction conf-intl conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-wallpaper2 conf-window-manipulation conf-window-remembers connman contact cpufreq everything fileman fileman-opinfo gadman ibar ibox lokker mixer msgbus music-control notification pager pager16 pager-plain quickaccess shot start syscon systray tasks teamwork temperature tiling winlist wizard xkbswitch wl-desktop-shell wl-drm wl-fb wl-text-input wl-wl wl-x11 xwayland lua_targets_51 lua_targets_53" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="wacom libinput" KERNEL="linux" L10N="de de-DE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Sturmlechner gentoo-dev 2018-12-13 00:11:41 UTC
I can't really help you there, Qt 5.12.0 works just the same as Qt 5.11.3 on all of my systems so there is no grave global Qt issue.

Try with a new user profile for a start.
Comment 2 Franz Trischberger 2018-12-13 08:09:27 UTC
Of course I tried it with my testuser and completely wiped its ~/.config. Same issue.
The offending part seems to be the tearing prevention (vsync) in the compositor settings. I had to set it to "Never", every other setting (especially "Full screen repaints", which I had to use for nearly tear-free experience) causes this flickering.
I am currently on mesa-18.2.5. I will update to 18.3.1 and then report back.
Comment 3 Franz Trischberger 2018-12-13 08:53:46 UTC
An update to mesa-18.3.1 didn't help. I then enabled USE="dri3" for xf86-video-intel (to be in sync with mesa) and I can again enable full screen repaints without issues. However I remember that I had severe issues with dri3 in the past...
I still think something's wrong here and leave the bug open.
Comment 4 Andreas Sturmlechner gentoo-dev 2018-12-13 09:44:08 UTC
Do you still use the xf86-video-intel driver? It is basically unmaintained, Intel devs recommend modesetting themselves.
Comment 5 Franz Trischberger 2018-12-14 19:34:08 UTC
(In reply to Andreas Sturmlechner from comment #4)
> Do you still use the xf86-video-intel driver? It is basically unmaintained,
> Intel devs recommend modesetting themselves.

Yes, I do. I tried modesetting twice since the old DDX driver was called unmaintained. It is unusable on the desktop: I get extreme tearing even when setting "always repaint" in kwin's compositor setting, and there seems to be no video acceleration, video is stuttering. Also the whole desktop is laggy and certain programs (not all) are laggy and consume a lot of CPU.

On the laptop however it seems to work, I ran it 1.5 days without an issue. Unfortunately I then decided to migrate the desktop to qt-5.12 which now shows the same issues as the laptop (flickering with long blackouts or tearing)... I went through several wikis on how to set up intel modesetting driver and I already have everything as it should be - kernel, USE Flags, etc.

I can open an bug report concerning the graphics issues, however I think as long as the intel driver is stable and no USE Flags are masked Qt should work properly.
Comment 6 Andreas Sturmlechner gentoo-dev 2018-12-15 13:15:43 UTC
(In reply to Franz Trischberger from comment #5)
> I can open an bug report concerning the graphics issues, however I think as
> long as the intel driver is stable and no USE Flags are masked Qt should
> work properly.
But that's just assuming the problem is in Qt. xf86-video-intel has plenty of issues that may be exposed by one or the other toolkit version, that doesn't make it a toolkit bug though.
Comment 7 Franz Trischberger 2018-12-15 15:49:06 UTC
(In reply to Andreas Sturmlechner from comment #6)
> (In reply to Franz Trischberger from comment #5)
> > I can open an bug report concerning the graphics issues, however I think as
> > long as the intel driver is stable and no USE Flags are masked Qt should
> > work properly.
> But that's just assuming the problem is in Qt. xf86-video-intel has plenty
> of issues that may be exposed by one or the other toolkit version, that
> doesn't make it a toolkit bug though.

Sorry. No, that wasn't my intention. I just wanted to say that things should work, and if the intel driver starts to break things it should be masked if the issue isn't inside the broken packages.
Now this was the first .12 release and it is still masked unstable. But I hope that there is a solution (fixed intel driver, mesa or Qt) as soon as it goes stable.
Comment 8 Andreas Sturmlechner gentoo-dev 2018-12-15 16:11:29 UTC
I'm reassigning this to X11 as I'm afraid there is not much we can do on our side. Qt 5.12.0 may or may not be responsible for exposing this problem, however other X11 related updates in the same time frame seem more likely to me. Even though it would be good to cross-check this with Qt-5.11.3 on the affected system I have to advise against downgrading Qt as this opens a whole different can of worms.
Comment 9 Matt Turner gentoo-dev 2018-12-15 19:14:14 UTC
Sounds like I should just remove the knobs to disable dri3.
Comment 10 Larry the Git Cow gentoo-dev 2019-04-26 21:20:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e6ac224882527af7d365ef4b2bf909513504e4a

commit 4e6ac224882527af7d365ef4b2bf909513504e4a
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-04-26 21:17:27 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-04-26 21:20:26 +0000

    x11-drivers/xf86-video-intel: Version bump to 2.99.917_p20190301
    
    Closes: https://bugs.gentoo.org/653320
    Closes: https://bugs.gentoo.org/673040
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-drivers/xf86-video-intel/Manifest              |  1 +
 .../files/xf86-video-intel-gcc-pr65873.patch       | 12 +++
 .../xf86-video-intel-2.99.917_p20190301.ebuild     | 91 ++++++++++++++++++++++
 3 files changed, 104 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8b5cb6aee02a1b6f3acf10c9ec74eed97cb0c75

commit a8b5cb6aee02a1b6f3acf10c9ec74eed97cb0c75
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-04-26 21:10:07 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-04-26 21:20:15 +0000

    x11-drivers/xf86-video-intel: Enable DRI3 when USE=dri
    
    Bug: https://bugs.gentoo.org/673040
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-drivers/xf86-video-intel/xf86-video-intel-9999.ebuild | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)