[GE users] Keyboard / Mouse idle time in Linux

Dan Gruhn Dan.Gruhn at Group-W-Inc.com
Thu May 12 15:44:09 BST 2005


Attached is a load sensor for Linux to measure keyboard idle time in
seconds.  It will show a max of 1 day's worth of seconds and will work
on multiple CPU machines.

Any changes or suggests are welcome.

Dan

On Thu, 2005-05-12 at 09:28, Terry Lalonde wrote:

> Well...I guess that would make it difficult to
> determine which device is generating the int. :-)
> 
> Our systems,  have a keyboard entry which is useful
> 
>            CPU0       
>   0:   60863574          XT-PIC  timer
>   1:      63483          XT-PIC  keyboard
>   2:          0          XT-PIC  cascade
>   8:          1          XT-PIC  rtc
>   9:          0          XT-PIC  usb-uhci
>  10:     175676          XT-PIC  Intel ICH2
>  11:    7173268          XT-PIC  usb-uhci, eth0
>  14:     269337          XT-PIC  ide0
>  15:          3          XT-PIC  ide1
> NMI:          0 
> ERR:          0
> 
> > -----Original Message-----
> > From: Orion Poplawski [mailto:orion at cora.nwra.com]
> > Sent: Wednesday, May 11, 2005 5:40 PM
> > To: users at gridengine.sunsource.net
> > Subject: Re: [GE users] Keyboard / Mouse idle time in Linux
> > 
> > Terry Lalonde wrote:
> > > look at the /proc/interrupts it ups a counter for each
> > > interrupt type keyboard etc.
> > >
> > >
> > >
> > 
> > What if devices share interrupts?
> > 
> > # cat /proc/interrupts
> >             CPU0
> >    0:  132279615          XT-PIC  timer
> >    2:          0          XT-PIC  cascade
> >    7:        174          XT-PIC  parport0
> >    8:          1          XT-PIC  rtc
> >    9:          0          XT-PIC  acpi
> >   10:  569582543          XT-PIC  ehci_hcd, uhci_hcd, eth0
> >   12:  357060691          XT-PIC  uhci_hcd, uhci_hcd, uhci_hcd,
> > radeon at pci:0000:01:00.0
> >   14:    8061970          XT-PIC  ide0
> >   15:   37410329          XT-PIC  ide1
> > NMI:          0
> > ERR:          0
> > 
> > 
> > 
> > --
> > Orion Poplawski
> > System Administrator                   303-415-9701 x222
> > Colorado Research Associates/NWRA      FAX: 303-415-9702
> > 3380 Mitchell Lane, Boulder CO 80301   http://www.co-ra.com
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> > For additional commands, e-mail: users-help at gridengine.sunsource.net
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
> 


    [ Part 2, Text/X-SH (Name: "keybdlinux.sh") 88 lines. ]
    [ Unable to print this part. ]


    [ Part 3: "Attached Text" ]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net



More information about the gridengine-users mailing list