Hello all,
I would like to do some actions in my app(specifically writing some logs) when laptop is waken up/slept due to lid opening/closing.
How can I detect that? Is there Notification emitted or API I can check to achieve that?
I have read I could use Advanced Configuration and Power Interface (ACPI) but I havent found a lot of documentation.
Thanks in advance