Can't fullscreen, or windows get automatically un-fullscreened, when using fractional scaling

Bug #1890141 reported by Syver Stensholt
86
This bug affects 16 people
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Same issue as this one: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1863391

Some websites like YouTube will attempt to fullscreen, just not successfully. Other websites, like Netflix, will fullscreen for a second and de-fullscreen after that. Some games act weirdly in fullscreen mode (this might be related, as I've never had this issue before now: https://github.com/ValveSoftware/csgo-osx-linux/issues/2429).

EDIT: This only happens when fractional scaling is enabled. My config; main 4K screen at 150% and secondary 1080p screen to the right at 100%. YouTube fullscreens fine on the sec. screen (1080 100%).

This is a gif I posted in the related bug report showing exactly what happens: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1863391/+attachment/5397743/+files/20200731_160007.gif

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: mutter 3.36.3-0ubuntu0.20.04.1
ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
Uname: Linux 5.4.0-42-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.4
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Mon Aug 3 14:03:00 2020
InstallationDate: Installed on 2020-07-30 (4 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: mutter
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Syver Stensholt (7rst1) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please tell us what your current scaling settings are.

Please also run these commands on the affected machine:

  lspci -k > lspcik.txt
  journalctl -b0 > journal.txt

and attach the resulting text files here.

tags: added: xrandr-scaling
Changed in mutter (Ubuntu):
importance: Undecided → High
status: New → Incomplete
Revision history for this message
Syver Stensholt (7rst1) wrote :

Here are the outputs

description: updated
description: updated
Revision history for this message
Syver Stensholt (7rst1) wrote :
Syver Stensholt (7rst1)
description: updated
summary: - Scaling issue with fullscreening YouTube, Netflix, games, etc
+ Can't fullscreen, or windows get automatically un-fullscreened, when
+ using fractional scaling
Changed in mutter (Ubuntu):
status: Incomplete → New
tags: added: amdgpu
Revision history for this message
Syver Stensholt (7rst1) wrote :

The behavior of the bug really varies between apps and boots. Now, for example, YouTube fullscreens fine without any glitching of the video or artifacts on the other screen. However Minecraft fullscreened at launch, but with half of the other screen being black. When I tried unfocusing and focusing Minecraft, it would turn both screens black for a second before appearing only maximized and not fullscreened (like experienced before with other games). It won't fullscreen again unless i quit the game and relaunch it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mutter (Ubuntu):
status: New → Confirmed
Revision history for this message
Mert Can Demir (validatedev) wrote :

https://www.reddit.com/r/Ubuntu/comments/iesevz/fractional_scaling_full_screen_video_causes_this/?utm_source=share&utm_medium=ios_app&utm_name=iossmf

This is my video link which I posted on Reddit, same bug has affected me with i915 driver.

One little note: This isn’t a case when I added upscaled monitor resolution (for me, it is 2160x1440 150% to 2880x1920 200%) config and setting intel to modesetting driver on /etc/X11/xorg.conf.d

There are two options for setting the correct scaling:
1. Using xrandr scaling options, causes tearing and fullscreen inconsistencies
2. Adding new upscaled monitor resolution with xrandr and choosing that

Second options has always worked flawlessly for me, but want to make a warning: second option doesn’t work on between kernel 5.0 and 5.4 (that means it doesn’t work on LTS kernel). They reverted a patch after 5.5, and it works flawlessly. Here’s the trick files that I’ve created: https://github.com/nekr0z/linux-on-huawei-matebook-13-2019#display

I think Ubuntu’s X11 fractional scaling method uses the first one, and that’s indeed buggy.

Revision history for this message
laurenz baba (laurenzbaba) wrote :

I am also affected by this really weird bug.
It happens on all applications that are using a fullscreen mode, no matter if in the browser or as a standalone application.
The videos i attached shows the problem when i use youtube.
It first starts normal for about 1 sec, then resizes, makes the second screen black and continues playing in just 1 fourth of the screen.
This is not very usable and extremly annoying.

I use a 4k monitor with 125 % as primary and a FHD monitor as secondary with 100% scaling.

Revision history for this message
laurenz baba (laurenzbaba) wrote :

Here the same problem demonstration but just this time i am using gnome videos.
At least this app (native GTK) should work I think...

Revision history for this message
laurenz baba (laurenzbaba) wrote :

And the logs that were requested above.
Feel free to ask me if you need something else.
I really hope this gets fixed soon.

Revision history for this message
Syver Stensholt (7rst1) wrote :

Just came across another case, just to keep the ball rolling I'll describe it here. I tried fullscreening HBO Nordic, and it worked for 10 seconds the first time. Then the same thing happened as shown by my gif and laurenz video. After first fullscreen though, fullscreening it again triggers the glitch right away.

Revision history for this message
laurenz baba (laurenzbaba) wrote :

Anything new about this here? This is really a big deal for me and the user users too i guess.
Try imagine using you PC without the possibility to display anything in fullscreen mode, not very nice :/

If I can help you debug this further, feel free to ask me.

Revision history for this message
Mert Can Demir (validatedev) wrote :
Revision history for this message
laurenz baba (laurenzbaba) wrote :

Amazing, this extension really seems to be doing the trick.
At least playing fullscreen videos in Firefox and Gnome Videos seems to be working again.
But Kodi still doesn't work corrently. There is a huge dark border around the actual Kodi window, as you can see in the picture that I attached.

The Ubuntu wallpaper bottom right is my from my second Full HD monitor, if you are wondering.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes disabling fullscreen window "unredirection" should work, and was discussed in the previous bug too (bug 1862081).

Revision history for this message
laurenz baba (laurenzbaba) wrote :

Yeah maybe i was a bit too early with my statement.
Everything works great with this extension, except from "real" OpenGl/ Vulkan fullscreen applications.

For example any game (i tested Satisfactory and ROTTR) that i run in fullscreen mode has the problem that the screen is only filled about one quarter with the actual game, the rest is all black or sometimes just flickering stuff.
On the upside, when you really want to play a game like that, it doesn't clip over the second screen anymore like it did with the extension disabled.

I have the same problem with Kodi, that is also a OpenGL application iirc.

I mean you could turn on the extension everytime you start a game/ fullscreen application... But that is really inconvenient.

I can't imagine how so few people have this problem. Is the combination of a HiDPI and FullHD monitor with fractional scaling enabled so rare ...?

Revision history for this message
Joseph (joeyave) wrote :

Affects me too. Extension helped, thx!

Revision history for this message
Michael (mangelozzi) wrote :

I use 125% Fractional scaling, and if I try to take a screen shot using the app `Shutter`, if the region is almost the full screen, the screen goes wonky and keeps switching resolutions, its impossible to screenshot the area I require. Also VLC can't switch to full screen. Only Chrome successfully can go full screen, all other apps glitch quite badly.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This bug is about Xorg fractional scaling AFAICS.

Starting in Ubuntu 22.04 at least, everyone should be able to use Wayland fractional scaling. If anyone here is using Wayland already then please open a new bug for that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.