Re: Disconnect/connect usb ports

2016-02-18 Thread Swift Griggs

On Thu, 18 Feb 2016, Jose Luis Rodriguez Garcia wrote:
The problem is very random. As you can suppose. Neither my pc ( a 
nettop) or my lapto have ground.


I've had similar problems to the ones you and Felix describe. I was using 
a USB audio device with a fancy D/A converter. It'd get reset or stutter 
ever time I'd use my KVM. My KVM had a USB port that would get swapped 
between whatever systems it was currently connected to. That was causing 
some kind of surge or inrush that was causing the whole bus to reset. I 
also noticed that wasn't the only thing that would do it. Just about any 
power or USB related event would cause bus-resets.


The problems were specific to that system and to NetBSD running on it. It 
was using an AMD USB chip, too. I've had more problems from those versus 
Intel. Until I swapped out the system about four months ago, the only way 
I could use that little Brown-Burr USB audio device was to put it on a USB 
hub with it's own discrete power supply. I got even more paranoid and put 
the power adapter on a battery backed up line conditioner, too. I got some 
nice recordings after that.


Thanks,
  Swift




Re: Disconnect/connect usb ports

2016-02-18 Thread Jose Luis Rodriguez Garcia
On Wed, Feb 17, 2016 at 9:51 AM, Felix Deichmann  wrote:
> 2016-02-16 23:32 GMT+01:00 Jose Luis Rodriguez Garcia :
>> Both disconnect at same time, and usually connect at few seconds at
>> same time (when they don't connect I have to reboot the pc).
>
> I had this with a USB frame grabber under Windows with a new PC, you
> could hear the disconnect and connect sounds each time (and recordings
> were always borked). Finally hunted it down to the exact moment when a
> fridge (!) with its compressor nearby turned on and off. USB together
> with modern PSUs seems very susceptible, google it.
> This is heavily dependent on your computer's PSU, the case, good
> grounding of the mainboard, and if it's related to a mains
> interference like above, there are special filters for such equipment
> (maybe the already present filter inside is broken).
> Other expensive solutions, if nothing else helps, are an online UPS
> (Uninterruptible Power Supply) for your PC or a different PSU
> reputedly...

Thank you Felix
I will try as you said.

I will use the the power supply of a laptop, and I will test it for
serveral days/weeks. The problem is very random.
As you can suppose. Neither my pc ( a nettop) or my lapto have ground.


Re: Disconnect/connect usb ports

2016-02-17 Thread Felix Deichmann
2016-02-16 23:32 GMT+01:00 Jose Luis Rodriguez Garcia :
> Both disconnect at same time, and usually connect at few seconds at
> same time (when they don't connect I have to reboot the pc).

I had this with a USB frame grabber under Windows with a new PC, you
could hear the disconnect and connect sounds each time (and recordings
were always borked). Finally hunted it down to the exact moment when a
fridge (!) with its compressor nearby turned on and off. USB together
with modern PSUs seems very susceptible, google it.
This is heavily dependent on your computer's PSU, the case, good
grounding of the mainboard, and if it's related to a mains
interference like above, there are special filters for such equipment
(maybe the already present filter inside is broken).
Other expensive solutions, if nothing else helps, are an online UPS
(Uninterruptible Power Supply) for your PC or a different PSU
reputedly...

Felix


Disconnect/connect usb ports

2016-02-16 Thread Jose Luis Rodriguez Garcia
Several times per day I receive disconnect and connect messages from
usb devices: mouse and keyboard (it is ps2 keyboard attached to a
usb/ps conversor).

Both disconnect at same time, and usually connect at few seconds at
same time (when they don't connect I have to reboot the pc).

This NetBSD 7.0 amd64 on a Pineview PC.

Any idea?

Feb 16 22:10:51 pc2 /netbsd: wskbd1: disconnecting from wsdisplay0
Feb 16 22:10:51 pc2 /netbsd: wskbd1: detached
Feb 16 22:10:51 pc2 /netbsd: ukbd0: detached
Feb 16 22:10:51 pc2 /netbsd: wsmouse0: detached
Feb 16 22:10:51 pc2 /netbsd: ums0: detached
Feb 16 22:10:51 pc2 /netbsd: uhid0: detached
Feb 16 22:10:51 pc2 /netbsd: uhidev0: detached
Feb 16 22:10:51 pc2 /netbsd: uhidev0: at uhub1 port 1 (addr 2) disconnected
Feb 16 22:10:51 pc2 /netbsd: ehci0: handing over low speed device on
port 1 to uhci0
Feb 16 22:10:53 pc2 /netbsd: uhidev0 at uhub1 port 1 configuration 1 interface 0
Feb 16 22:10:53 pc2 /netbsd: uhidev0: vendor 0x1bcf USB Optical Mouse,
rev 2.00/0.61, addr 2, iclass 3/1
Feb 16 22:10:53 pc2 /netbsd: uhidev0: 3 report ids
Feb 16 22:10:53 pc2 /netbsd: ukbd0 at uhidev0 reportid 1: 8 modifier
keys, 6 key codes
Feb 16 22:10:54 pc2 /netbsd: wskbd1 at ukbd0 mux 1
Feb 16 22:10:54 pc2 /netbsd: wskbd1: connecting to wsdisplay0
Feb 16 22:10:54 pc2 /netbsd: ums0 at uhidev0 reportid 2: 5 buttons and Z dir
Feb 16 22:10:54 pc2 /netbsd: wsmouse0 at ums0 mux 0
Feb 16 22:10:54 pc2 /netbsd: uhid0 at uhidev0 reportid 3: input=2,
output=0, feature=0