I brought a Lenovo Legion Slim 5 Notebook that comes with a GeForce RTX 4060 Laptop GPU, coupled with AMD Radeon integrated graphics.
The screen flashes white whenever the GPU is active.
External displays work fine even when the laptop screen is flashing.
We suspect there is some issue with the Nvidia driver on Ubuntu because the problem cannot be duplicated on the original Windows OS that ships with the laptop. We are unfortunately unable to fix the issue with Lenovo Support because Linux is not supported.
It’s a known amdgpu driver bug https://gitlab.freedesktop.org/drm/amd/-/issues/3313
Please try using the liquorix ppa to update to the latest kernel to check for the bug being fixed or set the mentioned kernel parameter amdgpu.sg_display=0 for a workaoround.
How can we be certain that this is the bug and there is a fix? The way the problem shows up in my case is different from what is described over here.
For me, it happens whenever a GPU intensive process is running and can be fixed by simply logging out and back in again. Sometimes, toggling off full screen mode would also alleviate the problem.