GNU bug report logs - #63620
30.0.50; [Feature Request] run hooks on sleep/wake

Previous Next

Package: emacs;

Reported by: Andrew Cohen <acohen <at> ust.hk>

Date: Sat, 20 May 2023 23:25:02 UTC

Severity: wishlist

Tags: patch

Found in version 30.0.50

Full log


Message #181 received at 63620 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Andrew Cohen <acohen <at> ust.hk>
Cc: 63620 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, Ship Mints <shipmints <at> gmail.com>
Subject: Re: bug#63620: 30.0.50; [Feature Request] run hooks on sleep/wake
Date: Fri, 07 Feb 2025 09:03:36 +0100
Andrew Cohen <acohen <at> ust.hk> writes:

Hi Andrew,

> (systemd allows me to list all of the applications holding blocks. My
> gnome desktop typically shows 7 or 8 applications holding blocks for
> sleep, including the Network Manager, Power Manager, etc)

Side note: According to org.freedesktop.login1.Manager, you could get
this information also on D-Bus level, calling method ListInhibitors.

Another idea: There are the properties Docked, LidClosed and
OnExternalPower. Perhaps you could check them in your sleep-handler, and
start different actions depending on their value.

> Best,
> Andy

Best regards, Michael.




This bug report was last modified 130 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.