! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Sleep Functionality (systemd) Issues
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description ToZ editbugs 2015-03-27 21:51:00 CET
Created attachment 6136 
Log file

Summary: As of the recent git work in xfce4-power-manager (GTK3, upower, GDBus), the systemd inhibit mechanism seems broken. Running the power-manager in --nodaemon --debug mode, I get this snippet:

(xfce4-power-manager:16080): xfce4-power-manager-WARNING **: Unable to inhibit systemd sleep: Method 'Inhibit' returned type '(h)', but expected '()'

Observations: When closing the laptop lid, the system goes to sleep. Upon resuming from sleep, I sometimes get a double-suspend event (system goes back to sleep) or I get a notification bubble with the following message:
"Power Manager Notification
GDBus.Error:org.freedesktop.login1.OperationInProgress: There's already a shutdown or sleep operation in progress."

Reverting back to 1.4.4 resolves the issue. Complete log file attached.
Comment 1 ToZ editbugs 2015-03-27 21:53:52 CET
The system is Arch Linux and I'm using the default logind.conf file:

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
Comment 2 Eric Koegel editbugs 2015-04-02 19:17:21 CEST
Created attachment 6163 
Fix logind inhibit (Bug #11767)

ToZ,
  This should fix the issue, can you test it out?

Thanks!
Comment 3 ToZ editbugs 2015-04-02 21:54:07 CEST
Thanks again Eric, this fix has made it work again.
Comment 4 Simon Steinbeiss editbugs 2015-04-03 09:55:16 CEST
I also noticed that bug and the patch resolved the problem for me as well so I pushed it to master in commit b7a731f71c545a039fbe762967cb57bebdc20863.

Thanks for the fix, Eric!
(If only all fixes could be so trivial :) )

Bug #11767

Reported by:
ToZ
Reported on: 2015-03-27
Last modified on: 2015-04-03

People

Assignee:
Ali Abdallah
CC List:
3 users

Version

Attachments

Log file (8.56 KB, text/x-log)
2015-03-27 21:51 CET , ToZ
no flags
Fix logind inhibit (Bug #11767) (1.11 KB, patch)
2015-04-02 19:17 CEST , Eric Koegel
no flags

Additional information