Bug 489138 - Wake from DPMS causes screen to "glitch"
Summary: Wake from DPMS causes screen to "glitch"
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.1.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-24 20:12 UTC by George Lukas
Modified: 2024-06-25 17:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen Behaviour (265.59 KB, image/jpeg)
2024-06-24 20:12 UTC, George Lukas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description George Lukas 2024-06-24 20:12:15 UTC
Created attachment 170924 [details]
Screen Behaviour

SUMMARY
Either screen turning off forcibly by command or automaticaly via DPMS powersaving, it causes screen to glitch when the system tries to turn screen on.

STEPS TO REPRODUCE
1.  Wait screen to turn off or run the following command:
 /bin/dbus-send --session --print-reply --dest=org.kde.kglobalaccel  /component/org_kde_powerdevil org.kde.kglobalaccel.Component.invokeShortcut string:'Turn Off Screen'
2. Try using the computer
3. 

OBSERVED RESULT
Glitched screen 

EXPECTED RESULT
Screen is turning on normally

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
> inxi -Cb                                                                                                                       
System:
  Host: colorless Kernel: 6.9.6-arch1-1 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.1.0 Distro: Arch Linux
Machine:
  Type: Desktop System: ASRock product: B650M-HDV/M.2 v: N/A
    serial: <superuser required>
  Mobo: ASRock model: B650M-HDV/M.2 serial: <superuser required>
    UEFI: American Megatrends LLC. v: 3.01 date: 05/10/2024
CPU:
  Info: 16-core model: AMD Ryzen 9 7950X bits: 64 type: MT MCP cache:
    L2: 16 MiB
  Speed (MHz): avg: 545 min/max: 545/5881 cores: 1: 545 2: 545 3: 545 4: 545
    5: 545 6: 545 7: 545 8: 545 9: 545 10: 545 11: 545 12: 545 13: 545 14: 545
    15: 545 16: 545 17: 545 18: 545 19: 545 20: 545 21: 545 22: 545 23: 545
    24: 545 25: 545 26: 545 27: 545 28: 545 29: 545 30: 545 31: 545 32: 545
Graphics:
  Device-1: AMD Raphael driver: amdgpu v: kernel
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.0
    compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
    dri: radeonsi gpu: amdgpu resolution: 3072x1728
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.2-arch1.1
    renderer: AMD Radeon Graphics (radeonsi raphael_mendocino LLVM 17.0.6 DRM
    3.57 6.9.6-arch1-1)
Network:
  Device-1: Realtek RTL8125 2.5GbE driver: r8169
Drives:
  Local Storage: total: 1.82 TiB used: 281.6 GiB (15.1%)
Info:
  Memory: total: 32 GiB note: est. available: 30.47 GiB used: 8.74 GiB (28.7%)
  Processes: 494 Uptime: 6h 12m Shell: Zsh inxi: 3.3.35

> journalctl --since "5 minutes ago" -b | grep wayland
Jun 24 13:37:11 colorless konsole[21199]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless dolphin[22204]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless xdg-desktop-portal-kde[20970]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless kwalletd6[20576]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless kactivitymanagerd[20919]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless kded6[20808]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless baloorunner[35608]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless DiscoverNotifier[21182]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless kinfocenter[35627]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless polkit-kde-authentication-agent-1[20967]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless org_kde_powerdevil[20969]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:11 colorless plasmashell[20872]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless baloorunner[35608]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless konsole[21199]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless kactivitymanagerd[20919]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless polkit-kde-authentication-agent-1[20967]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless DiscoverNotifier[21182]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless kded6[20808]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless kwalletd6[20576]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless xdg-desktop-portal-kde[20970]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless kinfocenter[35627]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless dolphin[22204]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless org_kde_powerdevil[20969]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:40 colorless plasmashell[20872]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless baloorunner[35608]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless kwalletd6[20576]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless konsole[21199]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless dolphin[22204]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless kinfocenter[35627]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless DiscoverNotifier[21182]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless polkit-kde-authentication-agent-1[20967]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless kded6[20808]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless xdg-desktop-portal-kde[20970]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless kactivitymanagerd[20919]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless org_kde_powerdevil[20969]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jun 24 13:37:50 colorless plasmashell[20872]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash

> journalctl --since "5 minutes ago" -b | grep kwin
Jun 24 13:41:16 colorless kwin_wayland[20684]: qt.dbus.integration: QDBusConnection: couldn't handle call to Teardown, no slot matched
Jun 24 13:41:16 colorless kwin_wayland[20684]: qt.dbus.integration: QDBusConnection: couldn't handle call to Teardown, no slot matched
Jun 24 13:41:16 colorless kwin_wayland[20684]: qt.dbus.integration: Could not find slot Krunner1Adaptor::Teardown

>  journalctl --since "25 minutes ago" -b | grep kernel
Jun 24 13:37:01 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:01 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:01 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:13 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:13 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:13 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:42 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:43 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:43 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:43 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:43 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:43 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:52 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:53 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:53 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:53 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:53 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jun 24 13:37:53 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Comment 1 George Lukas 2024-06-24 20:20:39 UTC
This seems to happen only under Wayland session. X11 seems fine
Comment 2 Zamundaaa 2024-06-25 17:06:01 UTC
> Jun 24 13:37:01 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Do these warnings get printed every time this happens?
Comment 3 George Lukas 2024-06-25 17:35:19 UTC
(In reply to Zamundaaa from comment #2)
> > Jun 24 13:37:01 colorless kernel: amdgpu 0000:0e:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
> Do these warnings get printed every time this happens?

Yes, it does. I'm not sure if this is related to freedesktop, but there I also reported this issue.
https://gitlab.freedesktop.org/drm/amd/-/issues/3452
Comment 4 Zamundaaa 2024-06-25 17:56:41 UTC
This is definitely a kernel issue then. drm/amd is the right place to report it