From: Dale Mellor <no-reply@rdmp.org>
To: linux-pm@vger.kernel.org
Subject: Ping: How should userland app be notified when kernel comes out of suspend or hibernation?
Date: Sun, 01 Jun 2025 17:54:39 +0100 [thread overview]
Message-ID: <c8c2f8fd741f1d212d67e7b732305c5afc2fa3fb.camel@rdmp.org> (raw)
In-Reply-To: 1e2af6bddb8cd51e5076285659a6f5bc92b026f9.camel@rdmp.org
[-- Attachment #1: Type: text/plain, Size: 974 bytes --]
Just bouncing this back up. Is anybody able to give any advice?
Thanks in advance.
-------- Forwarded Message --------
Date: 02/14/25 23:09:34
I am the originator of the GNU mcron app, which waits (using select)
for set amounts of time before executing some function on behalf of the
user. But when the system comes out of sleep the timings are all wrong
and need to be re-evaluated. But how does my application know when
this needs to happen?
I'm currently trying to use the ACPI netlink interface, which
conveniently gives me a socket I can add to the select call and wakes
me up when some power-changing event occurs. However, there is not an
event specifically for notifying the coming out of sleep, and different
systems will have different hardware which reacts in this situation
(the netlink interface has a soft specification and requires
introspection to understand the data it delivers).
What is the 'official' way to do this?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2025-06-01 17:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-14 23:09 How should userland app be notified when kernel comes out of suspend or hibernation? Dale Mellor
2025-06-01 16:54 ` Dale Mellor [this message]
2025-07-24 4:09 ` Ping: " Russell Haley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c8c2f8fd741f1d212d67e7b732305c5afc2fa3fb.camel@rdmp.org \
--to=no-reply@rdmp.org \
--cc=linux-pm@vger.kernel.org \
--cc=mcron-lsfnyl@rdmp.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).