Using DBus in Linux systems with or without GUI

user_ask03

New Member
Credits
13
I am looking into using DBus to catch power events on Linux such as sleep, hibernate and wakeup using PrepareForSleep() and PrepareForShutdown() signals. I have two main requirements:
  1. The approach must work for systems that have GUI or are purely console based
  2. Work for both Linux desktop and laptop systems
Is DBus the right approach or are there any other ways to go?
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Latest posts

Top