ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am working on power management project in linux. which is same as gnome power manager. i.e, I want to lock the monitor if system is idle for 5 min, hibernate after 30 min like this.
My problem is how to find the idle time.
I know by using 'w' or 'finger' command we can get the idle time of terminal. but it gives the idle time of terminals, not other applications.
ex:suppose if i am using firefox or gedit application, the "w" command will not give the idle time of that firefox rite?
How can i get the idle time of these application.
Is there an API or command or if u have source code please post it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.