Bug 506407

Summary: Computer refuses to suspend while a program is blocking suspend but it shows no warning
Product: [Plasma] plasmashell Reporter: Ángel Navarro <jesusnavarrojr188>
Component: Power and Battery widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, kde, natalie_clarius, nate
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Laptop refuses to suspend while seeding a torrent and shows no warning

Description Ángel Navarro 2025-06-30 19:46:55 UTC
Created attachment 182813 [details]
Laptop refuses to suspend while seeding a torrent and shows no warning

SUMMARY
When I'm seeding or downloading a torrent file (with qBitTorrent) and the suspension is blocked, if I try to suspend the laptop, it shows no warning about the program (qBitTorrent) blocking the suspension, which is misleading.

STEPS TO REPRODUCE
1. Seed/download a file in qBitTorrent to block suspension
2. When it's still downloading/seeding, try to suspend the computer.

OBSERVED RESULT
Computer stays on without any warning

EXPECTED RESULT
The computer should show some dialog saying "X program is blocking suspension. Do you want to suspend anyway?" or at least show a warning to go manually unblock it

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-08-13 17:50:53 UTC
This feature is only supposed to block *automatic* sleep and screen locking, not prevent you from doing it yourself. I suspect the app itself is doing that.

We could potentially show a warning if we detect this is happening though.

Can you reproduce the same behavior when a different app is blocking sleep and screen locking? I cannot reproduce it with Elisa playing music. I can still manually put the system to sleep.