Bug 383296

Summary: Powerdevil immediately discards xdg-screensaver inhibitions
Product: [Plasma] Powerdevil Reporter: Nicolas F. <kdebugs>
Component: generalAssignee: Plasma Development Mailing List <plasma-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, kishore96
Priority: NOR    
Version: 5.10.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Nicolas F. 2017-08-08 22:16:22 UTC
Steps to reproduce:

1. watch the log with `journalctl -x -f`
2. run `xdg-screensaver suspend 0xsomevalididhere`

powerdevil will do the following:

Aug 09 00:10:51 archbook org_kde_powerdevil[797]: powerdevil: Scheduling inhibition from ":1.12" "0x5c00001" with cookie 24 and reason "xdg-screensaver"
Aug 09 00:10:51 archbook org_kde_powerdevil[797]: powerdevil: Releasing inhibition with cookie  24
Aug 09 00:10:51 archbook org_kde_powerdevil[797]: powerdevil: It was only scheduled for inhibition but not enforced yet, just discarding it

mpv's current git HEAD relies on xdg-screensaver to suspend the lock screen, so this is somewhat irritating.
Comment 1 David Edmundson 2017-08-09 00:14:26 UTC

*** This bug has been marked as a duplicate of bug 381160 ***
Comment 2 Nicolas F. 2017-08-09 11:41:10 UTC
This is not a duplicate of that bug, for me, the inhibition does not work at all. The screen lock or dimming proceeds regardless.
Comment 3 Nicolas F. 2017-08-09 11:45:22 UTC
Nevermind, just read all the comments on that bug report and it looks like this was reported upstream and indeed the same issue.