Bug 506648

Summary: Laptop gets in an unrecoverable state when Shut-down/Restarted and lid closes before that finishes
Product: [Plasma] plasmashell Reporter: geopapougr
Component: Session ManagementAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: grave CC: natalie_clarius, nate
Priority: NOR    
Version First Reported In: 6.4.1   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=189456
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description geopapougr 2025-07-05 18:17:01 UTC
SUMMARY
When shutting down/restarting using the KDE UI and very fastly closing the lid, which is supposed to put the laptop to sleep, opening the lid will show us a screen with the symbols "^@". The laptop wont be in sleep mode nor have restarted. It is unrecoverable and has to be shut off by holding down the power button.

STEPS TO REPRODUCE
1. Press the KDE menu icon
2. Select either restart of shutdown (Prefer shutdown)
3. When the 30 seconds for confirmation start counting. bring the laptop close to being closed to be ready
4. Press enter and the moment the UI registers that action and closes the 30 seconds window (Just to be sure), close the lid fast
5. Wait a couple of seconds without opening the lid (Just to be sure)

OBSERVED RESULT
The screen opens with a black background, with "^@" written, and unresponsive

EXPECTED RESULT
A proper shutdown or restart

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 42
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
Thinkpad T490 with Wifi 5 card, integrated.
Kernel: 6.14.9-300.fc42.x86_64
Wayland
Comment 1 Nate Graham 2025-08-01 18:25:48 UTC
Cannot reproduce the issue on my Fedora 42 machine. It could be a hardware-specific power management issue. I also notice you're using an older kernel. I'm currently on 6.15.7. Can you try that one too and see if it works better?
Comment 2 geopapougr 2025-08-02 13:36:11 UTC
I use Aurora and thus the newest kernel isnt available. I havent been able to find a single distro that ships the latest kernel + KDE for a usb. Is there something I am missing?
Comment 3 Nate Graham 2025-08-02 14:29:18 UTC
Arch, OpenSUSE Tumbleweed, and Fedora spring to mind.
Comment 4 geopapougr 2025-08-07 10:06:55 UTC
I tried to do the same for sleep on the newest kernel that fedora can provide and I couldnt replicate it, this time at least. But I did replicate the shutdown freeze, getting a screen with "^@^@^@^@^@". My kernel version is 6.15.9.201. Also, it happens when I am in the KDE environment, and not on the log in screen.
Comment 5 Nate Graham 2025-08-07 15:04:34 UTC
On my Fedora machine, I also see "^@^@^@^@^@", but then it shuts a down properly as long as I don't close the lid too soon. If I do, it triggers Bug 417502.

This is with Kernel 6.15.8 though.

At this point it feels like a kernel or distro configuration bug; I'd recommend taking it up with the Fedora folks.