Subject: bug#63620: 30.0.50; [Feature Request] run hooks on sleep/wake

From: Eli Zaretskii <[email-masked]>
Date: Thu, 06 Feb 2025 17:58:13 +0200

> From: Stefan Monnier <[email-masked]>
> Cc: [email-masked],  [email-masked],  [email-masked]
> Date: Thu, 06 Feb 2025 10:29:27 -0500
> 
> > Thanks, so which of these solutions would you recommend as the
> > cleanest and the most convenient/extensible one?
> 
> For the "wake", we could make it into an event, but for the "sleep" part
> we can't really push this to the event queue because we need to process
> it promptly (the system is waiting for an answer).

AFAIK, this is not a problem, because the system will wait for
programs to become idle anyway.