• USB DAC drop-outs [ Solved : gpu throttling responsible ]


    hi,

    I experience some random glitches/drop-outs with my usb dac. I cannot see something relevant in dmesg when it happen.
    In fact, there’s nothing about deconnexions.

    if I let a : dmesg | grep usb I’ve got this :

    [    0.692800] usbcore: registered new interface driver usbfs
    [    0.692806] usbcore: registered new interface driver hub
    [    0.692822] usbcore: registered new device driver usb
    [    1.013513] usb 1-3: new full-speed USB device number 2 using xhci_hcd
    [    1.148988] usbcore: registered new interface driver usbhid
    [    1.148989] usbhid: USB HID core driver
    [    1.149287] input: Razer Razer Imperator as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:1532:002F.0001/input/input0
    [    1.149312] hid-generic 0003:1532:002F.0001: input,hidraw0: USB HID v1.11 Mouse [Razer Razer Imperator] on usb-0000:00:14.0-3/input0
    [    1.149420] input: Razer Razer Imperator as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:1532:002F.0002/input/input1
    [    1.203451] hid-generic 0003:1532:002F.0002: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer Imperator] on usb-0000:00:14.0-3/input1
    [    1.316857] usb 1-4: new low-speed USB device number 3 using xhci_hcd
    [    1.533367] input: USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:04D9:1818.0003/input/input2
    [    1.590434] hid-generic 0003:04D9:1818.0003: input,hidraw2: USB HID v1.10 Keyboard [USB Keyboard] on usb-0000:00:14.0-4/input0
    [    1.613739] input: USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.1/0003:04D9:1818.0004/input/input3
    [    1.670411] hid-generic 0003:04D9:1818.0004: input,hidraw3: USB HID v1.10 Device [USB Keyboard] on usb-0000:00:14.0-4/input1
    [    1.783344] usb 1-5: new high-speed USB device number 4 using xhci_hcd
    [    2.032343] input: Audio-gd Audio-gd as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.2/0003:040D:3410.0005/input/input4
    [    2.086966] hid-generic 0003:040D:3410.0005: input,hidraw4: USB HID v1.00 Device [Audio-gd Audio-gd] on usb-0000:00:14.0-5/input2
    [    2.597518] usbcore: registered new interface driver snd-usb-audio
    [   42.188891] usb 1-5: USB disconnect, device number 4
    [  937.770211] usb 1-5: new high-speed USB device number 5 using xhci_hcd
    [  938.137075] input: Audio-gd Audio-gd as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.2/0003:040D:3410.0006/input/input18
    [  938.193780] hid-generic 0003:040D:3410.0006: input,hidraw4: USB HID v1.00 Device [Audio-gd Audio-gd] on usb-0000:00:14.0-5/input2
    
    

    no errors finally. But this happen anyway.

    Does it concern usb power ? usb alimentation ?

    I see that “usb-devices | grep ‘Product=|MxPwr’” show me that the max power is very low ?!

    S:  Product=Audio-gd
    C:  #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=50mA
    

    only 50ma. Is it correct ? I don’t think so.

    I also change the firmware of my DAC, no results…

    if anyone got an answer ?

  • @alexandre You’re not alone. I have a Schiit DAC that drops from time to time via USB. This isn’t Arch specific - it happened in Debian and Fedora. Using MPD + client helped greatly though. Another option is to remove PulseAudio and just run ALSA. I’ve not tried this though. I do have a way to kill PA without unistalling it. I’m away from my home computer but can give more details later.

    journalctl
    

    May return PA errors?

    Your question regarding USB power is interesting. Hopefully others will have some suggestions. I’ll probe more into my own USB power. I had the same dropouts on both my desktop and laptop though.

  • yes @triode13 I’ve already did the pulseaudio disabling method. By masking the unit on systemd.
    I made a config using only alsa and jack. Even with jack it happens.
    In fact I think I did the same things.

    my journalctl doesn’t output something relevant. But Dmesg output nothing now when the glitch happen ?!

    I suspect the firmware of my dac, I reverted to the original firmware. I also suspect the motherboard. I will mail the motherboard firm.

    It’s weird, because I played music for hours and nothing happened ! I just played with power consumption option in bios ( voltage optimisation for example ).

  • finally it seems to be the “momentary frequency” who is responsible ?!

    I checked the stream on my card. I have this. This is the default when using Alsa.

    Audio-gd Audio-gd at usb-0000:00:14.0-6, high speed : USB Audio
    
    Playback:
      Status: Running
        Interface = 1
        Altset = 1
        Packet Size = 144
        Momentary freq = 48000 Hz (0x6.0000)
        Feedback Format = 16.16
      Interface 1
    

    I don’t know why but one time the “Momentary freq” was odd, like @48014hz or whatever that’s wrong.

    yes I checked by pressing F5 to reload the file and sometimes the frequency is at 48031hz.

  • [[email protected] ~]$ journalctl
    -- Logs begin at Sat 2017-10-21 21:46:08 CDT, end at Sun 2017-10-29 17:13:16 CDT
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: F
    lines 1-23...skipping...
    -- Logs begin at Sat 2017-10-21 21:46:08 CDT, end at Sun 2017-10-29 17:13:16 CDT. --
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    Oct 21 21:46:08 z97-hd3 pulseaudio[974]: E: [alsa-sink-USB Audio] alsa-sink.c: Failed to set hardware parameters: Input/output error
    lines 1-52
    
    

    The above is from my previous USB dropout. I’ve just now uninstalled pulseaudio-alsa to eliminate PA hooking. We’ll see if i get any more dropouts.

    lsusb -v
    

    Returns 100mA for my USB power max. Maybe this is just rough the max current demands of the USB device and not total capable power?

    I’ve not tried hooking up my Schiit DAC directly to my computer since removing pulseaudio-alsa, but I couldn’t get Linux to reliably recognize the DAC without a USB scrubber inserted before. Never had any issues with Windows. I have a Doodlebug in between the computer and DAC to clean up the 5V USB power.

    Again, running MPD + client has made dropouts much less frequent.

    What music player are you using? Have you tried using a different one?

  • hi @triode13

    in fact I can reproduce the drop outs when I launch a browser for example.

    I use mpd + cantata… Sometimes clementine.

    mhh I found that : https://bbs.archlinux.org/viewtopic.php?pid=1460933#p1460933

    because I saw an entrie with DMESG related to that.

    edit : it change nothing. For me it’s the motherboard the cause. Hardware stability problem.

  • @triode13

    can you send me this ?

    dmesg | grep -i "error\|warn\|fail"
    

    I want to see if there’s something about this https://www.kernel.org/doc/Documentation/i2c/busses/i2c-i801

  • Here ya go. Gigabyte Z97-HD3 with i3-4370.

    [[email protected] ~]$ dmesg | grep -i "error\|warn\|fail"
    [    0.618815] RAS: Correctable Errors collector initialized.
    [    2.020548] ACPI Warning: SystemIO range 0x0000000000001828-0x000000000000182F conflicts with OpRegion 0x0000000000001800-0x000000000000187F (\PMIO) (20170531/utaddress-247)
    [    2.020556] ACPI Warning: SystemIO range 0x0000000000001C40-0x0000000000001C4F conflicts with OpRegion 0x0000000000001C00-0x0000000000001FFF (\GPR) (20170531/utaddress-247)
    [    2.020559] ACPI Warning: SystemIO range 0x0000000000001C30-0x0000000000001C3F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C3F (\GPRL) (20170531/utaddress-247)
    [    2.020560] ACPI Warning: SystemIO range 0x0000000000001C30-0x0000000000001C3F conflicts with OpRegion 0x0000000000001C00-0x0000000000001FFF (\GPR) (20170531/utaddress-247)
    [    2.020562] ACPI Warning: SystemIO range 0x0000000000001C00-0x0000000000001C2F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C3F (\GPRL) (20170531/utaddress-247)
    [    2.020563] ACPI Warning: SystemIO range 0x0000000000001C00-0x0000000000001C2F conflicts with OpRegion 0x0000000000001C00-0x0000000000001FFF (\GPR) (20170531/utaddress-247)
    
    
  • @triode13

    It seems that I’m affected with this problem :

    Gigabyte Motherboard with Realtek 8111/8168/8411
    With motherboards such as the Gigabyte GA-990FXA-UD3, booting with IOMMU off (which can be the default) will cause the network interface to be unreliable, often failing to connect or connecting but allowing no throughput. This will apply not only to the onboard NIC, but any other pci-NIC you put in the box because the IOMMU setting affects the entire network interface on the board. Enabling IOMMU and booting with the install media will throw AMD I-10/xhci page faults for a second, but then boot normally, resulting in a fully functional onboard NIC (even with the r8169 module).

    When configuring the boot process for your installation, add iommu=soft as a kernel parameter to eliminate the error messages on boot and restore USB3.0 functionality.

    not you apparently.

    Now I’ll continue to test.

  • everyone,

    What I did to resolve my issue. It happened after a bios upgrade, I remind !

    • disabling the usb auto_suspend

    • putting this line for the driver i2c-i801 in /etc/modprobe.d : options i2c-i801 disable_features=0x10

    • adding the option iommu=soft in my kernel parameters. Because I have this chipset on my gigabyte ( Realtek 8111/8168/8411 )

    • activate the APM in the bios ( power management ), and installing this driver r8169aspm-dkms.

    • finally I checked errors related to NVRM ( nvidia gpu card ). I search on the nvidia forums and I removed the lines to set powermizer to max performance. My gpu is a gtx 750 ti.

    my system boot now normally without delay.

    In many stressful situations : no more bad behaviours with my usb DAC.

    :musical_note: is again my best friend ! wouhouuuuuuuuuuuuuu

    I will anyway write to the manufacturer of the motherboard.

    From :fleur-de-lis: with sympathy

  • it happened again. I just disabled the APM to test.

    in fact the problem is reproducible when powermizer ( nvidia feature ) switch states of frequencies !

    I simply put this line, and now it works : Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefaultAC=0x1"

  • @alexandre Glad to hear you got it sorted. I think I got my issues sorted as well. Unlike your problem, mine was a stupidly simple fix. I have an Emotive Audio power strip that was daisy chained with another power strip. I decided to plug my DAC directly into the EA power strip, closest to the wall outlet, and I haven’t had a dropout since, in over a week.

Posts 12Views 259
Log in to reply