Mark,

On Sun, 2 Mar 2025 08:52:27 -0700 you wrote:

> https://unix.stackexchange.com/questions/309696/how-do-i-find-out-which-application-is-disabling-sleep
> 
> On Sun, Mar 2, 2025 at 8:22 AM Dr Rainer Woitok <rainer.woi...@gmail.com> 
> wrote:
> >
> > Greetings,
> >
> > after my last routine upgrade on Friday trying to hibernate my laptop by
> > pressing the power key pops-up a window telling me
> >
> >    An application is currently disabling the automatic sleep.  Doing
> >    this action now may damage the working state of this application.
> >    Are you sure you want to hibernate the system?
> >
> >        No                                                    Yes

Thankyou for the link.   But the command mentioned there did not lead to
anything,  neither when called unprivileged (exit code 0)  nor as "root"
(exit code 1):

   $ dbus-send --print-reply --dest=org.freedesktop.PowerManagement 
/org/freedesktop/PowerManagement/Inhibit 
org.freedesktop.PowerManagement.Inhibit.GetInhibitors
   method return time=1741177722.328776 sender=:1.24 -> destination=:1.290 
serial=126 reply_serial=2
   array [
   ]
   $

   # dbus-send --print-reply --dest=org.freedesktop.PowerManagement 
/org/freedesktop/PowerManagement/Inhibit 
org.freedesktop.PowerManagement.Inhibit.GetInhibitors
   Error org.freedesktop.DBus.Error.ServiceUnknown: The name 
org.freedesktop.PowerManagement was not provided by any .service files
   #

Maybe that's not too surprising,  given that one of the two ways to tell
my laptop to hibernate is working flawlessly.  Where can I find informa-
tion about which commands or processes  are involved  when I short-press
the power key?

Sincerely,
  Rainer

Reply via email to