Bug 1311233

Summary: Enabling DRI3 breaks full screen apps
Product: [Fedora] Fedora Reporter: Hashem Nasarat <hashem>
Component: xorg-x11-drv-intelAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 23CC: ajax, hdegoede, slocombe, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-14 08:52:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Hashem Nasarat 2016-02-23 16:40:53 UTC
Description of problem:

Using a laptop with HD Graphics 5500

When I have an app fullscreen (youtube video, videogame, etc) I cant alt tab out of it because the display doesn't update (shows a frozen frame of the fullscreen app). Disabling DRI3 fixed this.

Version-Release number of selected component (if applicable):
xorg-x11-drv-intel-2.99.917-19.20151206.fc23.x86_64

How reproducible:
Quite

Steps to Reproduce:
1. Fullscreen a youtube video in firefox
2. Try to alt tab away
3. Observe that the display doesn't update and you're stuck with a frozen youtube video. logging in to a tty and killing firefox restores proper functionality until you try to fullscreen something again

This also happens when running games, e.g. Binding of Isaac.


Additional info:
I disabled DRI3 via 

Section "Device"
        Identifier  "Intel Graphics"
        Driver      "intel"
        Option      "DRI"       "2"
        Option "AccelMethod" "glamor"
EndSection

in /etc/X11/xorg.conf.d/20-intel.conf

Comment 1 dns 2016-03-03 20:18:29 UTC
It is likely that I have the same problem, though it shows up a little differently.
In any case, applying the suggestion given above to disable DRI3 clears up
the problem entirely.

Here is my test-case:

(I have a 1920x1200 Dell monitor)

Run a 720p video in vlc. (works normally: vlc window takes up ~1/3 of screen).

Hit "f" to go to full-screen. (because of mismatch between shape of monitor
and shape of the video window, this does *not* quite fill the whole monitor
real-estate: there is a small unused gap at bottom of screen which still shows
the desktop background: this is *normal*)

If I move my cursor, a small, roughly 6"x1" panel appears at bottom of screen
giving GUI controls for VLC. As this is higher than the available space, it
*should* overlap and be on top of the video window. However only the part
that is on top of the desktop itself shows, and the part that overlaps the
video window does *not* show. This is the *first* evidence of the trouble.

Now hit "f" to get out of full-screen mode, so we are back to a smaller window
for the video. The video continues to run normally in this reduced window as
it should, but the desktop exposed by getting out of full-screen mode is not
refreshed: it shows whatever was the last video-frame displayed when we left
full-screen. If I move my cursor over the desktop, the various desktop icons
I have on the desktop are displayed as I move the cursor over their location.
However I cannot get rid of the video-"snapshot" entirely this way. Also the
Mate panel at the top of the screen is also messed up until I move my cursor
over the different parts of it. This is the *second* evidence of trouble.

If I now switch workspaces to one where I have a maximized window running
(e.g. for thunderbird), all is well there, and when I switch back to the original workspace where vlc is running, the desktop is correctly refreshed.
Everything is normal from there on (until I go into fullscreen video again).

Switching to DRI2 as described eliminates all problems.

My system: (inxi -b)
System:    Host: xxxxx Kernel: 4.4.3-300.fc23.x86_64 x86_64 (64 bit)
           Desktop: MATE 1.12.1  Distro: Fedora release 23 (Twenty Three)
Machine:   System: Gigabyte product: N/A
           Mobo: Gigabyte model: Z77X-UD3H v: x.x
           Bios: American Megatrends v: F20e date: 01/06/2014
CPU:       Quad core Intel Core i7-3770 (-HT-MCP-) speed/max: 1609/3900 MHz
Graphics:  Card: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
           Display Server: X.org 1.18.0 driver: intel
           tty size: 80x74 Advanced Data: N/A for root
Network:   Card: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet driver: atl1c
Drives:    HDD Total Size: 2640.6GB (12.8% used)
RAID:      Devices: 1: /dev/md1 2: /dev/md2 3: /dev/md4 4: /dev/md3 5: /dev/md11 6: /dev/md10
Info:      Processes: 281 Uptime: 3:29 Memory: 1108.0/32065.7MB
           Client: Shell (bash) inxi: 2.2.33 

Hope this is helpful. The problem appeared around the last week of Feb/2016 I think, after a normal "dnf upgrade" of Fedora 23.

Comment 2 dns 2016-03-03 20:28:37 UTC
Small correction to above:
When I go into full-screen mode in VLC, the 720p video does not fill the
1920x1200 screen fully at top and bottom (about 1/2" not used), but that unused area is filled with black: I do not see the desktop anymore there.
The GUI panel that comes up does display in the black band along the
bottom but the upper part of it that should overlap the video does not show,
as described in previous post. Otherwise my previous post is correct.

Comment 3 Hans de Goede 2016-05-12 15:18:00 UTC
Hi,

I've just updated xorg-x11-drv-intel for Fedora-24 and I believe this update may fix the issue you are seeing. I've started a scratch-build of the updated xorg-x11-drv-intel for Fedora-23, which you can find here:

http://koji.fedoraproject.org/koji/taskinfo?taskID=14027416

Can you please download and install the rpm from that build, and let me know if that fixes things for you ?

Thanks & Regards,

Hans

Comment 4 dns 2016-05-13 15:04:32 UTC
Thanks, Hans, for doing this work and letting me know.

However, by coincidence, the day before your post (and email) about the new xorg-x11-drv-intel update that you had created, I thought, "I wonder if I still need to be in DRI2 now?", removed my /etc/X11/xorg.conf.d/20-intel.conf configuration file that forced DRI2, and rebooted. The problems I reported in this bug report were all gone. I tested as thoroughly as I could and none of the problems I described in this bug report occurred any more.

On this machine, Fedora 23 was fully updated.

So something else fixed the problems I reported. I'm sorry I didn't try this
experiment earlier so that we might have a clue as to what fixed things.

I will now download your new RPM, install and test again. If there is anything
new showing up I'll report here.

Thanks again,

david.

Comment 5 Hans de Goede 2016-05-14 08:52:34 UTC
David,

Thanks for the update, lets close this bug then.

Regards,

Hans