I Need Advice on Setting Up Audio Interfaces for Linux

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

Post Reply
komyash
Posts: 1
Joined: Fri Sep 20, 2024 4:44 am

I Need Advice on Setting Up Audio Interfaces for Linux

Post by komyash »

Hello there,

I am relatively new to the world of music production on Linux; and I am looking for some guidance on setting up audio interfaces. I have been experimenting with various DAWs; including Ardour and Reaper; and I am excited about the potential of using Linux for my music projects. Although; I am facing a few challenges regarding hardware compatibility and configuration.

I am particularly interested in knowing which audio interfaces work seamlessly with Linux. I have read that some brands have better support than others; but I would love to hear from your personal experiences. Are there specific models you have had success with? Additionally; if there are any particular drivers or settings that you recommend for optimal performance;

Another aspect I am curious about is the latency issues I have been encountering. I have noticed some lag while recording and monitoring; which can be quite frustrating. Are there any tips or best practices you can share for minimizing latency in Linux audio setups?

Also, I have gone through this post; https://linuxmusicians.com/viewtopic.php?ccsp=17472 which definitely helped me out a lot.

Lastly; I am also interested in any general advice on getting started with music production on Linux. Whether it is about software; plugins; or even tutorials; I am open to all recommendations.

Thank you in advance for your help and assistance.

User avatar
Babarosa
Established Member
Posts: 61
Joined: Sun Feb 23, 2014 10:16 pm
Has thanked: 7 times
Been thanked: 21 times

Re: I Need Advice on Setting Up Audio Interfaces for Linux

Post by Babarosa »

Hello to the linux music world!

I repeat myself :-)

@ Interfaces:
The MOTU M2, M4, M6 models (€ 240 - 500) as well as the ESI Maya22 USB (€ 40) work perfectly fine with Linux systems.

@ Configuring Linux for audio:
http://tedfelix.com/linux/linux-midi.html
https://github.com/chmaha/DebianProAudio
https://interfacinglinux.com/2023/11/14 ... debian-12/
https://jackaudio.org/faq/linux_rt_config.html

Debian 12 & Devuan 5 - MOTU M4, ESI Maya22 USB - Rosegarden, Reaper

krosancolossus
Established Member
Posts: 14
Joined: Thu Aug 15, 2024 9:52 pm
Has thanked: 8 times
Been thanked: 1 time

Re: I Need Advice on Setting Up Audio Interfaces for Linux

Post by krosancolossus »

Hello and welcome.

I am happy to report that my Presonus 1810c is working perfectly with Pipewire and Ubuntu Studio 24.04. My Nektar keyboards all work perfectly with Linux too, they come recommended

Ubuntu Studio 24.04, Presonus 1810c, Nektar LX49
Laney addict
https://buriedsleeper.bandcamp.com/
https://bough06.bandcamp.com/

GuntherT
Established Member
Posts: 201
Joined: Sun Jun 07, 2015 2:15 am
Has thanked: 14 times
Been thanked: 37 times

Re: I Need Advice on Setting Up Audio Interfaces for Linux

Post by GuntherT »

Most any USB Class Compliant audio device can get sound in and out of your OS, but if the hardware requires special control software to access some of its settings or features, that software rarely functions on Linux...with a few exceptions. There is control software that is accessed via a web browser for some Behringer and MOTU devices, and Focusrite Scarlett and Clarett devices have a native control software application written by an individual on this forum that is polished and feature-complete https://github.com/geoffreybennett/alsa-scarlett-gui.

Personally, I prefer audio interfaces that require no software to ensure they are as future-proof as possible. Some examples of these types of interfaces are the UMC204HD, UMC404HD, and UMC1820 by Behringer, but there are many others. I have owned a UMC1820 for 6+ years that I use as the main sound card on my desktop machine, and it is operating as well today as the day I bought it. I also have a Tascam DR-40X that I mostly use as a field recorder, but it also functions perfectly well as a 2-in/2-out USB audio interface.

In my experience, the most significant audio configuration steps for low-latency performance are: 1) setting up realtime scheduling https://jackaudio.org/faq/linux_rt_config.html, 2) adding "threadirqs" to the kernel boot parameters line in GRUB https://wiki.linuxaudio.org/wiki/system ... the_kernel, and 3) installing the rtirq script and configuring it to prioritize your sound card https://www.rncbc.org/drupal/node/2638. Whether or not I see notable improvements disabling networking or using the performance governor seems to depend on the machine. The three steps I most recommend only need to be completed once and will persist across reboots.

Disabling networking is typically easy to do via the network settings GUI in most distributions, and often worth doing in my opinion, but that can simply be toggled on and off as needed. Adjusting the frequency scaling governor to "performance" was a notable improvement on my Raspberry Pi 5 during some tests, but on other modern machines I have not seen much difference in the number of xruns produced whether it was set to "performance" or "ondemand". I have noticed no difference whatsoever with some longtime standard recommendations, such as adjusting the level of swappiness. This was probably useful 15-20 years ago, but I do not think it is relevant today. Linux OSes had been using tickless timers for over a decade before the defunct recommendation of setting the kernel frequency to 1000Hz was finally dropped as standard advice.

A step I find to be crucial that seems often overlooked in forum threads and setup guides is configuring the rtirq script to prioritize your particular sound card. By default, it prioritizes a computer's internal sound card over a USB device, so merely installing it will not provide the best results if you are using a USB audio interface. The simplest way to configure this is to follow the steps below. Using the name "snd-usb" has not worked properly for me in a couple situations, but "usb" has always worked, so I consider it a better default name when using a USB audio interface. Another name I have used in place of "snd-usb" is "xhci_hcd", but it takes a bit of investigation to understand if using "usb" has any drawbacks and whether or not another name provides any benefits. The commands "lsusb -t" and "cat /proc/interrupts" are good places to look for potential naming options, and "sudo systemctl status rtirq" can provide some insight on whether or not a particular name works after it is saved and the script is restarted. Keep in mind, this configuration is useless if "threadirqs" is not added to the kernel's boot parameters.

Open a terminal and type:

Code: Select all

sudo nano /etc/default/rtirq

Change this line:

Code: Select all

RTIRQ_NAME_LIST="snd snd-usb i8042"

To look like this:

Code: Select all

RTIRQ_NAME_LIST="usb"

Restart the rtirq script:

Code: Select all

sudo systemctl restart rtirq
User avatar
GB71
Established Member
Posts: 12
Joined: Sun Apr 25, 2021 8:36 pm

Re: I Need Advice on Setting Up Audio Interfaces for Linux

Post by GB71 »

The Solid State Logic SSL 2+ works flawlessly under AV Linux. I've been using it for a couple of years now.

asbak
Established Member
Posts: 972
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 89 times
Been thanked: 87 times

Re: I Need Advice on Setting Up Audio Interfaces for Linux

Post by asbak »

komyash wrote: Wed Sep 25, 2024 7:54 am

I am particularly interested in knowing which audio interfaces work seamlessly with Linux. I have read that some brands have better support than others; but I would love to hear from your personal experiences. Are there specific models you have had success with? Additionally; if there are any particular drivers or settings that you recommend for optimal performance;

Another aspect I am curious about is the latency issues I have been encountering. I have noticed some lag while recording and monitoring; which can be quite frustrating. Are there any tips or best practices you can share for minimizing latency in Linux audio setups?

Many of the older Edirol soundcards work great, some of the Cakewalk ones as well.
Class compliant soundcards generally work but read up on which ones are known to work well.
Old Emu PCI, PCI Express soundcards generally work but better avoid the 1820 and similar because they suffer from rotten capacitor issues.
Loads of audio cards work fine, search for the relevant threads here and look at the ALSA compatibility matrix to see which models are known to work.

If you want to minimise latency and run a sizeable workload on it then ideally you need a fast and modern CPU.
If you're using a USB soundcard you better hope that you have a nice USB chipset on-board and that there aren't many other USB devices fighting for resources with the soundcard.

Your Linux distro is not configured to do audio well out of the box. To improve your luck with low-latency operation requires making many, many mods.

Some audio guides cover some of these mods somewhat accurately, many guides are kind 1/2 complete or out of date or not very accurate. Some soundcards are also particular about what settings work better with them.

Then throw in the complexities of deciding how to set up the audio system. Do you want to use ALSA only, use ALSA + Jack, use ALSA + Pipewire, use ALSA + Jack + Pulseaudio etc etc etc. Everybody's situation is different and the situation dictates some of the solutions required to get the best performance.

If you're starting out you'll get better results faster by using a distro that's already been pre-configured for audio use. Otherwise you're going to be spending a lot of your free time trying to squeeze better performance out of your system instead of making beats.

User avatar
Linuxmusician01
Established Member
Posts: 1632
Joined: Mon Feb 23, 2015 2:38 pm
Location: Holland (Europe)
Has thanked: 853 times
Been thanked: 161 times

Re: I Need Advice on Setting Up Audio Interfaces for Linux

Post by Linuxmusician01 »

GuntherT wrote: Thu Sep 26, 2024 5:18 pm

[...]
Personally, I prefer audio interfaces that require no software to ensure they are as future-proof as possible. Some examples of these types of interfaces are the UMC204HD, UMC404HD, and UMC1820 by Behringer [...]

Second that. I've got a 404.

Post Reply