LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Power aware application (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/power-aware-application-859919/)

smartanwar80 02-01-2011 12:24 AM

Power aware application
 
Hi,
I am working to develop software for a Set top box with GIT Linux.

I need to implement power management feature.

I have added the routines in the kernel with which the system can enter suspend when I give the following system call from the application

system("echo standby > /sys/power/state")

My question is how to have a callback in the user level application which will come to know that the system has resumed after suspend?


Can I pass a user level function to the register_pm_notifier api...or is ther any other way out


All times are GMT -5. The time now is 08:33 AM.