Too many USB port disconnections before Xorg starts

Hello.

what could be the cause of the frequently USB devices and port disconnections that sometimes I have and sometimes not,before Xorg starts ? Please can you give a look at the log events below :

Code:
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 18 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 19> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
Dec 12 13:02:43 marietto syslogd: last message repeated 1 times
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 19 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 20> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 20 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 21> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 21 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 22> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
Dec 12 13:03:50 marietto syslogd: last message repeated 1 times
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 22 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 23> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 23 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 24> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 24 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 25> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 25 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 26> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 26 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 27> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 27 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 28> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 28 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 29> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 29 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached
ugen0.9: <Logitech USB Optical Mouse> at usbus0
usbhid4 on uhub4
usbhid4: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 30> on usbus0
hidbus4: <HID bus> on usbhid4
hms0: <Logitech USB Optical Mouse> on hidbus4
hms0: 8 buttons and [XYW] coordinates ID=0
Dec 12 13:11:32 marietto syslogd: last message repeated 7 times
Dec 12 13:12:35 marietto login[4914]: set class 'me' resource limit memorylocked: Operation not permitted
Dec 12 13:12:38 marietto ntpd[3529]: error resolving pool 0.freebsd.pool.ntp.org: Name does not resolve (8)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 00 48 00 00 e0 00
(da0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI status: Check Condition
(da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:4,1 (Logical unit is in process of becoming ready)
(da0:umass-sim0:0:0:0): Polling device for readiness
ugen0.9: <Logitech USB Optical Mouse> at usbus0 (disconnected)
usbhid4: at uhub4, port 3, addr 30 (disconnected)
hms0: detached
hidbus4: detached
usbhid4: detached

Actually I'm using FreeBSD 14.1,but I see this problem since FreeBSD version 13.2. Very thanks.
 
I've isolated the origin. The cause is one or more of these parameters added to /boot/loader.conf :

Code:
#utouch_load="YES"
#usbhid_load="YES"
#hw.usb.usbhid.enable=1
#xhci_mouse="YES"
 
Code:
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10).

It is integrated with the mobo,so yes,it is powered.
 
This is the mouse that disconnects frequently :

Code:
ugen0.9: <Mouse Logitech, Inc.> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)

I bet that it does not like this parameter :

Code:
xhci_mouse="YES"
 
Wrong bet. This is the offending parameter :

Code:
#hw.usb.usbhid.enable=1

Don't know if the problem belongs only to me or if it is diffuse. Anyway,I have removed it from /boot/loader.conf and the disconnections are gone.
 
Code:
hw.usb.usbhid.enable=1

thats from my config for an external usb keyboard

not a good idea to blindly copy other peoples config
without knowing what the commands do
 
Come on,you can't say that that parameter is yours ;)
Anyway,I put and remove a lot of parameters because I learn by doing.
 
I used a keyboard behind a powered USB-C hub with usbhid no problem, but haven't tried a mouse. I haven't heard of the xchi_mouse parameter (but also seemingly don't need it). usbhid doesn't need the load with the hw.usb.usbhid part, and I'm not familiar with utouch.
 
So,if I have understood well,hw.usb.usbhid.enable=1 and xhci_mouse="YES" should be used together ? that error happens because they are used separately ?
 
I bet that it does not like this parameter :

xhci_mouse="YES"
I'm pretty sure this has nothing to do with FreeBSD itself (and doesn't belong to /boot/loader.conf then), but it's an option of a vm-bhyve VM config file. Only references I find about it are from vm(8).
 
ok. So the problem is between my mouse (connected to the "USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host" and this parameter : hw.usb.usbhid.enable=1 ; it seems that they don't agree.
 
Code:
/etc/sysctl.conf

Code:
hw.usb.usbhid.enable=1

is to enable multimedia keys on an external usb keyboard
like the volume keys

Code:
xhci_mouse="YES"

is a setting that goes in the bhyve vm's config file
and not in

Code:
/boot/loader.conf
 
xhci_mouse="YES" is a setting that goes in the bhyve vm's config file.

I never used this parameter in the bhyve vm config file. Maybe you mean the bhyve config file created by vm-bhyve ? I don't use vm-bhyve.
 
This is all unrelated to your mass disconnects.

The offending parameter is not good (for me at least) even if I place it on sysctl.conf. I can't use it at all ; why do you say "This is all unrelated to your mass disconnects" ? What do you mean.
 
I had this same thing with a very cheap Logitech mouse. It keeps on breaking the connection for no reason. It seems intentionally bugging non-MS USB-stacks.
 
I had this same thing with a very cheap Logitech mouse. It keeps on breaking the connection for no reason. It seems intentionally bugging non-MS USB-stacks.

Would have been more sense intentionally bugging MS USB-stacks ? :D
 
Back
Top