Announcement

Collapse
No announcement yet.

Graphics Problem After resume from Suspend-Then-Hibernate

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Graphics Problem After resume from Suspend-Then-Hibernate

    First of all, sorry, I don't know where to locate this question/problem.

    Four days ago, I replaced my PSU with a current one. I was having some stability issues with the computer, and they advised me to replace it. I purchased a Corsair RM850e.

    My computer:
    Gigabyte Aorus X470 Ultra Gaming.
    MSI Radeon RX 470 8GB (Polaris) graphics card
    CPU: AMD Ryzen 9 5950X
    16GB RAM.

    The thing is, ever since I replaced the PSU, always, absolutely always, after resuming from hibernation, but it's a "suspend-then-hibernate" hibernation, I find that when it should show the desktop, it doesn't, and on both monitors it shows the same thing: a pixelated image, very difficult to describe. I'm attaching it here because, I don't know how to describe it.

    If I hibernate manually, this problem doesn't occur, whether I hibernate via the menu button or via "systemctl hibernate." It only happens with suspend then hibernate, which I have set to automatic in preferences.

    It has me intrigued beyond belief...

    I've read something about a possible bug in the driver after resuming from S4/S5 on Polaris, but now I don't remember, nor do I have the URL... I've looked up so many things that I can't remember exactly...

    PS: Kubuntu 24.04.3, Kernel 6.14.0-29

    Click image for larger version  Name:	image.png Views:	18 Size:	487.8 KB ID:	688253
    Last edited by wonder; Yesterday, 05:28 PM.

    #2
    are you running out of swap space?

    Comment


      #3
      No, I'm in my swap.
      In fact, I boot the PC, barely use swap, and then use suspend-then-hibernate, and when resuming from this, suspend-then-hibernate, this happens.
      If it's just hibernation, it doesn't happen.
      It's only when it's suspend-then-hibernate.

      This has been happening since I got a new PSU. Apparently, the old one took longer to deliver power, which is why it sometimes had some "strange" effects, but not this.

      I've tried it, and it doesn't happen in Debian 12...

      This is what I've been able to find out (or so I think, I don't know...):

      The key point: suspend-then-hibernate in Polaris

      Here's the real bug:

      In suspend-then-hibernate, the GPU first goes into light sleep (S3/ACPI sleep) and then, if the configured time passes, it goes into hibernation.

      The problem is that when resuming from the first part (suspend), the Polaris driver doesn't properly restore the VRAM/clock state → artifacts/pixelated screen appear.

      With direct hibernate, this step is skipped and works fine.​

      Comment


        #4
        After investigating and thanks to help from other sites, websites, etc., I confirm that the artifacts/pixelation issue when resuming from suspend-then-hibernate with my RX 470 was related to a bug in the amdgpu driver on Polaris graphics cards.

        I found this article on Phoronix that mentions the bug:
        https://www.phoronix.com/news/Linux-...D-Polaris-Spam

        At first, the logs were referred to as "spam," but after reviewing more information on Freedesktop and GitLab, I saw that the bug also affected resuming from hibernation in Polaris.

        The fix has arrived in recent kernels: according to the developers, starting with the 6.16 branch. Therefore, I tested with a mainline 6.16.4 kernel and can confirm that the problem is resolved: artifacts and pixelation no longer appear when resuming from suspend-then-hibernate.

        I've been having this problem for several days. After posting it here, I found this article that talked a bit about it: kernel 6.16...tested and it worked...

        I hope this information is useful to anyone who encounters the same problem.

        Comment

        Users Viewing This Topic

        Collapse

        There are 0 users viewing this topic.

        Working...
        X