Bug 505258 - Wake up from sleep fails if using Lock > Sleep
Summary: Wake up from sleep fails if using Lock > Sleep
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-06 07:57 UTC by Dan
Modified: 2025-06-22 15:44 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan 2025-06-06 07:57:30 UTC
SUMMARY
When using Lock then pressing Sleep, waking up from sleep by pressing any key or moving mouse fails. Directly using Sleep then waking up from sleep by pressing any key or by moving mouse works correctly.

STEPS TO REPRODUCE
1. Open Application Launcher
2. Click Lock (session becomes locked)
3. Click Sleep (suspends)
4. Press any keyboard key or move mouse

OBSERVED RESULT
The screen becomes a purple glitch

EXPECTED RESULT
The login manager should be shown

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Kernel Version: 6.14.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 ร— AMD A8-7410 APU with AMD Radeon R5 Graphics
Memory: 6.7 GiB of RAM
Graphics Processor: KABINI

ADDITIONAL INFORMATION
I think the same bug is present in older versions (not sure how far back), but with screen staying black, rather than becoming a glitch, on other distros that use KDE Plasma, but I hadn't figured out what reliably caused it.
Comment 1 Dan 2025-06-06 10:39:44 UTC
Picture of glitch screen: https://i.postimg.cc/wT8jSGZ6/wake-up-from-sleep-fail.jpg
Reproduction of bug and boot process: https://youtu.be/UJN42AYN3o4
Normally when "recovering journal" happens (01:18), "Clearing orphaned inodes" isnt outputted if sleep happened correctly
I can't get it to always reproduce whenever, but if it does happen, its always because of locking then sleeping then waking up again
Comment 2 Nate Graham 2025-06-06 16:56:07 UTC
> The screen becomes a purple glitch
This is usually GPU-related. I see you listed your GPU as "KABINI". What does that mean?
Comment 3 Dan 2025-06-06 17:53:42 UTC
> I see you listed your GPU as "KABINI". What does that mean?
idk, that's just what kinfo said. doing a search suggests its related to AMD, the manufacturer of the CPU and integrated GPU i have

> This is usually GPU-related
did my graphics just randomly stop working? my device is 10 years old and the CPU and GPU have never been changed or upgraded. would just an internal device clean fix it? or is there something not quite right at the software level?
Comment 4 Dan 2025-06-07 17:31:09 UTC
noticed that Vulkan gave errors in kinfocenter (errors were because of radeon instead of amdgpu being used, checked using lsmod). fixed that by changing kernel boot options to include amdgpu.enable_gpu=1 amdgpu.si_support=1 radeon.si_support=0 amdgpu.cik_support=1 radeon.cik_support=0 , running mkinitcpio -P then rebooting.
also installed some optional drivers (lib32-mesa, lib32-vulkan-radeon, lib32-vulkan-mesa-layers)

before there was a little glitchyness for a few seconds when logging in normally and that no longer happens. i'm guessing the wake from sleep glitchyness is also because of Vulkan not being used

i'll try reproducing the bug. it didnt happen all the time, but was always same set of events that lead to the bug.
Comment 5 Bug Janitor Service 2025-06-22 03:47:23 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Dan 2025-06-22 15:41:26 UTC
kinfo now shows
Operating System: Arch Linux 
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 ร— AMD A8-7410 APU with AMD Radeon R5 Graphics
Memory: 8 GiB of RAM (6.7 GiB usable)
Graphics Processor: AMD Radeon R5 Graphics

I've not encountered the bug after altering my kernel boot options so that the amdgpu graphics model (instead of radeon graphics module) is used. check using lsmod. amdgpu model has Vulkan support, radeon module does not. in https://wiki.archlinux.org/title/Xorg#Driver_installation there is a table of graphics driver features. I believe ATI in the AMD section refers to radeon.

Relevant packages that were explicitly installed:
base 3-2
base-devel 1-2
efibootmgr 18-3
intel-media-driver 25.2.3-1
kwayland-integration 6.4.0-1
libva-intel-driver 2.4.1-5
linux 6.15.3.arch1-1
linux-firmware 20250613.12fe085f-6
vulkan-intel 1:25.1.4-1
vulkan-nouveau 1:25.1.4-1
vulkan-radeon 1:25.1.4-1
xf86-video-amdgpu 23.0.0-2
xf86-video-ati 1:22.0.0-2
xf86-video-nouveau 1.0.18-1
xf86-video-vmware 13.4.0-4
xorg-xinit 1.4.4-1

Other relevant packages that are installed:
mesa 1:25.1.4-1
amd-ucode 20250613.12fe085f-6

Is there any other information I need to provide?