Boots hangs randomly with USB mouse

Hi,

I'm plagued with a random problem for several months. Sometimes, the boot process hangs when looking for USB devices with:

Code:
ugen2.4: <Canon CanoScan> at usbus2
ugen2.5: <Logitech USB-PS/2 Optical Mouse> at usbus2
ugen2.5: <Logitech USB-PS/2 Optical Mouse> at usbus2 (Disconnected)
ugen2.5: <Logitech USB-PS/2 Optical Mouse> at usbus2 
ugen2.5: <Logitech USB-PS/2 Optical Mouse> at usbus2 (Disconnected)

The only way to correct it is to reboot and pray it won't happen again.
I found a thread on something similar but cannot for the life of me find it again. The advice in there was to set in /boot/loader.conf

Code:
# Don't wait for USB (sometimes it hangs)
hw.usb.no_boot_wait=1

Unfortunately, it doesn't work.

Any advice is appreciated !
 
Have you tried a different mouse or same mouse in a different port? The "Disconnected" are interesting.
I've got a couple of systems that during USB probing something (software) thinks something (hardware) is on a port off a hub but there really isn't anything there. Unless the behavior of no_boot_wait changed in an updated kernel that should at least skip over waiting on USB devices at boot time. Not an issue for mouse, but may be if you have an external disk off USB.
You may also need to put quotes around the 1:
hw.usb.no_boot_wait="1"
 
… quotes around the 1…

Not necessary in this case.

FDreamer can you share more of what's logged? As part of a probe will be ideal; for a holistic view of things.

pkg install -y sysutils/hw-probe sysutils/hwstat sysutils/lsblk sysutils/pciutils sysutils/usbutils
hw-probe -all -upload
 
The issue occurred again today: switching to another USB port or to another mouse or both did not help. I had to shutdown it forcefully so I cannot share the output of dmesg when it's failing.
But here's a normal boot:
 

Attachments

  • dmesg.txt
    11.3 KB · Views: 82
I cannot share the output of dmesg when it's failing.

In addition to /var/run/dmesg.boot (mentioned in the manual page for dmesg(8)), one or both of these files might prove useful in future:
  • /var/log/dmesg.today
  • /var/log/dmesg.yesterday
Also /var/log/messages

Code:
ugen2.5: <Logitech USB-PS/2 Optical Mouse> at usbus2
ugen2.5: <Logitech USB-PS/2 Optical Mouse> at usbus2 (Disconnected)
ugen2.5: <Logitech USB-PS/2 Optical Mouse> at usbus2
ugen2.5: <Logitech USB-PS/2 Optical Mouse> at usbus2 (Disconnected)

If you get symptoms such repeated detection, disconnection, detection, disconnection with a different mouse at a different port, I might suspect a hardware issue with the computer.

Are the input/output errors significant? <https://bsd-hardware.info/?probe=29cfd33c5e&log=lsusb>
 
Back
Top