On Sat, Oct 26, 2024 at 10:46:19PM -0400, David Colburn wrote:
> Simplified plus "sysctl grep hw" output:
> 
> When the mouse or keyboard is disconnected, OpenBSD goes into this
> unrecoverable error loop:
> 
> "uhub2: device problem, disabling port 3".
> 
> Is there a way to tell OpenBSD to ignore the disconnect, please?
> 
> Thanks
> 
> NOTES & Hardware info ...
> 
> 1: This has occured with multiple, different, mice and keyboards.

Directly connected to the machine, or connected to the KVM?  If the
latter, then its (probably) irrelevant, because the problem likely is on
how the KVM detaches the devices (itself?) from the machine.

If you have only tested connected via the KVM, then try connecting them
directly to the machine, and then disconnect them to see if the error is
triggered.  Then, keeping the keyboard directly connected, connect the
empty KVM (i.e. no mouse nor keyboard attached to it), and have it
switch between "outputs" (i.e. detach from OpenBSD) to see if the USB
port gets disabled.  If everything is still normal, you can then do this
again with a keyboard and mouse connected to the KVM just to
double check, but you already know what will happen.  This should make
clear which device is misbehaving (I'm betting on the KVM).

If you keep a keyboard directly attached during this process, you can
still make the machine reboot cleanly, if needed.   Also, keeping track
of what is going on using something like:

  usbdevs -v > ~/usbdevs_*
  dmesg > ~/dmesg_*

(replacing * with something useful, obviously) might also be helpful.


> 2: I'm still running 7.5 for the moment.
> 
> 3: I did try various Searches for an answer.
> 
> 4: ...
> 
> sysctl: top level name grep in grep is invalid
> hw.machine=amd64
> hw.model=Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
> hw.ncpu=4
> hw.byteorder=1234
> hw.pagesize=4096
> hw.disknames=sd0:9816cda3ded1d839,cd0:,sd1:
> hw.diskcount=3
> hw.sensors.cpu0.temp0=37.00 degC
> hw.sensors.cpu0.frequency0=3800000000.00 Hz
> hw.sensors.cpu1.frequency0=3800000000.00 Hz
> hw.sensors.cpu2.frequency0=3800000000.00 Hz
> hw.sensors.cpu3.frequency0=3800000000.00 Hz
> hw.sensors.acpitz0.temp0=27.80 degC (zone temperature)
> hw.sensors.acpitz1.temp0=29.80 degC (zone temperature)
> hw.cpuspeed=3401
> hw.setperf=100
> hw.vendor=Dell Inc.
> hw.product=OptiPlex 7050
> hw.serialno=2J8HCP2
> hw.uuid=44454c4c-4a00-1038-8048-b2c04f435032
> hw.physmem=68559847424
> hw.usermem=68559704064
> hw.ncpufound=4
> hw.allowpowerdown=1
> hw.perfpolicy=auto
> hw.smt=0
> hw.ncpuonline=4
> hw.power=1
> hw.ucomnames=
> 

-- 
 

Reply via email to