Using DBus in Linux systems with or without GUI

user_ask03

New Member
Joined
Apr 2, 2021
Messages
1
Reaction score
0
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!

Linux.org Hosting Donations
Consider making a donation

Staff online

Members online


Latest posts

Top