Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 803860 - >=media-libs/mesa-21.2.0_rc2 - absent or partial screen updates (black screen)
Summary: >=media-libs/mesa-21.2.0_rc2 - absent or partial screen updates (black screen)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Highest critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-24 16:26 UTC by John Bowler
Modified: 2022-02-03 00:35 UTC (History)
2 users (show)

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


Attachments
emerge --info media-libs/mesa (emerge-info.txt,7.02 KB, text/plain)
2021-07-24 16:28 UTC, John Bowler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Bowler 2021-07-24 16:26:26 UTC
After updating to media-libs/mesa-21.2.0_rc2 and rebooting (required) the x server screen does not display until refreshed by, e.g., a console swap.

So the display is initially a black screen with the cursor, which does move with the mouse, but a swap to (e.g.) vt2 and back to vt7 displays the log in screen.  After a log in (which has to be typed blind) I get a partial display update with only the top ~10% of the screen displayed.

May be related to/duplicate of https://bugs.gentoo.org/show_bug.cgi?id=803050

Weird things about my system: I'm using a 4k display in PORTRAIT mode.  I'm using the integrated Intel 630 hardware (Asus Prime Z370-A motherboard.)

I saw a missing driver when starting an app which uses the camera after the rebuild, before the reboot, but no other problem.

Reproducible: Always

Steps to Reproduce:
1. merge media-libs/mesa-21.2.0_rc2
2. reboot
3.
Actual Results:  
Black screen on vt7 (x server)

Expected Results:  
Login screen displayed immediately

Linux hippopopus.jbowler.com 5.13.4-gentoo+systemd #1 SMP Wed Jul 21 09:09:53 PDT 2021 x86_64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz GenuineIntel GNU/Linux

The problem happens with 5.13.3 as well.
Comment 1 John Bowler 2021-07-24 16:28:35 UTC
Created attachment 726562 [details]
emerge --info media-libs/mesa
Comment 2 John Bowler 2021-07-24 16:42:05 UTC
The package settings in the emerge --info attachment refer to the previous package (I had to mask 21.2.0_rc2 to be able to report this bug!)
Comment 3 Sergey 'L29Ah' Alirzaev 2021-07-25 04:13:57 UTC
Probably i have the same problem when running monero-wallet-gui: the screen goes black and only the mouse cursor is updated until i restart X. Downgrading mesa resolved the problem for me. Intel Corporation UHD Graphics 620 here.
Comment 4 John Bowler 2021-07-25 16:09:49 UTC
(In reply to Sergey 'L29Ah' Alirzaev from comment #3)
> Intel Corporation UHD Graphics 620 here.

What are your display characteristics; i.e. is it a portrait display and what are the dimensions?
Comment 5 Sergey 'L29Ah' Alirzaev 2021-07-25 16:18:49 UTC
(In reply to John Bowler from comment #4)
> (In reply to Sergey 'L29Ah' Alirzaev from comment #3)
> > Intel Corporation UHD Graphics 620 here.
> 
> What are your display characteristics; i.e. is it a portrait display and
> what are the dimensions?

Nah, a regular 1920x1200 eDP laptop display. Why?
Comment 6 John Bowler 2021-07-25 17:27:52 UTC
(In reply to Sergey 'L29Ah' Alirzaev from comment #5)
> (In reply to John Bowler from comment #4)
> > (In reply to Sergey 'L29Ah' Alirzaev from comment #3)
> > > Intel Corporation UHD Graphics 620 here.
> > 
> > What are your display characteristics; i.e. is it a portrait display and
> > what are the dimensions?
> 
> Nah, a regular 1920x1200 eDP laptop display. Why?

It seems to be a display update issue; I was able to get a completely or partially correct display by flipping to a console then back (Alt-Shift-F2, Alt-Shift-F7).  So the rendering seems to be occurring but not the display update.  Since my display is portrait it might have been some bug in the handling of the rotation, but it happens on your system too so it isn't that.

I assume it does work on quite a lot of systems.  The common factor seems to be the use of the intel driver.
Comment 7 John Bowler 2021-08-05 14:46:43 UTC
I confirmed this bug is not fixed in:

=media-libs/mesa-21.2.0

Fix (apart from not using Gentoo desktop) is to mask:

>=media-libs/mesa-21.2.0_rc2
Comment 8 /cbx 2021-08-10 08:16:47 UTC
Can confirm John Bowler's report. On multiple machines with UHD Graphics 630 rendering is too slow to be usable with vanilla 5.13.9 and mesa-21.2.0. Older Chipsets (like Haswell) working OK.

Had to downgrade to mesa-21.2.5
Comment 9 /cbx 2021-08-10 08:43:25 UTC
OK, sorry, see me row back. Adding "iris" to VIDEO_CARDS as stated in Bug 803839 solves this issue.
Comment 10 John Bowler 2021-08-12 00:03:36 UTC
Adding "iris" to the VIDEO_CARDS variable in make.conf also makes the total-non-redraw problem go away.  That's not really surprising since it is apparently using a completely different driver.

The whole mess of settings is documented here:

https://wiki.gentoo.org/wiki/Intel#X_drivers

So my system is a gen 8 (apparently; gen 8 seems to be Core i7) and I had "intel i965" but now I apparently need "intel i965 iris".  There's something on that web page about it now being used in xorg-drivers:

> Important
> Beginning with x11-base/xorg-drivers-1.19, the x11-base/xorg-drivers package (in addition to the mesa package) includes support for the i965 USE flag. This will omit selection of the deprecating x11-drivers/xf86-video-intel driver in favor of the more maintained, generic modesetting DDX driver built into x11-base/xorg-server.

I don't know if there is some hidden problem there if Intel are blacklisting i965 on G8/I7, but I don't see any issues.  It does imply that removing "i965" from the list might cause issues, but I haven't tried that.

It does seem that this would best be fixed inside the gentoo package configuration by, maybe, failing to ebuild mesa if a broken driver (the fallback, apparently) is going to be used.  I'm pretty sure the instructions have changed since I first set up make.conf for my system; I don't think it was my error that left "iris" off the list.  Since lspci can detect the broken config in user mode maybe the install step could fail.  (I'm BSing here, but when this gets dropped into stable I imagine there will be quite a few annoyed people.)
Comment 11 Kim Nilsson 2021-08-21 19:08:47 UTC
I don't want to hijack anything here, but I have an i7-8665U (UHD 620) with VIDEO_CARDS="intel i965" and mpv video playback completely broke on my system when upgrading to mesa-21.2.1. After seeing this thread and changing to VIDEO_CARDS="intel i965 iris" everything started working again.
Comment 12 m1027 2021-10-30 20:09:26 UTC
I faced a similar (same?) issue trying to go for mesa-21.2.2, coming from
mesa-21.1.7: Having Gnome on Wayland, screen updates were lagging behind for
seconds, typing was nearly impossible, with heavy CPU loads.

Although only having UHD Graphics 620 (not 630), adding +video_cards_iris
fixed the issue for me, too. I am running smoothly with mesa-21.2.2 now.
Comment 13 Matt Turner gentoo-dev 2021-12-05 22:45:07 UTC
I've consolidated the different Intel-related VIDEO_CARDS options into VIDEO_CARDS=intel in mesa-9999.
Comment 14 Larry the Git Cow gentoo-dev 2022-02-03 00:35:55 UTC
The bug has been closed via the following commit(s):

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

commit 2cd171699fb941c94a11ddf029380173344a93cb
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-02-03 00:11:10 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-02-03 00:35:33 +0000

    media-libs/mesa: Version bump to 22.0.0_rc1
    
    Closes: https://bugs.gentoo.org/767964
    Closes: https://bugs.gentoo.org/803860
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/Manifest               |   1 +
 media-libs/mesa/mesa-22.0.0_rc1.ebuild | 463 +++++++++++++++++++++++++++++++++
 media-libs/mesa/mesa-9999.ebuild       |   2 +-
 3 files changed, 465 insertions(+), 1 deletion(-)