I've just reinstalled Debian on my Sony VAIO laptop, and my
dmesg and virtual consoles all get spammed with the same messages over and over again.
[ 59.662381] hub 1-1:1.0: unable to enumerate USB device on port 2 [ 59.901732] usb 1-1.2: new high-speed USB device number 91 using ehci_hcd [ 59.917940] hub 1-1:1.0: unable to enumerate USB device on port 2 [ 60.157256] usb 1-1.2: new high-speed USB device number 92 using ehci_hcd
I believe these messages are coming from an internally connected USB device, most likely the webcam (since that's the only thing that doesn't work). The only way I can seem to have it shut up (without killing my actually useful USB ports) is to disable one of the USB host controllers:
# echo "0000:00:1a.0" > /sys/bus/pci/drivers/ehci_hcd/unbind
This also takes down my Bluetooth interface, but I'm fine with that.
I would like this setting to persist, so that I can painlessly use my virtual console again in case I need it. I want my operating system (Debian amd64) to never wake it up, but I don't know how to do this. I've tried to blacklist the module alias for the PCI device, but it seems to be ignored:
$ cat /sys/bus/pci/devices/0000\:00\:1a.0/modalias pci:v00008086d00003B3Csv0000104Dsd00009071bc0Csc03i20 $ cat /etc/modprobe.d/blacklist blacklist pci:v00008086d00003B3Csv0000104Dsd00009071bc0Csc03i20
How do I ensure that this specific PCI device is never automatically activated, without disabling its driver altogether?
-edit- The module was renamed recently, now the following works from userland:
echo "0000:00:1a.0" > /sys/bus/pci/drivers/ehci-pci/unbind
Still, I'm looking for a way to stop the kernel from binding that device in the first place.