Bug 506407 - Computer refuses to suspend while a program is blocking suspend but it shows no warning
Summary: Computer refuses to suspend while a program is blocking suspend but it shows ...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (other bugs)
Version First Reported In: master
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-30 19:46 UTC by Ángel Navarro
Modified: 2025-08-13 17:50 UTC (History)
4 users (show)

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


Attachments
Laptop refuses to suspend while seeding a torrent and shows no warning (1.56 MB, video/mp4)
2025-06-30 19:46 UTC, Ángel Navarro
Details

Note You need to log in before you can comment on or make changes to this bug.
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.