Catching machine suspend events

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Catching machine suspend events

David Llewellyn-Jones

I have a service that runs a gtk main loop using g_main_loop_run(). I'd
like to know when the machine is about to be put into a suspend state,
ideally before the screen gets locked.

Are there any glib signals I can connect to for this? If not, should I
be using dbus to listen for org.freedesktop.UPower signals as described

gtk-app-devel-list mailing list
[hidden email]