Re: USB peripherals hang, nothing in messages
Thanks for the reply, Chris. I found interesting this intervention of Laurence because (as you know I'm on usb storage devices from an age and..) in front of an hang problem of the usb peripherals Laurence pointed out about the different performances on the usb stack can be a reasonable cause of the hanging. I was curious to gain technical confirmations about this possibility, to keep usb peripherals separated from storage devices, that time to time I did it but let say I havent it adopted like my standard yet. I can take also a fresh example. This night I was passing by an old Puppy Linux where in the end for an inappropriate 'autoadddevice' set to true in its xorg.conf all my usb peripherals hanged sometimes not repponding neither after a reboot. For who is working in this kind of fashion like mine usb separation (hub = physically and in memory addresses ) could be reasonably suggestable to have, question ( ? ) -Dan Chris Bennett : > On Fri, Mar 15, 2024 at 01:40:56PM +0100, Dan via misc wrote: >> >> Interesting.. >> >> Laurence Tratt via misc : >> >>> This sounds to me like it might be due to USB stack performance problems, >>> though you'll at least want to give `dmesg` output so that those who better >>> understand this have a chance of helping. >>> >>> FWIW, there seem to be notable differences in USB performance on nominally >>> similar hardware with OpenBSD. >> >> Do you suggest to phisically (hub) separate peripherals from >> eg. storage devices for who is working in this kind of fashion? >> >> -Dan >> > > I used a powered USB hub on a laptop that somehow solved a bunch of > connectivity problems to the laptop's USB3 port. > I needed a powered hub to run both the wifi dongle and a spinning USB > hard drive. No idea why it worked, but it did. NB: keep Orwell with you, we are fine.
Re: USB peripherals hang, nothing in messages
On Fri, Mar 15, 2024 at 01:40:56PM +0100, Dan via misc wrote: > > Interesting.. > > Laurence Tratt via misc : > > > This sounds to me like it might be due to USB stack performance problems, > > though you'll at least want to give `dmesg` output so that those who better > > understand this have a chance of helping. > > > > FWIW, there seem to be notable differences in USB performance on nominally > > similar hardware with OpenBSD. > > Do you suggest to phisically (hub) separate peripherals from > eg. storage devices for who is working in this kind of fashion? > > -Dan > I used a powered USB hub on a laptop that somehow solved a bunch of connectivity problems to the laptop's USB3 port. I needed a powered hub to run both the wifi dongle and a spinning USB hard drive. No idea why it worked, but it did. -- Regards, Chris Bennett "Who controls the past controls the future. Who controls the present controls the past." George Orwell - 1984
Re: USB peripherals hang, nothing in messages
Interesting.. Laurence Tratt via misc : > This sounds to me like it might be due to USB stack performance problems, > though you'll at least want to give `dmesg` output so that those who better > understand this have a chance of helping. > > FWIW, there seem to be notable differences in USB performance on nominally > similar hardware with OpenBSD. Do you suggest to phisically (hub) separate peripherals from eg. storage devices for who is working in this kind of fashion? -Dan
Re: USB peripherals hang, nothing in messages
Thanks, this sounds about what I experience. On Linux kernel it complains about some sort of "potential EMI interference" when auto disabling USB ports, and then it complains that it cannot reenable it because it cannot enumerate the device and assign it an address or something. I am curious how it's possible to debug this on OpenBSD. Is there a way to enable debug level verbosity on drivers? /var/log/messages is so bareboned, almost spartan I would dare to put forth. On Fri, Mar 15, 2024 at 5:11 PM Laurence Tratt via misc wrote: > > On Wed, Mar 13, 2024 at 05:12:29PM +0500, ofthecentury wrote: > > > My USB mouse and keyboard hang intermittently. > > > > Very weird things happen, i.e. my mouse's red LED > > light begins to flicker in a very weird fashion, or my > > keyboard stops responding and my sound output > > is suddenly muted by itself (I don't even touch sound). > > > > This was in the /var/log/messages regarding sound: > > wrapper-2.0: vfprintf %s NULL in "[xfce-mixer-plugin. > > c:374 xfce_mixer_plugin_set_property]: could not > > set sound-card to '%s', trying the default card instead" > > wrapper-2.0: vfprintf %s NULL in "%s: muted" > > > > Nothing else to show up in /var/log/messages. Is there > > a more detailed log? > > This sounds to me like it might be due to USB stack performance problems, > though you'll at least want to give `dmesg` output so that those who better > understand this have a chance of helping. > > FWIW, there seem to be notable differences in USB performance on nominally > similar hardware with OpenBSD. On an AMD 7900x w/MSI motherboard, I had > very few USB performance problems (though there were other non-USB issues). > On an Intel 13900k w/Asus motherboard I have frequent, significant, USB > performance problems. Every USB peripheral suffers from random disconnects, > particularly under load. This is most notable with USB sound and USB > webcam, which disconnect several times per hour, but the USB keyboard and > USB mouse are also sometimes affected (perhaps once a week, mostly the > mouse). > > I have absolutely no idea what the cause for this difference might be. The > CPU and motherboard differences might be significant or not, I don't know. > And it may, or may not, have any relation to the symptoms you're seeing. > > > Laurie >
Re: USB peripherals hang, nothing in messages
On Wed, Mar 13, 2024 at 05:12:29PM +0500, ofthecentury wrote: > My USB mouse and keyboard hang intermittently. > > Very weird things happen, i.e. my mouse's red LED > light begins to flicker in a very weird fashion, or my > keyboard stops responding and my sound output > is suddenly muted by itself (I don't even touch sound). > > This was in the /var/log/messages regarding sound: > wrapper-2.0: vfprintf %s NULL in "[xfce-mixer-plugin. > c:374 xfce_mixer_plugin_set_property]: could not > set sound-card to '%s', trying the default card instead" > wrapper-2.0: vfprintf %s NULL in "%s: muted" > > Nothing else to show up in /var/log/messages. Is there > a more detailed log? This sounds to me like it might be due to USB stack performance problems, though you'll at least want to give `dmesg` output so that those who better understand this have a chance of helping. FWIW, there seem to be notable differences in USB performance on nominally similar hardware with OpenBSD. On an AMD 7900x w/MSI motherboard, I had very few USB performance problems (though there were other non-USB issues). On an Intel 13900k w/Asus motherboard I have frequent, significant, USB performance problems. Every USB peripheral suffers from random disconnects, particularly under load. This is most notable with USB sound and USB webcam, which disconnect several times per hour, but the USB keyboard and USB mouse are also sometimes affected (perhaps once a week, mostly the mouse). I have absolutely no idea what the cause for this difference might be. The CPU and motherboard differences might be significant or not, I don't know. And it may, or may not, have any relation to the symptoms you're seeing. Laurie
Re: USB peripherals hang, nothing in messages
Messages like this are worse than useless for actually diagnosing the issue. Basically, we have no idea what hardware you are running on, or for that matter what software you are trying out. If there is a real issue, please learn how to use sendbug (https://man.openbsd.org/sendbug) or at least provide some actually relevant information besides log messages that you fail to interpret. On Wed, Mar 13, 2024 at 05:12:29PM +0500, ofthecentury wrote: > My USB mouse and keyboard hang intermittently. > > Very weird things happen, i.e. my mouse's red LED > light begins to flicker in a very weird fashion, or my > keyboard stops responding and my sound output > is suddenly muted by itself (I don't even touch sound). > > This was in the /var/log/messages regarding sound: > wrapper-2.0: vfprintf %s NULL in "[xfce-mixer-plugin. > c:374 xfce_mixer_plugin_set_property]: could not > set sound-card to '%s', trying the default card instead" > wrapper-2.0: vfprintf %s NULL in "%s: muted" > > Nothing else to show up in /var/log/messages. Is there > a more detailed log? > > How do I gather info about this from the system? > -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/ "Remember to set the evil bit on all malicious network traffic" delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.