9
rated 0 times
[
9]
[
0]
/ answers: 1 / hits: 4102
/ 2 Years ago, thu, october 14, 2021, 9:11:33
In a background Python script I need to detect, when the system just woke up from suspend. What is a good way that does not rely on a root script but rather on python modules such as DBus?
I'm new to dbus so I could really use some example code. From what I read it's related to
org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Resuming
Can anyone help me out with some code that connects the resuming signal to callback?
More From » python