Bug 470189 - One of two screens randomly goes white and blank after wake up
Summary: One of two screens randomly goes white and blank after wake up
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.27.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://gitlab.freedesktop.org/drm/am...
Keywords: multiscreen, wayland
Depends on:
Blocks:
 
Reported: 2023-05-24 03:15 UTC by CUI Hao
Modified: 2023-06-07 17:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The right screen turns white (40.66 KB, image/jpeg)
2023-05-24 03:15 UTC, CUI Hao
Details
Flickering (860.55 KB, video/mp4)
2023-05-24 15:42 UTC, CUI Hao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CUI Hao 2023-05-24 03:15:47 UTC
Created attachment 159217 [details]
The right screen turns white

SUMMARY

I connect two monitors to my PC. Recently, after I wake up the monitors from power saving, the right one of them (which is set to non-primary) sometimes goes white and blank. Only mouse cursor is visible. Please see the attachment for picture.

When I move the cursor, it still interacts with windows on that screen. I can notice changes of cursor shapes, and even pull windows out from that screen.

Turning off+on / Unplugging+Plugging the screen doesn't fix. "killall -9 kwin_wayland" fixes the screen at the cost of losing all windows.

STEPS TO REPRODUCE
1. Let the screens sleep.
2. Wake them up.

OBSERVED RESULT

The right one of the two screens sometimes becomes white.

EXPECTED RESULT

Both screens are usable.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.3-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

Graphics:
  Device-1: NVIDIA TU117 [GeForce GTX 1650] driver: nvidia v: 530.41.03
  Device-2: AMD Raphael driver: amdgpu v: kernel
  Device-3: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting dri: radeonsi
    gpu: nvidia,amdgpu resolution: 1: 1920x1080 2: 1920x1080
  API: OpenGL v: 4.6 Mesa 23.0.3 renderer: AMD Radeon Graphics (gfx1036
    LLVM 15.0.7 DRM 3.52 6.3.3-arch1-1)

The two screens are both connected to the integrated AMD GPU. The left one is connected to the DisplayPort, the right one to the HDMI port.
Comment 1 CUI Hao 2023-05-24 15:42:19 UTC
Created attachment 159225 [details]
Flickering

There is also a chance the screen enter the state where it flickers between white and normal video when I move the cursor on that screen.
Comment 2 Nate Graham 2023-05-24 18:49:55 UTC
Eek
Comment 3 CUI Hao 2023-06-06 16:52:18 UTC
I think it's amdgpu driver's issue: https://gitlab.freedesktop.org/drm/amd/-/issues/2354

I'm trying amdgpu.sg_display=0 kernel parameter mentioned in that thread. The system has been running half a day without issue.

Before finding this, I had tried downgrading kwin before and that didn't work. So this is not likely caused by kwin.
Comment 4 Nate Graham 2023-06-07 17:54:55 UTC
Makes sense, I don't know why I didn't remember that. We've gotten tons of reports about it in the recent past. Thanks!