ubuntu studio 21.04 xruns with upgrade solved

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

Moderators: MattKingUSA, khz

Post Reply
jbf
Posts: 1
Joined: Wed Jun 16, 2021 11:32 am
Been thanked: 1 time

ubuntu studio 21.04 xruns with upgrade solved

Post by jbf »

New here but after a week of struggle I have restored 0 xruns as I had in 20.10.

the solution:
in
/etc/NetworkManager/conf.d/fefault-wifi-powersave-on.conf
change
wifi.piwersave = 3
to 2.

Bonus fact: round trip latency on usb interfaces has some extra control. which gives 8 ms lower latency now for me with 64 sample buffer (3 master 2 usb). which is trouble free (ryzen 4500u.) 14.5 ms vs 22.5.

As I use the alc245 for output and usb for input I get 9.25ms rtl. Very pleased.
User avatar
sysrqer
Established Member
Posts: 2516
Joined: Thu Nov 14, 2013 11:47 pm
Has thanked: 319 times
Been thanked: 147 times
Contact:

Re: ubuntu studio 21.04 xruns with upgrade solved

Post by sysrqer »

In case anyone is copying and pasting the correct files are:

/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
change
wifi.powersave = 3
to 2.
User avatar
sunrat
Established Member
Posts: 907
Joined: Wed Jul 22, 2020 2:08 pm
Has thanked: 151 times
Been thanked: 238 times

Re: ubuntu studio 21.04 xruns with upgrade solved

Post by sunrat »

It can be advantageous to disable networking altogether when doing heavy duty audio work. I don't have Network Manager installed, just set the config in /etc/network/interfaces and can kill it when needed with ifdown ${whatever interface name} (here it's enp4s0).

Code: Select all

ifdown enp4s0
Or with ip command:

Code: Select all

ip link set enp4s0 down
You can see network interface state with

Code: Select all

ip a
I guess OP has a laptop so it has wifi on by default but still worth killing. I prefer a desktop with only ethernet for audio work. It's worth using nmcli if you use Network Manager as the graphical NM has extra overhead as well.
Post Reply