System idle time under Linux

Hugo Léveillé hugol at fastmail.net
Wed Sep 29 14:36:00 EDT 2010


Good point

One I am looking for, is time since last user mouse or keyboard action.
So I guess I am looking for the exact same thing a screensaver is
looking for



On Wed, 29 Sep 2010 17:27 +0000, "Seebs" <usenet-nospam at seebs.net>
wrote:
> On 2010-09-29, Hugo L?veill? <hugol at fastmail.net> wrote:
> > I have found it for windows and mac, but no luck under linux. Any idea?
> 
> I don't think it's semantically well-defined.  What makes a system
> "idle"?
> 
> Is the machine in my basement idle?  I don't think anyone's touched the
> keyboard in a week, but it's spent a big chunk of that time with 100% CPU
> load across all eight processors, and I was running a bunch of work on
> it yesterday, including interactive sessions.
> 
> Windows and Mac systems *typically* have a well-defined "console" on
> which
> the primary user is active... But as a counterexample, my news reader is
> actually running on an OS X box that's about fifty feet from me, which I
> connect to via ssh.
> 
> I would be very curious to see whether your test for "system idle time"
> would realize that the machine I'm currently working on is actively in
> use,
> even though I don't think the console is even logged in...
> 
> Basically, I can't help you, but I can tell you that you are quite
> possibly
> asking the wrong question.
> 
> -s
> -- 
> Copyright 2010, all wrongs reversed.  Peter Seebach /
> usenet-nospam at seebs.net
> http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
> http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
> I am not speaking for my employer, although they do rent some of my
> opinions.
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 


-- 
  Hugo Léveillé
  hugol at fastmail.net




More information about the Python-list mailing list