Interface audio usb - disconnecting

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: MattKingUSA, khz

Post Reply
Bluesman
Established Member
Posts: 5
Joined: Sun Jan 24, 2016 1:15 pm

Interface audio usb - disconnecting

Post by Bluesman »

Hello

This is my first post on this forum,so welcome everyone and sorry for my english :mrgreen: :)

I'm using Laptop Lenowo Z50-70 with Linux Mint 17.3 and i got Audio-USB interface - Behringer U-Phoria UMC202. I got problem. When i plug in Behringer, i can choose this sound card from sound settings menu, but after few second it disconnected. Somtimes it's still visable without sound, and sometimes disappears from settings (all the time the interface is powered from usb, lights are flashing etc.) The device is working on other machines even older then mine, so i think there is some problem between linux and my laptop.


Thank you in advance for your answer. I hope that I have been understood :wink:
asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: Interface audio usb - disconnecting

Post by asbak »

You didn't provide any detail on what kind of sound setup you have, so assuming you're using standard Mint and Pulseaudio, try ensuring you're using the USB2 ports, not the USB3 port.
Don't use any USB hubs, plug it directly into a USB2 port on the computer.
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
Bluesman
Established Member
Posts: 5
Joined: Sun Jan 24, 2016 1:15 pm

Re: Interface audio usb - disconnecting

Post by Bluesman »

Yes i plug it directly to computer via usb 2.0. The ports are ok for sure. Earlier i got windows on the same laptop and Behringer works well. But I love linux and it's only thing that i can't manage. I trying to find something in internet but there aren't many people who are musician, linux users and use the same staff as me. Thats why i join this forum. :)
glowrak guy
Established Member
Posts: 2325
Joined: Sat Jun 21, 2014 8:37 pm
Been thanked: 256 times

Re: Interface audio usb - disconnecting

Post by glowrak guy »

Try using synaptic to install qjackctl and a2jmidid.

In qjackctl Settings panel, set Periods/Buffer to 3

Use the > and ^ widgets by qjackctl Input Device to check and select the device.
Log out/in and retry.

And post some hardware and software repository details.
Instructions to easily add KX Studio repositories are here:

http://kxstudio.linuxaudio.org/Repositories

Or a2jmidid is also here: https://packages.debian.org/unstable/sound/
install with command sudo dpkg -i name-of.deb

Cheers
GuntherT
Established Member
Posts: 168
Joined: Sun Jun 07, 2015 2:15 am
Has thanked: 9 times
Been thanked: 28 times

Re: Interface audio usb - disconnecting

Post by GuntherT »

Installing a2jmidid will do nothing to correct the issues you are having since the UMC202 has no MIDI capabilities. It may be an issue with Pulseaudio. Like glowrak guy instructed, focus on getting Qjackctl setup properly whereby your device is selected and Pulseaudio is disabled upon Jack startup, which I believe is done by inserting "pasuspender -- " in front of whatever is listed in the Server Path (usually "jackd").
Bluesman
Established Member
Posts: 5
Joined: Sun Jan 24, 2016 1:15 pm

Re: Interface audio usb - disconnecting

Post by Bluesman »

Hmmm the problem is that when Behringer disconnected, it's not visable for jack too. On other computers with linux Behringer works well. Just plug and done. Only with mine it's not cooperate :(
asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: Interface audio usb - disconnecting

Post by asbak »

Time to reinstall :D
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Interface audio usb - disconnecting

Post by briandc »

Bluesman wrote:Hmmm the problem is that when Behringer disconnected, it's not visable for jack too. On other computers with linux Behringer works well. Just plug and done. Only with mine it's not cooperate :(
Did you install QjackCtl? If so, open it and go to the settings and tell us what audio in/out options are available.


brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
Bluesman
Established Member
Posts: 5
Joined: Sun Jan 24, 2016 1:15 pm

Re: Interface audio usb - disconnecting

Post by Bluesman »

Ok another words.

in QjackCtl in/out my Behringer is visable -but as i said- after few seconds when my card disconnecting QjackCtl didn't see her. I think that problem is in system not in Jack setup
gimmeapill
Established Member
Posts: 564
Joined: Thu Mar 12, 2015 8:41 am
Has thanked: 44 times
Been thanked: 8 times

Re: Interface audio usb - disconnecting

Post by gimmeapill »

Can you make a try with another USB2 cable?
When the disconnection occurs, is there any error logged in qjackctl (check the messages pane).
The last lines of dmesg could also be useful, if it simply disconnects you should see it there...
tnovelli
Established Member
Posts: 277
Joined: Wed Apr 20, 2011 4:52 pm

Re: Interface audio usb - disconnecting

Post by tnovelli »

I've found that a lot of USB audio problems are caused by cheap USB cables and flaky USB chipsets on some motherboards. Try a USB cable with a braided metal shield. If you have a desktop, you can add a USB card. They're pretty cheap.

BTW, computers have builtin USB hubs, typically for each pair of ports. "lsusb -t" will show you. Make sure your USB audio isn't sharing a hub with anything else, especially a wifi.
Bluesman
Established Member
Posts: 5
Joined: Sun Jan 24, 2016 1:15 pm

Re: Interface audio usb - disconnecting

Post by Bluesman »

The cables are good. As i said i use the same on other computes and everything works fine.

I don't know enything about USB hubs so this is what i get with no usb devices connected:

Code: Select all

lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
    |__ Port 4: Dev 3, If 0, Class=Vendor Specific Class, Driver=rtsx_usb, 480M
    |__ Port 6: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 6: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 7: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 7: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M
gimmeapill
Established Member
Posts: 564
Joined: Thu Mar 12, 2015 8:41 am
Has thanked: 44 times
Been thanked: 8 times

Re: Interface audio usb - disconnecting

Post by gimmeapill »

Not 100% sure how to interpret the output of lsusb -t as I don't see where is your device, but try to plug it into this port:

Code: Select all

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
It looks like the 2 others are either USB2 ("Driver=ehci*) or USB3 running at USB2 speed and quite busy with other devices (Driver=xhci_hcd/9p, 480M)

I can maybe tell more with the output of "lsub" and "cat /proc/interrupts" (before the device disconnects)
aicram
Established Member
Posts: 135
Joined: Wed Jan 28, 2009 2:24 am
Has thanked: 1 time

Re: Interface audio usb - disconnecting

Post by aicram »

Hello,

Do not know if my solution can help you, so here goes. My yamahaypg235 usb midi keyboard was disconnecting for weeks. In my case I use a firewire fca202 hooked up to a xenyx 1622xusb mixer. This setup works great for me.

Started out using cadence and catia. I could play it for awhile with some programs but then it would disconnect. Thought it was the cables and/or the ports. Changing cables and ports did not help. I then used qjackctl and that seemed to help somewhat. Disconnects took longer to happen, but still happened. During all of this time my cpu usage would go to 100% only when using my keyboard with these programs. Finally, I thought I would try patchage. Patchage is working beautifully. No disconnects ever. My cpu usage is low, too.

There probably is more to this than just patchage. Have been updating with the linuxmint 17.1 updater. I have always done that but the past four weeks were crazy with the updating, at least for sound and cpu usage. My jack setup was switching from jackd1 and jackd2 with certain updates. A kernel updated and my ethernet would not work. Had to work with grub and use a previous kernel. 3.13.0-32-lowlatency is working very well with everything on my system at this time. Then again another update muted alsamixer which I never had to touch. Again, I had to install jackd2, because jackd1 installed after that update.

Now, after booting up, I start cadence, next start alsa-loop-jack bridge, then start alsa midi if I am using my keyboard. I turn on my keyboard get it setup for pc at the keyboard. After all this, I bring up patchage and make the proper connections. Finally all is working like a charm.

Maybe none of this will help, however, hope you get it fixed soon.

Sincerely,

aicram
Konan13
Established Member
Posts: 3
Joined: Thu Feb 25, 2016 11:48 am

Re: Interface audio usb - disconnecting

Post by Konan13 »

Hello. Did anyone solved this problem? Cant solve it =/
lsusb

Code: Select all

konan@konan-pc:~$ lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 2232:1028 Silicon Motion WebCam SC-03FFL11939N
Bus 001 Device 004: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0
Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 1397:0504 BEHRINGER International GmbH 
Bus 003 Device 003: ID 09da:054f A4Tech Co., Ltd. 
Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
konan@konan-pc:~$ 
cat /proc/interrupts

Code: Select all

konan@konan-pc:~$ cat /proc/interrupts
           CPU0       CPU1       CPU2       CPU3       
  0:         19          0          0          0   IO-APIC   2-edge      timer
  1:          2         74        680         64   IO-APIC   1-edge      i8042
  8:          0          0          0          1   IO-APIC   8-edge      rtc0
  9:          1          0          3          8   IO-APIC   9-fasteoi   acpi
 12:         32         27        148          4   IO-APIC  12-edge      i8042
 16:        192       2508       9334      15367   IO-APIC  16-fasteoi   ehci_hcd:usb1
 17:         77         94      37079        112   IO-APIC  17-fasteoi   ath9k
 23:         27          2          4          0   IO-APIC  23-fasteoi   ehci_hcd:usb2
 25:         51       2334       8750      10889   PCI-MSI 327680-edge      xhci_hcd
 26:          0          0          0          0   PCI-MSI 1048576-edge      enp2s0
 27:       1239        349       6785      16720   PCI-MSI 512000-edge      0000:00:1f.2
 28:         24      42948         41          4   PCI-MSI 32768-edge      i915
 29:         12          9          1          3   PCI-MSI 524288-edge      radeon
 30:          3          0         12          0   PCI-MSI 360448-edge      mei_me
 31:         31       1044        722        553   PCI-MSI 442368-edge      snd_hda_intel
NMI:          8          8          7          8   Non-maskable interrupts
LOC:      91716      98910      96485      93695   Local timer interrupts
SPU:          0          0          0          0   Spurious interrupts
PMI:          8          8          7          8   Performance monitoring interrupts
IWI:          0          0          0          0   IRQ work interrupts
RTR:          2          0          0          0   APIC ICR read retries
RES:      23432      18402      21936      19812   Rescheduling interrupts
CAL:       1666       1079       1179       1446   Function call interrupts
TLB:       6591       6593       6257       6280   TLB shootdowns
TRM:          0          0          0          0   Thermal event interrupts
THR:          0          0          0          0   Threshold APIC interrupts
DFR:          0          0          0          0   Deferred Error APIC interrupts
MCE:          0          0          0          0   Machine check exceptions
MCP:          6          6          6          6   Machine check polls
ERR:          0
MIS:          0
PIN:          0          0          0          0   Posted-interrupt notification event
PIW:          0          0          0          0   Posted-interrupt wakeup event
konan@konan-pc:~$ 
Post Reply