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 #160 received at 63620 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Cohen <acohen <at> ust.hk>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 63620 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, michael.albinus <at> gmx.de
Subject: Re: bug#63620: 30.0.50; [Feature Request] run hooks on sleep/wake
Date: Thu, 06 Feb 2025 23:43:41 +0800
>>>>> "SM" == Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

    >> What is the semantics of this?  If the user closes the lid of the
    >> laptop, and that was defined to put the system to sleep, does
    >> such "inhibiting" mean the system will not sleep?  If so, I'm not
    >> sure this is supported.

    SM> Don't know about "supported", but failing to sleep when the
    SM> laptop is closed can be a major problem (I only experienced the
    SM> milder versions, like finding my laptop with an empty battery,
    SM> or my backpack all dirty with melted chocolate, but overheating
    SM> can be a serious issue).

The "Inhibit" method I am using allows a delay rather than a total
block. You can specify a time (default I think is 5 seconds) after which
the sleep will proceed (or you can remove the delay earlier). So your
chocolate is safe (at least from melting).


-- 
Andrew Cohen




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.