Display flickering after several suspend / resume cycles
Brief summary of the problem:
Sometimes when resuming from suspend the display will be filled with white artifacts that cover the screen. The artifacts persist until I restart / log out of the mutter session or restart the system.
Hardware description:
- amd_s2idle report: s2idle_report-2023-11-21.txt
System information:
- Distro name and Version: Fedora 39
- Kernel version: 6.5.11-300.fc39.x86_64
How to reproduce the issue:
- Suspend the laptop to
s0ix
- Open the laptop and resume it
- If there is no flickering, repeat 1 and 2 with longer suspend intervals
It seems that garbage collected applications, or applications that do work in the background, can trigger the issue more easily. For example, I triggered the issue quickly by leaving Foliate or Newsflash open in another workspace while the machine was suspended.
Attached files:
This seems to always happen in correlation with AMD-Vi issues. Once it happens once, if you recover by logging out of gnome and back into the system it'll happen on the next suspend again.
Interestingly, while I was using the amd_s2idle.py
tester, the 2nd cycle of the test crashed the nic driver. I could submit the logs for that in a separate issue, however I think there is a deeper issue with AMD-Vi and suspend/resume in general that can simply manifest as a bunch of seemingly unrelated issues.
If you look at flickering.txt, from the bottom the two suspend cycles with linebreaks in the logs are where the issue occurs.