[amdgpu] Fullscreen in any Wayland / Xwayland window shows a black screen (no screen detected)

Bug #2039570 reported by Noctis Bennington
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Unknown
linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I go into "fullscreen" watching a video while browsing in Firefox or when playing a game through Steam (fullscreen mode), the screen goes black.

The workaround I have discovered to get back is to enter the gdm from "Ctrl + alt + F1" and then return to the session you were in (normally, "Ctrl + alt + F2).

Edit: It happens when I connect a second monitor and use it as the primary display while the laptop screen is disabled.

MSI laptop.
CPU: AMD Ryzen 7 Series 4000
GPU: AMD Radeon RX 5600m
RAM: 16GB
NVM: 1TB.

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: linux-image-6.5.0-9-generic 6.5.0-9.9
ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
Uname: Linux 6.5.0-9-generic x86_64
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: noctis 2095 F.... wireplumber
 /dev/snd/controlC0: noctis 2095 F.... wireplumber
 /dev/snd/seq: noctis 2090 F.... pipewire
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 17 15:00:55 2023
InstallationDate: Installed on 2023-10-13 (4 days ago)
InstallationMedia: Ubuntu 23.10 "Mantic Minotaur" - Release amd64 (20231011)
MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
ProcEnviron:
 LANG=es_ES.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcFB:
 0 amdgpudrmfb
 1 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-9-generic root=UUID=fb325c2c-11c5-43e3-aceb-e921d5a7b323 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-6.5.0-9-generic N/A
 linux-backports-modules-6.5.0-9-generic N/A
 linux-firmware 20230919.git3672ccab-0ubuntu2.1
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/26/2020
dmi.bios.release: 1.1
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: E17EKAMS.101
dmi.board.asset.tag: Default string
dmi.board.name: MS-17EK
dmi.board.vendor: Micro-Star International Co., Ltd.
dmi.board.version: REV:1.0
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 10
dmi.chassis.vendor: Micro-Star International Co., Ltd.
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrE17EKAMS.101:bd10/26/2020:br1.1:svnMicro-StarInternationalCo.,Ltd.:pnAlpha17A4DEK:pvrREV1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMS-17EK:rvrREV1.0:cvnMicro-StarInternationalCo.,Ltd.:ct10:cvrDefaultstring:sku17EK.1:
dmi.product.family: Al
dmi.product.name: Alpha 17 A4DEK
dmi.product.sku: 17EK.1
dmi.product.version: REV:1.0
dmi.sys.vendor: Micro-Star International Co., Ltd.

Revision history for this message
Noctis Bennington (noctis13) wrote :
Revision history for this message
Noctis Bennington (noctis13) wrote :

I add here lspci-vnvn just in case.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
description: updated
Revision history for this message
Noctis Bennington (noctis13) wrote : Re: Fullscreen in any Wayland/Xwayland window shows a blank screen

I just realised that this doesn't happen when you suspend the computer and then resume it.

summary: - Fullscreen in any Wayland/Xwayland window shows a blank screen
+ [amdgpu] Fullscreen in any Wayland / Xwayland window shows a blank
+ screen
summary: - [amdgpu] Fullscreen in any Wayland / Xwayland window shows a blank
- screen
+ [amdgpu] Fullscreen in any Wayland / Xwayland window shows a black
+ screen (no screen detected)
Revision history for this message
Noctis Bennington (noctis13) wrote (last edit ):

More info: In "Settings - Monitors" it shows like it's not connected to the second monitor when this happens. It is like it disconnects automatically from the system for some reason.

Revision history for this message
Noctis Bennington (noctis13) wrote :

I opened a report here in freedesktop:

https://gitlab.freedesktop.org/drm/amd/-/issues/2993#note_2172154

And as Michel Dänzer says, it's possible this is an issue related to Mutter. Here in these logs from journalctl gnome-shell I attach here, you can see the messages that appear just when, upon opening a game in fullscreen, the screen 'disconnects'.

tags: added: amdgpu
tags: added: multimonitor
Revision history for this message
Noctis Bennington (noctis13) wrote :

Here, there's an issue opened in Gitlab Gnome about mutter that could be related to this issue (thanks again to Michel Dänzer):
https://gitlab.gnome.org/GNOME/mutter/-/issues/3036

Changed in linux:
status: Unknown → New
no longer affects: linux (Ubuntu)
Revision history for this message
Noctis Bennington (noctis13) wrote :

Bug fixed with kernel 6.6.x, more info, please see here:

https://gitlab.gnome.org/GNOME/mutter/-/issues/3036

Revision history for this message
Mario Limonciello (superm1) wrote :

Is this happening possibly when there is a resolution change for the eDP? If so, can you please try the latest linux-6.5.y kernel: https://kernel.ubuntu.com/mainline/v6.5.13/

Revision history for this message
Noctis Bennington (noctis13) wrote :

No, this was an issue happening in monitors connected via HDMI.

Revision history for this message
Mario Limonciello (superm1) wrote :

OK thanks for clarifying. Can you please still try latest 6.5.13 and 6.6.6 and see if it happens in either of those?

Changed in linux:
status: New → Fix Released
Revision history for this message
Noctis Bennington (noctis13) wrote (last edit ):

6.5.13 ----> "Test amd64/build failed (rc=2, on=amd64, time=0:07:36, log=amd64/log)".

@superm1

In 6.6.6 this issue seems fixed FYI.

no longer affects: mutter (Ubuntu)
Revision history for this message
Mario Limonciello (superm1) wrote :

Since the PPA failed would you be able to manually build 6.5.13 to see if it's fixed there?

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.