Bug 295381 - Polkit stops verifying actions once it has an active request.
Summary: Polkit stops verifying actions once it has an active request.
Status: RESOLVED WORKSFORME
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-05 20:12 UTC by Toby Newman
Modified: 2018-11-11 16:27 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 Toby Newman 2012-03-05 20:12:08 UTC
I'm running KDE 4.7.2 release 5 on OpenSUSE.
I have two concurrent users on tty7 (Claire) and tty8 (Toby).
I've set power settings for both users to suspend after 1 minute, but the machine is not suspending.
Instead, I get a dialogue which reads "Authentication is required to suspend the system", on the opposite user's desktop.
(This is a PolicyKit dialog, the text comes from /usr/share/polkit-1/actions/org.freedesktop.upower.policy which reads as follows: http://pastebin.com/R5vM1jxm )

I have checked the output of "ck-list-sessions" prior to trying to enact a suspend and the correct user is listed as active.

Steps to reproduce:

Reboot
Log in as Claire on tty7
Log in as Toby on tty8
Wait 1 minute
Screen blanks, but system does not suspend.
Wiggle mouse
Unlock Toby on tty8
No dialogs shown.
ctrl-alt-F7
Unlock Claire on tty7
Dialogue: "Authentication is required to suspend the system"
[cancel]
ctrl-alt-F8
Dialogue: "Authentication is required to suspend the system"
[cancel]
Wait 1 minute
System does not suspend. System remains on indefinitely!

In this case, it seems that Claire's session gets an active request and blocks up Polkit.
Comment 1 Oliver Henshaw 2012-09-22 11:40:54 UTC
See also bug 298712.
Comment 2 Dub 2013-01-05 23:35:35 UTC
Same bug with: KDE v4.8.5 "release 2" (OpenSuse v12.2)

Does this bug will be fix soon?

Thanks!
Comment 3 Rex Dieter 2013-01-05 23:55:46 UTC
See comment #1, good chance it did get fixed in 4.9.5
Comment 4 Martin Bříza 2013-03-18 15:23:56 UTC
Hi, I tried to reproduce this right now in OpenSUSE 12.3 and it wasn't possible. Both users got logged out when I tried to switch the sessions...
In Fedora 18, it's not reproducible at all.
Comment 5 Andrew Crouthamel 2018-11-10 03:18:00 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Andrew Crouthamel 2018-11-11 16:27:08 UTC
Email received:

ASAIK it was fixed long ago - please see related bug report   bug 298712 and comment #16. I'm currently running :

Operating System: openSUSE Tumbleweed 20181029
KDE Plasma Version: 5.14.2
Qt Version: 5.11.2
KDE Frameworks Version: 5.51.0
Kernel Version: 4.18.15-1-default
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 2700 Eight-Core Processor
Memory: 31.4 GiB of RAM

I just configured and tested this and suspend appears to work properly with multiuser.

Cheers,

Eric