You are not logged in.

#1 2011-07-17 02:48:48

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

find out USB-port of PID?

I want to set priorities of my usb-devices using rtirq script
I managed to give the ports high priorities but i can't find out wich one is wich.
I need to know wich PID belongs to wich usb port.
top, f.e. only shows me uhci_hcd without the aditional port information:

1256 root     -85   0     0    0    0 S  0.7  0.0   0:02.04   0:02 irq/21-uhci_hcd                             
1251 root     -86   0     0    0    0 S  0.0  0.0   0:00.37   0:00 irq/21-uhci_hcd                                                                  
1260 root     -84   0     0    0    0 S  0.3  0.0   0:00.23   0:00 irq/21-uhci_hcd                             
1263 root     -83   0     0    0    0 S  0.3  0.0   0:00.21   0:00 irq/21-uhci_hcd   

how can I find this out?

Offline

#2 2011-07-20 15:32:38

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: find out USB-port of PID?

anybody?

Offline

#3 2011-07-20 18:53:39

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: find out USB-port of PID?

man pidof ,and try using "htop" you can edit the output as you please....

Last edited by gregor (2011-07-20 19:03:01)

Offline

#4 2011-07-20 19:50:52

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: find out USB-port of PID?

gregor wrote:

man pidof ,and try using "htop" you can edit the output as you please....

see output above, I got the PID. there is no way to show the specific port in htop

Offline

#5 2011-07-21 06:56:40

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: find out USB-port of PID?

"man lsof"  or "http://www.noah.org/wiki/Port_to_PID"  will this do......

Offline

#6 2011-07-21 11:04:26

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: find out USB-port of PID?

gregor wrote:

"man lsof"  or "http://www.noah.org/wiki/Port_to_PID"  will this do......

?????????
I'm talking about usb-ports

Offline

#7 2011-07-21 11:51:52

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: find out USB-port of PID?

whow dude.... just open an pfffffffff lets say a picture from a usb-device (duh) and trace it back ,or the usb-devices aren't HDD ?????

or play around with " lsusb "  http://www.treshna.com/blog/?p=68


have fun....

Last edited by gregor (2011-07-21 12:16:28)

Offline

#8 2011-07-21 19:42:01

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: find out USB-port of PID?

I give it up,

even   lshw doesn't show it:

      *-usb:0
             description: USB Controller
             product: VT82xxxxx UHCI USB 1.1 Controller
             vendor: VIA Technologies, Inc.
             physical id: 10
             bus info: pci@0000:00:10.0
             version: 81
             width: 32 bits
             clock: 33MHz
             capabilities: pm uhci bus_master cap_list
             configuration: driver=uhci_hcd latency=32
             resources: irq:21 ioport:e000(size=32)
        *-usb:1
             description: USB Controller
             product: VT82xxxxx UHCI USB 1.1 Controller
             vendor: VIA Technologies, Inc.
             physical id: 10.1
             bus info: pci@0000:00:10.1
             version: 81
             width: 32 bits
             clock: 33MHz
             capabilities: pm uhci bus_master cap_list
             configuration: driver=uhci_hcd latency=32
             resources: irq:21 ioport:dc00(size=32)
        *-usb:2
             description: USB Controller
             product: VT82xxxxx UHCI USB 1.1 Controller
             vendor: VIA Technologies, Inc.
             physical id: 10.2
             bus info: pci@0000:00:10.2
             version: 81
             width: 32 bits
             clock: 33MHz
             capabilities: pm uhci bus_master cap_list
             configuration: driver=uhci_hcd latency=32
             resources: irq:21 ioport:d800(size=32)
        *-usb:3
             description: USB Controller
             product: VT82xxxxx UHCI USB 1.1 Controller
             vendor: VIA Technologies, Inc.
             physical id: 10.3
             bus info: pci@0000:00:10.3
             version: 81
             width: 32 bits
             clock: 33MHz
             capabilities: pm uhci bus_master cap_list
             configuration: driver=uhci_hcd latency=32
             resources: irq:21 ioport:d400(size=32)

thanks for trying, Gregor


anybody reading in the future: What I tried to find out is the priority of a specific usb-port. As they are all on one IRQ, wich I can't change, it seams unpossible

Offline

#9 2011-07-22 07:36:08

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: find out USB-port of PID?

but you can change the "priority" from the different processes running through it ....(right ?)

Last edited by gregor (2011-07-22 07:42:22)

Offline

#10 2011-07-23 23:50:45

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: find out USB-port of PID?

silly me, it was so easy to find out.....it's an usb-audio-device, simply using it shows up some CPU-usage in htop wich showed me wich priotity it has

Offline

#11 2011-07-24 10:09:57

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: find out USB-port of PID?

well done

Offline

Board footer

Powered by FluxBB