Sometimes when I try to suspend my laptop (using the sleep keyboard button), I get this popup from xfce4-power-manager: "Are you sure you want to hibernate the system? An application is currently disabling the automatic sleep. Doing this action now may damage the working state of this application." I don't want to hibernate - I would like to know which application is disabling sleep, so that I can quit it and suspend the system normally. How can I find this out?

I'm on Xubuntu 15.10.

  • 2
    Please don't cross post between sites. askubuntu.com/questions/824583/… – cutrightjm Sep 13 '16 at 22:42
  • Deleted cross-post, sorry. (I do wish here and askubuntu weren't confusingly separate.) – weronika Sep 14 '16 at 1:12
  • Newer versions of xfce4-power-manager have this information in tray menu. – PF4Public May 9 '18 at 15:12
  • @PF4Public Running XUbuntu 18.04 but I don't see this... where exactly should it be showing up? – Wil Jun 8 '18 at 17:09
  • 2
    @Wil See this screenshot: imgur.com/TVkO2GC – PF4Public Jun 13 '18 at 14:48

Under Freedesktop-compliant environments, including XFCE4, sleep inhibition is communicated via D-Bus on the org.freedesktop.PowerManagement bus. I can't find any documentation about this; the xfce4 code has a list of methods which includes one called GetInhibitors so this should work:

dbus-send --print-reply --dest=org.freedesktop.PowerManagement /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.GetInhibitors
  • how to I politely tell the system to ignore the request to prevent suspending, since by preventing suspending, these applications are realizing their own worst nightmare - powerfail - instead of allowing the system to sleep and preserve their consistency when the battery hits 10%. – Wil Jun 8 '18 at 17:06
  • @Wil I don't know. Please ask this as a new question. – Gilles 'SO- stop being evil' Jun 8 '18 at 18:02
  • ty, done : unix.stackexchange.com/questions/448702/… – Wil Jun 8 '18 at 19:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.