I am trying to plug in a USB webcam to record photos or video.
I have installed fswebcam to take a test picture, but it is not working.
I believe the problem is that the USB port is not able to supply enough power for the webcam.
- Trying to take the picture, there is no recognized camera in
pi@autopi-:~ $ fswebcam test_pic.jpg --- Opening /dev/video0... stat: No such file or directory
- When the camera is plugged:
pi@autopi:~ $ lsusb -v | egrep "^Bus|MaxPower" Bus 001 Device 006: ID 046d:081b Webcam MaxPower 500mA
- Trying to find about the power of the USB ports (this one should be it since the id matches):
pi@autopi:~ $ usb-devices T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 6 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=046d ProdID=081b Rev=00.10 S: SerialNumber=F5908A20 C: #Ifs= 0 Cfg#= 0 Atr= MxPwr=
There doesn’t seem to be a fixed
- In fact, after plugging the webcam:
pi@autopi:~ $ dmesg [ 120.973410] usb 1-1.1: new high-speed USB device number 6 using dwc_otg [ 121.314925] usb 1-1.1: New USB device found, idVendor=046d, idProduct=081b [ 121.314950] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=2 [ 121.314963] usb 1-1.1: SerialNumber: F5908A20 [ 121.315687] usb 1-1.1: rejected 1 configuration due to insufficient available bus power [ 121.315710] usb 1-1.1: no configuration chosen from 1 choice [ 121.315721] usb 1-1.1: No support over 100mA [ 121.315985] usb 1-1-port3: 500mA is over 100mA budget! [ 121.316004] hub 1-1:1.0: 150mA over power budget!
So my question is, how can I get around this?
Is there a way to increase this threshold?
Since the USB ports are not in the Pi Zero (but in the autopi board) maybe you could help.
Thanks in advance,