@surjack: 1-6zależy od mapowania portów. Jeśli wpiszesz lsusb -t, dostaniesz go, a następnie porównaj z wynikiem lsusb. Dla mnie otrzymuję następujące wyniki:
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 5986:0525 Acer, Inc
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 012: ID 413c:2107 Dell Computer Corp.
i
lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 1: Dev 2, If 0, Class=Video, Driver=uvcvideo, 5000M
|__ Port 1: Dev 2, If 1, Class=Video, Driver=uvcvideo, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 3: Dev 9, If 0, Class=Vendor Specific Class, Driver=hdm_usb, 480M
|__ Port 4: Dev 10, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 3: Dev 11, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 12, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 3: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 3: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
Teraz po prostu znajdź odpowiedni autobus, który jest 04w moim przypadku, ponieważ Acer, Incto kamera. Mapowanie portów pokazuje, że kamera się znajduje Bus 04.Port 1. Oznacza to, że zamiast używać 1-6muszę użyć 4-1. Nie jestem ekspertem od Linuksa / Ubuntu, ale daje mi to wrażenie, że musisz użyć Bus-Porti po prostu użyć liczb. Jeśli chcesz być w 100% pewien, użyj catpolecenia zgodnie z opisem:
cat /sys/bus/usb/devices/<Bus>-<Port>/id{Vendor,Product}
i porównaj to z lsusb.
W moim przypadku:
cat /sys/bus/usb/devices/4-1/id{Vendor,Product}
5986
0525
który jest identyczny z wyjściem lsusb: 5986:0525.
Teraz znalazłeś swoją wewnętrzną kamerę internetową.
Ale niestety lysdexia ma rację, a polecenie echo nie działa, ponieważ Permission denied.
Czy jest dostępne inne rozwiązanie?