PDA

View Full Version : power management events



sammy_aus
June 10th, 2010, 07:51 AM
Hello,

Is it possible to catch the power management events(hibarnate/standby/sleep) into the code(c++)?

As far as i understand i need to use acpi daemon.
But it is not clear how can i subscript to events?

Thanks in advance.

Zugzwang
June 10th, 2010, 01:28 PM
Have a look at the D-Bus:

http://software.intel.com/en-us/articles/developing-power-aware-applications-using-d-bus/

The article does not cover precisely what you want but might be a good start.