Odd Distorted Audio Issue in Ubuntu Studio 23.04

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

Moderators: MattKingUSA, khz

Post Reply
G M Slater
Established Member
Posts: 52
Joined: Fri May 18, 2012 5:00 pm
Location: Boise ID USA
Contact:

Odd Distorted Audio Issue in Ubuntu Studio 23.04

Post by G M Slater »

I am running Ubuntu Studio v23.04 and am using a Focus Scarlett 2i2 unit as the sound card. Every time I reboot the computer the audio is extremely distorted. To get it back to normal I have to unplug the USB cable from the Scarlett, then plug it back in. I have swapped out USB cables, and the Scarlett is only a couple of months old. Does anyone know what would cause this weird behavior?

j_e_f_f_g
Established Member
Posts: 2032
Joined: Fri Aug 10, 2012 10:48 pm
Been thanked: 358 times

Re: Odd Distorted Audio Issue in Ubuntu Studio 23.04

Post by j_e_f_f_g »

Given the number of people recently reporting "distorted audio" specifically with Ubuntu Studio, I'm now wondering if Canonical did something with their audio stack. Try a live distro not based on ubunto to see if the problem disappears.

Author of BackupBand at https://sourceforge.net/projects/backupband/files/
My fans show their support by mentioning my name in their signature.

Robin Cherry
Established Member
Posts: 72
Joined: Wed Apr 15, 2020 1:18 am
Has thanked: 2 times
Been thanked: 15 times

Re: Odd Distorted Audio Issue in Ubuntu Studio 23.04

Post by Robin Cherry »

I have the same issue in Manjaro with the stock kernel. It's been ongoing for a year through multiple updates and showed the same behaviour in an avlinux live trial. I've never found a fix other than unplugging the interface. Mine does the same thing after turning off jack as well.

j_e_f_f_g
Established Member
Posts: 2032
Joined: Fri Aug 10, 2012 10:48 pm
Been thanked: 358 times

Re: Odd Distorted Audio Issue in Ubuntu Studio 23.04

Post by j_e_f_f_g »

Does it happen with all apps, or just apps that use pulseaudio?

In the apps that are affected, can you set them to use alsa directly? And if so, does the problem disappear when you do?

Author of BackupBand at https://sourceforge.net/projects/backupband/files/
My fans show their support by mentioning my name in their signature.

Robin Cherry
Established Member
Posts: 72
Joined: Wed Apr 15, 2020 1:18 am
Has thanked: 2 times
Been thanked: 15 times

Re: Odd Distorted Audio Issue in Ubuntu Studio 23.04

Post by Robin Cherry »

j_e_f_f_g wrote: Thu Apr 27, 2023 5:50 pm

Does it happen with all apps, or just apps that use pulseaudio?

In the apps that are affected, can you set them to use alsa directly? And if so, does the problem disappear when you do?

On my system it is present at bootup until I unplug the USB from the audio interface and plug it back in, and present after stopping jack until I do the same. My interface is a behringer 404hd. What would be an example of an audio app that doesn't use pulseaudio that wouldn't involve starting jack to troubleshoot?

I suspected that the person from the "digital noise in ubuntu" thread is suffering from the same issue but it isn't possible for them to unplug their interface so who knows.

j_e_f_f_g
Established Member
Posts: 2032
Joined: Fri Aug 10, 2012 10:48 pm
Been thanked: 358 times

Re: Odd Distorted Audio Issue in Ubuntu Studio 23.04

Post by j_e_f_f_g »

Robin Cherry wrote: Thu Apr 27, 2023 7:56 pm

an example of an audio app that doesn't use pulseaudio that wouldn't involve starting jack to troubleshoot?

ocenaudio allows you to select pulseaudio, jack, or alsa from its settings for audio system. So you can check all 3 with that app to see if the problem is with pulse or jack, or whether it's with alsa itself.

If it's alsa, the only way to fix that is to report it as a bug to the alsa dev list.

Author of BackupBand at https://sourceforge.net/projects/backupband/files/
My fans show their support by mentioning my name in their signature.

Robin Cherry
Established Member
Posts: 72
Joined: Wed Apr 15, 2020 1:18 am
Has thanked: 2 times
Been thanked: 15 times

Re: Odd Distorted Audio Issue in Ubuntu Studio 23.04

Post by Robin Cherry »

j_e_f_f_g wrote: Thu Apr 27, 2023 8:24 pm
Robin Cherry wrote: Thu Apr 27, 2023 7:56 pm

an example of an audio app that doesn't use pulseaudio that wouldn't involve starting jack to troubleshoot?

ocenaudio allows you to select pulseaudio, jack, or alsa from its settings for audio system. So you can check all 3 with that app to see if the problem is with pulse or jack, or whether it's with alsa itself.

If it's alsa, the only way to fix that is to report it as a bug to the alsa dev list.

Cool. I'm going to try this.

User avatar
nikgnomicradio
Established Member
Posts: 109
Joined: Wed Feb 07, 2018 9:31 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Odd Distorted Audio Issue in Ubuntu Studio 23.04

Post by nikgnomicradio »

j_e_f_f_g wrote: Wed Apr 26, 2023 8:35 pm

I'm now wondering if Canonical did something with their audio stack

Ubuntu Studio seems to have done something that is not beneficial for pro-audio users

https://ubuntustudio.org/2023/04/ubuntu-studio-23-04-released/ wrote:

we have switched to utilized PipeWire by default with the JACK and PulseAudio plugins. This means that, without configuration, all JACK and PulseAudio applications will simply work without much configuration.

While PipeWire is convenient and recommended for most users, we do not recommend it for professional or prosumer audio work at this time

"without configuration" or "without much configuration" ?

A user reported distortion issues with a Focusrite Scarlett to PipeWire 3 months ago - Distorted audio from USB audio device
that was blamed on either a kernel bug or USB device misbehaving
so user reported issue setting the probe-rate in PipeWire to ALSA developers - bug 216976 - Scarlett Solo 3rd gen plays/records distorted audio

I would suggest UbuntuStudio users with audio distortion issues try using a Live ISO of AVLinux to check if audio is distorted in PulseAudio or JACK

Robin Cherry
Established Member
Posts: 72
Joined: Wed Apr 15, 2020 1:18 am
Has thanked: 2 times
Been thanked: 15 times

Re: Odd Distorted Audio Issue in Ubuntu Studio 23.04

Post by Robin Cherry »

I went to troubleshoot my own situation and realised that the boot up issue has resolved itself but the issue when stopping and closing jack has not. Periodic updates must have fixed it. For anyone who wants to compare software versions my system is running the following. Linux 6.2.12, pulseaudio 16.1, alsa 1.2.8, jack2 1.9.22.

Post Reply