Post by Enrik Berkhan#v+
$ echo 1 | sudo tee /sys/bus/usb/devices/4-0:1.0/usb4-port1/disable
$ echo 0 | sudo tee /sys/bus/usb/devices/4-0:1.0/usb4-port1/disable
#v-
Bei mir war das Bus 4 / Port 1. Sollte sich also bei dir für 2/2
entsprechend finden lassen.
Was eine Journey ;-)
|[3/799]***@spiral:~ $ find /sys/bus/usb/devices/
|/sys/bus/usb/devices/
|/sys/bus/usb/devices/2-1
|/sys/bus/usb/devices/1-8.1
|/sys/bus/usb/devices/usb1
|/sys/bus/usb/devices/2-1:1.0
|/sys/bus/usb/devices/1-8.1:1.0
|/sys/bus/usb/devices/2-2:1.0
|/sys/bus/usb/devices/2-2
|/sys/bus/usb/devices/1-8
|/sys/bus/usb/devices/usb2
|/sys/bus/usb/devices/1-0:1.0
|/sys/bus/usb/devices/1-8:1.0
|/sys/bus/usb/devices/2-0:1.0
|[4/799]***@spiral:~ $ find /sys/bus/usb/devices/ | sort
|/sys/bus/usb/devices/
|/sys/bus/usb/devices/1-0:1.0
|/sys/bus/usb/devices/1-8
|/sys/bus/usb/devices/1-8.1
|/sys/bus/usb/devices/1-8:1.0
|/sys/bus/usb/devices/1-8.1:1.0
|/sys/bus/usb/devices/2-0:1.0
|/sys/bus/usb/devices/2-1
|/sys/bus/usb/devices/2-1:1.0
|/sys/bus/usb/devices/2-2
|/sys/bus/usb/devices/2-2:1.0
|/sys/bus/usb/devices/usb1
|/sys/bus/usb/devices/usb2
|[5/800]***@spiral:~ $ lsusb -t
|/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/7p, 5000M
||__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usbfs, 5000M
||__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usbfs, 5000M
|/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
||__ Port 8: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
||__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M
|[6/800]***@spiral:~ $
Ich vermute also, dass ich bei 2-2 und 2-2:1.0 richtig bin. Mir fehlt
ein wenig die Verbindung zu "Device 3". Habe ich in /sys/bus/usb
wirklich nur die Busse und nich die Devices? Aber, kein "disable".
|[14/807]***@spiral:~ $ ls -al /sys/bus/usb/devices/2-2/ /sys/bus/usb/devices/2-2\:1.0/
|/sys/bus/usb/devices/2-2/:
|total 0
|drwxr-xr-x 6 root root 0 Mai 7 14:53 ./
|drwxr-xr-x 7 root root 0 Apr 29 09:55 ../
|drwxr-xr-x 8 root root 0 Mai 7 14:53 2-2:1.0/
|-rw-r--r-- 1 root root 4,0K Mai 15 08:37 authorized
|-rw-r--r-- 1 root root 4,0K Mai 15 08:37 avoid_reset_quirk
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 bcdDevice
|-rw-r--r-- 1 root root 4,0K Mai 7 15:38 bConfigurationValue
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 bDeviceClass
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 bDeviceProtocol
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 bDeviceSubClass
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 bmAttributes
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 bMaxPacketSize0
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 bMaxPower
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 bNumConfigurations
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 bNumInterfaces
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 busnum
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 configuration
|-r--r--r-- 1 root root 65K Mai 7 14:53 descriptors
|-r--r--r-- 1 root root 4,0K Mai 15 08:37 dev
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 devnum
|-r--r--r-- 1 root root 4,0K Mai 15 08:37 devpath
|lrwxrwxrwx 1 root root 0 Mai 7 14:54 driver -> ../../../../../bus/usb/drivers/usb/
|drwxr-xr-x 3 root root 0 Mai 15 08:37 ep_00/
|lrwxrwxrwx 1 root root 0 Mai 15 08:37 firmware_node -> ../../../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:0d/device:0e/device:1d/
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 idProduct
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 idVendor
|-r--r--r-- 1 root root 4,0K Mai 15 08:37 ltm_capable
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 manufacturer
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 maxchild
|drwxr-xr-x 2 root root 0 Mai 15 08:37 physical_location/
|lrwxrwxrwx 1 root root 0 Mai 15 08:37 port -> ../2-0:1.0/usb2-port2/
|drwxr-xr-x 2 root root 0 Mai 15 08:37 power/
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 product
|-r--r--r-- 1 root root 4,0K Mai 15 08:37 quirks
|-r--r--r-- 1 root root 4,0K Mai 15 08:37 removable
|--w------- 1 root root 4,0K Mai 15 08:37 remove
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 rx_lanes
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 serial
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 speed
|lrwxrwxrwx 1 root root 0 Mai 7 14:53 subsystem -> ../../../../../bus/usb/
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 tx_lanes
|-rw-r--r-- 1 root root 4,0K Mai 7 14:53 uevent
|-r--r--r-- 1 root root 4,0K Mai 15 08:37 urbnum
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 version
|
|/sys/bus/usb/devices/2-2\:1.0/:
|total 0
|drwxr-xr-x 8 root root 0 Mai 7 14:53 ./
|drwxr-xr-x 6 root root 0 Mai 7 14:53 ../
|-rw-r--r-- 1 root root 4,0K Mai 15 08:37 authorized
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 bAlternateSetting
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 bInterfaceClass
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 bInterfaceNumber
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 bInterfaceProtocol
|-r--r--r-- 1 root root 4,0K Mai 7 14:53 bInterfaceSubClass
|-r--r--r-- 1 root root 4,0K Mai 7 15:38 bNumEndpoints
|lrwxrwxrwx 1 root root 0 Mai 7 15:38 driver -> ../../../../../../bus/usb/drivers/usbfs/
|drwxr-xr-x 3 root root 0 Mai 15 08:37 ep_02/
|drwxr-xr-x 3 root root 0 Mai 15 08:37 ep_04/
|drwxr-xr-x 3 root root 0 Mai 15 08:37 ep_81/
|drwxr-xr-x 3 root root 0 Mai 15 08:37 ep_83/
|lrwxrwxrwx 1 root root 0 Mai 15 08:37 firmware_node -> ../../../../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:0d/device:0e/device:1d/
|-r--r--r-- 1 root root 4,0K Mai 15 08:37 modalias
|drwxr-xr-x 2 root root 0 Mai 15 08:37 physical_location/
|drwxr-xr-x 2 root root 0 Mai 15 08:37 power/
|lrwxrwxrwx 1 root root 0 Mai 7 14:53 subsystem -> ../../../../../../bus/usb/
|-r--r--r-- 1 root root 4,0K Mai 15 08:37 supports_autosuspend
|-rw-r--r-- 1 root root 4,0K Mai 7 14:53 uevent
|[15/808]***@spiral:~ $
Das "disable" findet sich in /sys/bus/usb/devices/2-2/port/, und wenn
das Gehäuse aus ist, ist der ganze Subtree nicht da:
|[2/830]***@spiral:~ $ find /sys/bus/usb/devices/ | sort
|/sys/bus/usb/devices/
|/sys/bus/usb/devices/1-0:1.0
|/sys/bus/usb/devices/1-8
|/sys/bus/usb/devices/1-8.1
|/sys/bus/usb/devices/1-8:1.0
|/sys/bus/usb/devices/1-8.1:1.0
|/sys/bus/usb/devices/2-0:1.0
|/sys/bus/usb/devices/2-1
|/sys/bus/usb/devices/2-1:1.0
|/sys/bus/usb/devices/usb1
|/sys/bus/usb/devices/usb2
Das hilft also auch nicht.
Grüße
Marc
--
----------------------------------------------------------------------------
Marc Haber | " Questions are the | Mailadresse im Header
Rhein-Neckar, DE | Beginning of Wisdom " |
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402