[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

detecting inactivity for power management



Hi all
 
I have completed implementing power management callbacks of s2ram for a ppc board. And i am able to put the board to suspend to ram using
echo mem > /sys/power/state.
 
Now i wanted a script / daemon to detect the inactivity in the system and then to put the system to suspend.
 
Had googled and all i got is based on d-bus interface. Mine is an  embedded ppc board with minimum filesystem without d-bus libraries.
 
Can anyone please let me know how to find the inactivity in this case.
 
Thanking you in advance.
 
Regards
Ashok