Bug 502326 - When an app inhibits sleep and screen locking the user is not informed of that app, leading to a silent fail
Summary: When an app inhibits sleep and screen locking the user is not informed of tha...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.3.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-02 15:45 UTC by Répási Dávid
Modified: 2025-05-08 03:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Répási Dávid 2025-04-02 15:45:51 UTC
STEPS TO REPRODUCE
1. Have an app open to inhibit screen locking and sleep
2. Click 'sleep' in kickoff or in the ctrl+alt+delete menu

OBSERVED RESULT

No feedback to the user why nothing happens

EXPECTED RESULT

Show a message to the user what app they need to exit/stop in order to access sleep/screen locking

SOFTWARE/OS VERSIONS
Linux: 6.13.8-arch1-1 (64-bit)
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Graphics Platform: Wayland
Comment 1 Répási Dávid 2025-04-02 16:04:13 UTC
When calling 'systemctl suspend' in the terminal, it shows what app and why it's blocking
Comment 2 Nate Graham 2025-04-02 21:14:30 UTC
That's not quite how this works; when an app blocks sleep and screen locking, it only blocks *automatic* sleep and screen locking. You should be able to manually initiate these yourself.

I gather that's not happening? If you prevent the apps from blocking sleep and screen locking using the "Unblock" button on the Power and Battery widget, are you able to manually initiate sleep or screen locking? Or does that continue to fail?
Comment 3 Répási Dávid 2025-04-03 11:15:18 UTC
So, I tried with other torrent clients as well, but this only happens with qbittorrent for me. 
Options enabled: Preferences -> Behaviour -> Power Management -> both options

When using the 'Unblock' feature - either option, nothing happens, just the silent fail.
Comment 4 Nate Graham 2025-04-03 15:37:52 UTC
Only when QBitTorrent blocks sleep, and not for any other apps? That's very strange.

FWIW, I can't reproduce the issue; when I install QbitTorrent, use those settings, and start a torrent, I can manually put the system to sleep as expected.

Can you reproduce this issue in a new clean user account?
Comment 5 Répási Dávid 2025-04-03 20:29:44 UTC
It works fine on a different  machine with a clean install.
Comment 6 Nate Graham 2025-04-04 12:27:13 UTC
Thanks. How about in a new clean user account on the same machine?
Comment 7 Répási Dávid 2025-04-07 08:29:16 UTC
Works fine on a newly created user account as well. Could be some update borked a config file in a past update.
Comment 8 Nate Graham 2025-04-08 17:02:18 UTC
Could be indeed. If you could try to figure out what configuration is causing the issue, that would be amazing.
Comment 9 Bug Janitor Service 2025-04-23 03:47:30 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 10 Bug Janitor Service 2025-05-08 03:47:29 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.