Bug 514728 - Black screen on resume from suspend on Strix Halo APU
Summary: Black screen on resume from suspend on Strix Halo APU
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.5.4
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-17 09:29 UTC by Yahor Berdnikau
Modified: 2026-01-22 07:45 UTC (History)
2 users (show)

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


Attachments
kwin_wayland debug logs (160.82 KB, text/x-log)
2026-01-19 20:45 UTC, Yahor Berdnikau
Details
dmesg drm debug logs (260.46 KB, text/x-log)
2026-01-19 20:52 UTC, Yahor Berdnikau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yahor Berdnikau 2026-01-17 09:29:56 UTC
SUMMARY

On my HP Zbook Ultra G1A with Strix Halo APU resume from suspend often shows a black screen. The mouse cursor is not available, and I could not switch to other virtual consoles. Killing `kwin_wayland` over ssh connection restores the screen.


STEPS TO REPRODUCE
1. Kernel `6.18.5` with additional patches applied (see this comment: https://gitlab.freedesktop.org/drm/amd/-/issues/4866#note_3285085)
3. Plasma version `6.5.5` (same problem happens on `6.5.4`)
2. Logged in using wayland session type
3. Trigger sleep and then resume from it

OBSERVED RESULT

The screen is black in ~70% of cases. Sometimes everything works ok. If I switch to an X11 session - no problems with resume. In `dmesg` output - no errors/warnings on resume. Attaching/detaching the external monitor does not change the state. Only killing `kwin_wayland` helps.

In logs I see:
kwin_core: Failed to delay sleep: The operation inhibition has been requested for is already running
kwin_wayland_drm: Atomic modeset test failed! Permission denied
kwin_wayland_drm: Setting dpms mode failed!

So initially I assumed I am affected by either https://bugs.kde.org/show_bug.cgi?id=513151 or https://bugs.kde.org/show_bug.cgi?id=511118, but now I am not sure.

EXPECTED RESULT

The screen is working normally after resuming from the suspend state.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.18
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.18.5-gentoo-yahor (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD RYZEN AI MAX+ PRO 395 w/ Radeon 8060S
Memory: 128 GiB of RAM (109.8 GiB usable)
Graphics Processor: Radeon 8060S Graphics

ADDITIONAL INFORMATION
Comment 1 Zamundaaa 2026-01-19 15:24:50 UTC
If you can't switch VTs, then there's a chance KWin's main thread is blocking on something. Can you get a backtrace of it?

> kwin_core: Failed to delay sleep: The operation inhibition has been requested for is already running
> kwin_wayland_drm: Atomic modeset test failed! Permission denied
> kwin_wayland_drm: Setting dpms mode failed!
The permission denied warning suggests that switching VTs maybe did work (and at least take away KWin's permissions to re-enable the screen), but the screen still didn't turn on?

Can you get the full log (journalctl --user-unit plasma-kwin_wayland --boot 0) from when the screen stays black, before you do anything on the laptop itself? The drm debug log (https://invent.kde.org/plasma/kwin/-/wikis/Debugging/Debugging-DRM-issues) could also be useful
Comment 2 Yahor Berdnikau 2026-01-19 20:45:48 UTC
Created attachment 188696 [details]
kwin_wayland debug logs

Attaching the `kwin_wayland` debug logs where the 3rd attempt to resume from suspend has failed.
Comment 3 Yahor Berdnikau 2026-01-19 20:52:52 UTC
Created attachment 188697 [details]
dmesg drm debug logs

Attaching dmesg output with debug logs enabled. Failure has happened on 4th resume from suspend.
Comment 4 Zamundaaa 2026-01-20 00:40:03 UTC
Alright, so "permission denied" is really the problem after all:
> [  269.994628] PM: suspend exit
> [  269.996308] [drm:drm_stub_open] 
> [  269.996315] amdgpu 0000:c3:00.0: [drm:drm_open_helper] comm="switcheroo-cont", pid=10643, minor=0
[...]
> [  269.996888] amdgpu 0000:c3:00.0: [drm:drm_ioctl] comm="elogind-daemon" pid=3335, dev=0xe200, auth=1, DRM_IOCTL_SET_MASTER
> [  269.996897] amdgpu 0000:c3:00.0: [drm:drm_ioctl] comm="elogind-daemon", pid=3335, ret=-16
[...]
> [  270.000812] amdgpu 0000:c3:00.0: [drm:drm_release] open_count = 36
> [  270.000836] amdgpu 0000:c3:00.0: [drm:drm_file_free] comm="switcheroo-cont", pid=10643, dev=0xe200, open_count=36
> [  270.000900] amdgpu 0000:c3:00.0: [drm:_drm_lease_revoke] revoke leases for 0000000086be1cdc 0
> [  270.000918] amdgpu 0000:c3:00.0: [drm:drm_lease_destroy] drm_lease_destroy 0
> [  270.000920] amdgpu 0000:c3:00.0: [drm:drm_master_destroy] drm_lease_destroy done 0
switcheroo-control seems to (accidentally) take drm master permissions here, so elogind's attempt at giving KWin drm master permissions fails.

I don't know why drm master permissions would be in a different process than KWin at this point, but I'm certain it's not KWin's fault.
Because drm master permissions are super terribly stupid, switcheroo-control is probably not doing anything wrong either.

Most likely, elogind needs to just retry if it fails with EBUSY when setting up master permissions. So please report this at https://github.com/elogind/elogind/issues
Comment 5 Yahor Berdnikau 2026-01-22 07:40:06 UTC
Upon further investigation, I've noticed that I could not switch to another terminal even after a normal boot. Figured out that my custom kernel config does not have `CONFIG_DRM_FBDEV_EMULATION` and falls back to `CONFIG_DRM_CLIENT_DEFAULT_LOG` mode for DRM.

After enabling fbdev mode, my issues with resuming from suspend are gone.
Comment 6 Yahor Berdnikau 2026-01-22 07:45:25 UTC
Issue for elogind: https://github.com/elogind/elogind/issues/335