Bug 512106

Summary: If power button is set to hibernate, SDDM shows and unloads the network service
Product: [Plasma] plasmashell Reporter: krisrh21
Component: Networks widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: major CC: antti.savo, kdedev
Priority: NOR    
Version First Reported In: 6.5.2   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: 'No networking' icon as seen in KDE's 'System Tray' after a failed hibernation is attempt.

Description krisrh21 2025-11-14 23:06:16 UTC
Created attachment 186798 [details]
'No networking' icon as seen in KDE's 'System Tray' after a failed hibernation is attempt.

SUMMARY
I've noticed that, in KDE Plasma Desktop 6.5.2, if 'When power button pressed": is in 'Power Management' is set to "Hibernate', Fedora does not hibernate but instead does show the SDDM and unloads Fedora's network service. However, clicking on Hibernate from KDE's 'Application Launcher' does cause Fedora to properly hibernate and leaves the network service alone.


STEPS TO REPRODUCE
1. Start System >> System Settings.
2. Scroll down to 'Power Management', set 'When power button pressed:' to 'Hibernate' and click 'Apply'.
3. Press the power button.

OBSERVED RESULT
Pressing the power button causes KDE to show the SDDM, and once I login, Fedora's networking service is unloaded.

EXPECTED RESULT
Pressing the power button should hibernate my laptop and not unload Fedora's networking service.

SOFTWARE/OS VERSIONS
Linux: Fedora Linux 43
KDE Plasma Version: 6.5.2 
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0

ADDITIONAL INFORMATION
Comment 1 TraceyC 2025-11-20 22:30:18 UTC
I'm not able to reproduce this on Plasma git-master with 'When power button pressed" is set to "Sleep"
My laptop doesn't offer a Hibernate option. I'll leave this open so others can try to reproduce.

Can you reproduce the bug, and then get logs for the two minutes prior going to the present time?

sudo journalctl --since "2 minutes ago"  > ~/log.txt

Then, attach ~/log.txt to this report. Thanks!
Comment 2 Antti Savolainen 2025-11-21 23:31:14 UTC
I'm unable to reproduce this on Arch Linux

Operating System: Arch Linux 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.17.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-7600U CPU @ 2.80GHz
Memory: 24 GiB of RAM (23.2 GiB usable)
Graphics Processor: Intel® HD Graphics 620
Manufacturer: LENOVO
Product Name: 20HG0003SG
System Version: ThinkPad T470s
Comment 3 krisrh21 2025-11-25 01:10:08 UTC
(In reply to TraceyC from comment #1)
> I'm not able to reproduce this on Plasma git-master with 'When power button
> pressed" is set to "Sleep"
> My laptop doesn't offer a Hibernate option. I'll leave this open so others
> can try to reproduce.
> 
> Can you reproduce the bug, and then get logs for the two minutes prior going
> to the present time?
> 
> sudo journalctl --since "2 minutes ago"  > ~/log.txt
> 
> Then, attach ~/log.txt to this report. Thanks!

Here is my log.txt file: https://pastebin.com/sUwG6WSv
Comment 4 TraceyC 2025-11-25 16:48:09 UTC
Thanks for the logs. What I see is that after hibernation was reached, the kernel crashed, which is what caused the system to exit hibernation.

I recommend filing a bug with Fedora about this, so they can look into the kernel crash. Copy everything in the log between the lines
Nov 24 15:50:36 fedora kernel: ------------[ cut here ]------------

and

Nov 24 15:50:36 fedora kernel: ---[ end trace 0000000000000000 ]---

This has information on how to file the bug if you need it
https://docs.fedoraproject.org/en-US/quick-docs/bugzilla-file-a-bug/

Thanks.