One of my USB ports (1-4) on my laptop is broken.I am not looking for a fix since it is a hardware issue, I am simply looking for a way to tell the kernel to stop trying to activate it because it is slowing down the activation of my working USB port. It also slows down reboots and shutdowns.
Context
CPU Info
$ uname -a
Linux raphael-laptop 5.17.9-1-MANJARO #1 SMP PREEMPT Wed May 18 09:20:53 UTC 2022 x86_64 GNU/Linux
$ neofetch --stdout
OS: Manjaro Linux x86_64
Host: HP Laptop 15-dy1xxx
Kernel: 5.17.9-1-MANJARO
CPU: Intel i3-1005G1 (4) @ 3.400GHz
GPU: Intel Iris Plus Graphics G1
Memory: 3885MiB / 7639MiB
Here is an example of what is happening endlessly:
Jun 11 10:06:44 raphael-laptop kernel: usb 1-4: device not accepting address 15, error -71
Jun 11 10:06:44 raphael-laptop kernel: usb usb1-port4: unable to enumerate USB device
Jun 11 10:06:45 raphael-laptop kernel: usb 1-4: new full-speed USB device number 16 using xhci_hcd
Jun 11 10:06:46 raphael-laptop kernel: usb 1-4: device descriptor read/64, error -71
Jun 11 10:06:46 raphael-laptop kernel: usb 1-4: device descriptor read/64, error -71
Jun 11 10:06:48 raphael-laptop kernel: usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
Jun 11 10:06:48 raphael-laptop kernel: usb usb1-port4: attempt power cycle
Jun 11 10:06:50 raphael-laptop kernel: usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
Jun 11 10:06:50 raphael-laptop kernel: usb 1-4: new full-speed USB device number 19 using xhci_hcd
Jun 11 10:06:50 raphael-laptop kernel: usb 1-4: Device not responding to setup address.
Jun 11 10:06:50 raphael-laptop kernel: usb 1-4: Device not responding to setup address.
Jun 11 10:06:50 raphael-laptop kernel: usb 1-4: device not accepting address 19, error -71
Jun 11 10:06:50 raphael-laptop kernel: usb usb1-port4: unable to enumerate USB device
Jun 11 10:06:51 raphael-laptop kernel: usb 1-4: new full-speed USB device number 20 using xhci_hcd
Jun 11 10:06:51 raphael-laptop kernel: usb 1-4: device descriptor read/64, error -71
I have tried different settings with /sys/bus/usb/devices/usb1/power/wakeup and /sys/bus/usb/devices/usb1/power/control to no avail. The only effect from the previous commands were disabling my working USB ports which is undesirable.
How do I tell the kernel to stop trying to activate USB port 1-4?
Thanks for the fast reply. I may be wrong, but I think the problem I’m having is at a lower level than the a udev solution can provide. I should have mentioned that the kernel will still try and fail to activate the USB port without a connected device. So the problem is the port itself, not a specific device. With that being said, I’ll look into udev, maybe it can help.