Bonjour,
Je cherche a comprendre l’identification usb pour accéder au bon parametres power de mon equipement wifi
root@desktop:/# lsusb
Bus 001 Device 005: ID 1058:1021 Western Digital Technologies, Inc. Elements 2TB
Bus 001 Device 004: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 004 Device 002: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 046d:0840 Logitech, Inc. QuickCam Express
Bus 002 Device 002: ID 04b8:080f Seiko Epson Corp. Stylus Photo RX420/RX425/RX430
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
lsusb me dit 1-4
root@desktop:/# for device in $(ls /sys/bus/usb/devices/*/product); do echo $device;cat $device;done
/sys/bus/usb/devices/1-3/product
USB WLAN
/sys/bus/usb/devices/1-4/product
Ext HDD 1021
/sys/bus/usb/devices/2-1/product
USB MFP
/sys/bus/usb/devices/2-2/product
Camera
/sys/bus/usb/devices/4-1/product
USB Reader
/sys/bus/usb/devices/4-2/product
USB Receiver
/sys/bus/usb/devices/usb1/product
EHCI Host Controller
/sys/bus/usb/devices/usb2/product
OHCI PCI host controller
/sys/bus/usb/devices/usb3/product
OHCI PCI host controller
/sys/bus/usb/devices/usb4/product
OHCI PCI host controller
root@desktop:/#
Cette commande me dit 1-3
Pourquoi cette divergence? le comptage ne démarre pas à 1 pour les deux?
j’ai donc interdit l’auto-suspend ici
root@desktop:/sys/bus/usb/devices/1-3/power# cat control
on
et là
root@desktop:/sys/bus/usb/devices/1-3/driver/1-3/power# cat control
on
https://www.kernel.org/doc/Documentation/usb/power-management.txt
power/control
This file contains one of two words: "on" or "auto".
You can write those words to the file to change the
device's setting.
"on" means that the device should be resumed and
autosuspend is not allowed. (Of course, system
suspends are still allowed.)
"auto" is the normal state in which the kernel is
allowed to autosuspend and autoresume the device.