Bug 493877 - Idle suspend fails, prompting user for admin password
Summary: Idle suspend fails, prompting user for admin password
Status: RESOLVED WORKSFORME
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.90
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-30 16:50 UTC by Stephen Gallagher
Modified: 2024-10-01 13:55 UTC (History)
6 users (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 Stephen Gallagher 2024-09-30 16:50:07 UTC
SUMMARY

By default on Fedora, Plasma Workspaces will attempt to put the machine into "sleep" mode after fifteen minutes of inactivity. This worked properly on Fedora 40 with KDE 6.1, but when I upgraded to Fedora 41 the automatic sleep no longer works. This was true for both 6.1 and 6.2 Beta.

When I come back to the machine some time later and unlock it (the screen still locked during this time), I am presented with an admin password prompt informing me that "Authentication is required to suspend this system".


STEPS TO REPRODUCE
1. Install Fedora 41 Beta 
2. Boot and log in
3. Wander away for at least fifteen minutes

OBSERVED RESULT
The monitor is off and the system is locked, requiring a password to resume.

EXPECTED RESULT
he computer should have locked the system and then suspended to save power.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 41 Beta, KDE 4.1.90
KDE Plasma Version: plasma-workspace-common-6.1.90-2.fc41.x86_64
KDE Frameworks Version: 
Qt Version: qt6-qttools-common-6.7.2-2.fc41.noarch

ADDITIONAL INFORMATION
This is possibly related to changes to the session in systemd 256 as discussed in https://bbs.archlinux.org/viewtopic.php?id=297757
Comment 1 Stephen Gallagher 2024-09-30 16:51:29 UTC
Also reported downstream in Fedora https://bugzilla.redhat.com/show_bug.cgi?id=2315702 for potential tracking as a blocker for the Fedora 41 GA release.
Comment 2 Neal Gompa 2024-09-30 16:58:58 UTC
I'm pretty sure this is a PowerDevil issue, so moving it to that.
Comment 3 Geraldo Simião 2024-09-30 20:38:16 UTC
Can't reproduce this bug on my baremetal installation:

powerdevil-6.1.90-2.fc41.x86_64

Operating System: Fedora Linux 41
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.11.0-63.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-3632QM CPU @ 2.20GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
Comment 4 Nate Graham 2024-09-30 21:46:06 UTC
Is this suspected of being a coincidental hardware issue now?
Comment 5 Stephen Gallagher 2024-09-30 22:14:36 UTC
No, initially I was suspecting that it might be a hardware issue because I couldn't reproduce it on my other machine. However I discovered that there was a patch added to plasma-desktop recently that appears to have resolved the issue: https://github.com/KDE/plasma-desktop/commit/fc0048b41e27be46bfcc14ade556aa08ea29e9e9

(It's also possible that https://github.com/KDE/powerdevil/commit/0b708921b543974650202600b9f01e4957d178de played a role here; I updated them both together and the issue disappeared).
Comment 6 Nicolas Fella 2024-10-01 11:13:31 UTC
Powerdevil tells logind to suspend. If that triggers a password prompt that's a downstream misconfiguration of polkit
Comment 7 Stephen Gallagher 2024-10-01 13:55:41 UTC
As I said, this appears to have been solved by one or both of the commits I linked above, so I'm going to close this as WORKSFORME.