We are developing a small battery, based on capacitor, which can keep the machine ON for 2 minutes once the AC Power is lost.
We are going to write a Linux device driver for the module, it provides us with the status information like AC is connected or disconnected.
Is there any way for the Linux driver to send standard messages such as
- AC Power Lost
- AC Power restored
All the applications registered for that event should get the message.