[amdgpu] Screens go into flicker cycle after going blank with external monitor(s)

Bug #2023647 reported by Jarek Jaryszew
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mutter
New
Unknown
linux (Ubuntu)
Confirmed
Undecided
Unassigned
mutter (Ubuntu)
New
Undecided
Unassigned

Bug Description

This happens whenever screen goes blank after inactivity with external monitors.

When there is only one external monitor after few cycles the system recovers from the bug.

When there are more than one monitors the system almost never recovers until unplugging extra monitor, as shown in video: https://photos.app.goo.gl/td6coEKFQd3DKe9C7

Happens on desktop and login screen. The same result with Wayland and X11. Does not depend on size of the monitor, cable (HDMI or USB-C) or is it connected via USB-C hub or directly.

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: gnome-shell 44.1-0ubuntu1
ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
Uname: Linux 6.2.0-20-generic x86_64
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Jun 13 12:36:44 2023
DisplayManager: gdm3
InstallationDate: Installed on 2023-04-13 (60 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
RelatedPackageVersions: mutter-common 44.1-0ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to lunar on 2023-04-21 (52 days ago)
---
ProblemType: Bug
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 23.04
InstallationDate: Installed on 2023-04-13 (131 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
MachineType: Dell Inc. Inspiron 5415
Package: mutter
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.2.0-27-generic root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 6.2.0-27.28-generic 6.2.15
RelatedPackageVersions:
 linux-restricted-modules-6.2.0-27-generic N/A
 linux-backports-modules-6.2.0-27-generic N/A
 linux-firmware 20230323.gitbcdcfbcf-0ubuntu1.5
Tags: lunar
Uname: Linux 6.2.0-27-generic x86_64
UpgradeStatus: Upgraded to lunar on 2023-04-21 (122 days ago)
UserGroups: adm cdrom dialout dip lpadmin lxd plugdev sambashare sudo wireshark
_MarkForUpload: True
dmi.bios.date: 02/13/2023
dmi.bios.release: 1.15
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.15.0
dmi.board.name: 0WKFHK
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: 1.15.0
dmi.modalias: dmi:bvnDellInc.:bvr1.15.0:bd02/13/2023:br1.15:svnDellInc.:pnInspiron5415:pvr1.15.0:rvnDellInc.:rn0WKFHK:rvrA00:cvnDellInc.:ct10:cvr1.15.0:sku0A77:
dmi.product.family: Inspiron
dmi.product.name: Inspiron 5415
dmi.product.sku: 0A77
dmi.product.version: 1.15.0
dmi.sys.vendor: Dell Inc.

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

Thanks for the bug report. These log messages look relevant:

[118317.782940] jarek-Inspiron gnome-shell[3471]: Window manager warning: Configuring CRTC 79 with mode 1881 (1920 x 1200 @ 59,950172) at position 0, 0 and transform 0 failed
[118319.278873] jarek-Inspiron gnome-shell[3471]: meta_display_get_monitor_in_fullscreen: assertion 'monitor >= 0 && monitor < n_logical_monitors' failed

and

[94391.010815] jarek-Inspiron gnome-shell[3471]: Window manager warning: Configuring CRTC 79 with mode 1881 (1920 x 1200 @ 59,950172) at position 0, 0 and transform 0 failed
[94391.490646] jarek-Inspiron gnome-shell[3471]: meta_display_get_monitor_in_fullscreen: assertion 'monitor >= 0 && monitor < n_logical_monitors' failed

Can you please reproduce the problem again and then run 'journalctl -b0' to see if the same error messages occur during the flicker?

tags: added: multimonitor
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

And next time the flicker occurs, please run:

  journalctl -b0 > journal.txt

and attach the resulting text file here.

affects: gnome-shell (Ubuntu) → mutter (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I wonder if it matters that some of your configs in ~/.config/monitors.xml don't intersect with the origin 0,0. If you rename that file and then log in again, does the bug stop happening?

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote :

As requested attaching a result of a journalctl -b0 command.

This happened after renaming monitor.xml and monitor.xml~ so unfortunaltely that does not help.

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

Thanks. Can you repeat that in a Wayland session?

tags: added: amdgpu
Changed in mutter:
status: Unknown → New
Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote :

I'll try to find some time during the weekend to reproduce it with Wayland. I am using this PC for work during the week and Wayland keeps crashing with entire session whenever I am in a videocall. :)

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

That's also interesting to me. Please report that crash when you can...

https://wiki.ubuntu.com/Bugs/Responses#Missing_a_crash_report_or_having_a_.crash_attachment

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote :

I don't know what changed but I switched back to Wayland a few days ago and cannot repoduce any glitches I suffered. Is this the week I stop regretting buying a laptop on AMD chipset?

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

It looks like a kernel update was released a few days ago so maybe that fixed it?

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote :

My optimism was to early. Journal dump attached. Took it after unplugging one of the monitors and waiting few flickers for desktop to stabilize.

Btw, were should I report that Slack crashes when I right click inside? :D

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

There's a hardware connection problem which seems to come first in some cases:

cze 23 15:35:36 jarek-Inspiron kernel: [drm] perform_link_training_with_retries: Link(2) training attempt 1 of 4 failed @ rate(10) x lane(2) : fail reason:(1)
...
cze 23 15:35:36 jarek-Inspiron kernel: [drm] perform_link_training_with_retries: Link(2) training attempt 2 of 4 failed @ rate(10) x lane(2) : fail reason:(1)
cze 23 15:35:37 jarek-Inspiron kernel: [drm] perform_link_training_with_retries: Link(2) training attempt 3 of 4 failed @ rate(10) x lane(2) : fail reason:(1)
...
cze 23 15:35:37 jarek-Inspiron kernel: [drm] enabling link 2 failed: 15
cze 23 15:35:38 jarek-Inspiron gnome-shell[3512]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failed
cze 23 15:35:38 jarek-Inspiron gnome-shell[3512]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
cze 23 15:35:38 jarek-Inspiron gnome-shell[3512]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failed
cze 23 15:35:38 jarek-Inspiron gnome-shell[3512]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
cze 23 15:35:38 jarek-Inspiron gnome-shell[3512]: meta_display_get_monitor_in_fullscreen: assertion 'monitor >= 0 && monitor < n_logical_monitors' failed
cze 23 15:35:39 jarek-Inspiron gnome-shell[3512]: 0x3800080: Frame has assigned frame counter but no frame drawn time
cze 23 15:35:39 jarek-Inspiron gnome-shell[3512]: 0x3800080: Frame has assigned frame counter but no frame drawn time
cze 23 15:35:39 jarek-Inspiron gnome-shell[3512]: 0x3800080: Frame has assigned frame counter but no frame drawn time

Changed in mutter (Ubuntu):
status: Incomplete → New
summary: - Screens go into flicker cycle after going blank with external monitor(s)
+ [amdgpu] Screens go into flicker cycle after going blank with external
+ monitor(s)
Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote :

I suspected this should go to AMD Kernel team. Lots of people complaining about changes AMD has been making for some time.

Can you redirect this error, or should I report it somewhere else?

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

Already assigned to the kernel yesterday :)

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2023647

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : AudioDevicesInUse.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : IwConfig.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : Lspci.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : Lspci-vt.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : Lsusb.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : Lsusb-t.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : Lsusb-v.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : ProcEnviron.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : ProcModules.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : RfKill.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : UdevDb.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : WifiSyslog.txt

apport information

Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote : acpidump.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Jarek Jaryszew (jarekjaryszew) wrote :

I switched back to Wayland and 2 external monitors today and the flicker seems to be gone (Ubuntu 23.04 with current updates).

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.