Re: /proc/interrupts

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

 





On 1/14/06, Vijay Subramanian <subramanian.vijay@xxxxxxxxx> wrote:
On 13/01/06, Nauman Tahir <nauman.tahir@xxxxxxxxx> wrote:
> On 1/12/06, akumar@xxxxxxxxxxxxxxxxxx < akumar@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > irq 1 for keyboard
> > irq 3 for serial mouse
> > irq 12 for PS/2 mouse


This will not be true always. Easiest way to do this is:
1: type cat /proc/interrupts and see the number of interrupts in each line.
2: move the mouse.
3: check the number of interrupts again. Each mouse movement will
reliably increment some interrupt's count..

(couple of them may increase , for e.g timer..) But you can easily
narrow it down.

as Vijay has said .. some of them will change so it's hard to figure it out this way ..
in general mouse can be one of the kinds "serial", "PS2", "usb"
serial and usb is explicitly named in /proc/interrupts
while ps2 will be found under the name of i8042 in /proc/interrupts
you'll find many usb interrupt numbers, and two i8042 (if your mouse and keyboard is ps2) .. so you can do what Vijay has just noted to determine which usb or which i8042 is your mouse using
Hope this helps

MHD.Tayseer

Btw, I see the interrupt numbers are in the hundreds.. Out of
curiosity, what is the processor?

vijay--
Networks Lab, RPI
http://poisson.ecse.rpi.edu/~vijay

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux