I just decided to implement dual boot on my PC to have Ubuntu and Windows, so this is the first time I'm fully managing a Linux distro. Apologies if I do not fully understand all terms right away.
I installed Ubuntu (24.04.2) without many issues, but later on I noticed sometimes that, whenever I locked my PC (through Meta+L), at the moment of logging back in, my dock flickered by showing all the apps, only to disappear a moment later only leaving the Ubuntu logo. This repeats on and on with no apparent end to it.
Additionally, it not only flickers the dock, but it also skips my mouse and makes my keyboard start repeating the last key I pressed at times. I first was confused as it sometimes stopped on its own and sometimes it completely froze my system or blacked out my screen, forcing me to force shut down my computer.
I realized that this indeed only happens when I lock my screen either manually or when it times out. When I checked with the terminal on Ctrl+Alt+F3 (by pure accident), I realized that the rate at which the error amgpu 0000:0d:00.0: [drm] *ERROR* No EDID read appeared was exactly the same of the rate of the flickering on my screen.
I found out that this is somewhat mitigated if I randomly change between Ctrl+Alt+F1 and then back to Ctrl+Alt+F2, which makes the flickering persist a few seconds before stabilizing. However, whenever I change back to the terminal on Ctrl+Alt+F3, it gets back to the same flickering behaviour.
I have found that this is related to the monitor itself (as I did not know what EDID meant), but the response seems so diverse and with so many answers to so many distros out there that I think I'm a bit overwhelmed by it. I also find most cases they are not even able to see their monitor, which is not my case either. It is also important to say that I had been able to run the terminal before without any issue, so this sometimes appears to be random.
If you could guide me to the right track or if you experienced this, anything would definitely help. I tried to search for similar issues in here, but I could find none, I hope this is not a duplicate despite the several similar issues.
As an update, my kernel was at version 6.11
After trying what @Hi-Angel suggested, I updated to the latest stable version (6.13.7 currently) it seemed to work at first until I opened Steam and then played a game as normal, causing the error to appear once more. Once again, it got partially fixed when moving to the login screen and then back to my desktop through Ctrl+Alt+Fx but the error message continues to appear.