Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-07-2010, 09:01 PM   #1
Registered: Oct 2006
Posts: 46

Rep: Reputation: 15
determining if system is active or inactive

Hi there,

For example, when a system transitions to sleep state, the system should determine if system is active or inactive.
I'm thinking of how to determine it as user activity, filesystem activity, and network activity.
I will exclude the keyboard activity.

So I'm wondering how to determine it generally in Linux (excluding keyboard activity).
Any idea or any related site?

Thanks in advance.
Old 02-07-2010, 09:13 PM   #2
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
top, iotop and ntop

or read the raw data from /proc and make a choice


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard inactive when log in GUI, but active on Console, any command line ?? Msi100SuSe10 Linux - Laptop and Netbook 16 01-26-2010 09:09 AM
Neat : After wireless Active, it become Inactive Again yteckong Linux - Wireless Networking 4 05-09-2007 08:00 AM
Determining the Active Virtual Console MasterPi Linux - General 5 05-03-2005 12:11 AM
determining active x window tcorreia Programming 1 08-22-2004 06:52 AM
determining active x window tcorreia Linux - General 1 08-20-2004 04:55 AM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration