I have a laptop with faulty LCD-panel cable. This cable is routed to LCD-panel and web-cam with microphone. The LCD-panel works normally, but webcam and microphone are faulty. I do not plan to visit repair, so I hope to get software based solution. Really I do not use this webcam and have bluetooth handset for mic replacement.
Currently I know that webcam is at /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5
.
I want do blacklist this port.
If it matters, lsusb
says currently the following about this device:
Bus 002 Device 053: ID 04f2:b330 Chicony Electronics Co., Ltd Asus 720p CMOS webcam
and Device 053 has an increment.
It floods syslog with messages like
- usb 2-1.5: new high-speed USB device number 29 using ehci-pci
- usb 2-1.5: device descriptor read/64, error -71
- usb 2-1.5: USB disconnect, device number 23.
Without uvcvideo
driver blacklisting it floods the uvcdynctrl-udev.log
file:
$ ls -alh /var/log/uvcdynctrl-udev.log
-rw-r--r-- 1 root root 8,1G Apr 17 18:20 /var/log/uvcdynctrl-udev.log
So I have already blacklisted uvcvideo
kernel driver by placing blacklist uvcvideo
to /etc/modprobe.d/blacklist-uvc.conf
. But this single measure does not help.
How should I blacklist faulty internal USB port with connected webcam completely?
echo suspend | sudo tee /sys/bus/usb/devices/usb2/power/level
it returnssuspend
withtee: /sys/bus/usb/devices/usb2/power/level: Invalid argument
. How should we fix the second command? – N0rbert May 16 '21 at 14:17echo suspend | sudo tee /sys/bus/usb/devices/2-1/power/level
– matigo May 16 '21 at 14:24Invalid argument
too. Do we have other flags in sysfs? – N0rbert May 16 '21 at 14:26udev
rule. It’s an older technique, but should work – matigo May 16 '21 at 14:37echo 0 | sudo tee /sys/bus/usb/devices/2-1/authorized
as per https://www.kernel.org/doc/Documentation/usb/authorization.txt . I putecho 0 > /sys/bus/usb/devices/2-1/authorized
to/etc/rc.local
. – N0rbert May 16 '21 at 14:38