Page 1 of 1

ubuntu studio 21.04 xruns with upgrade solved

Posted: Wed Jun 16, 2021 11:55 am
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.

Re: ubuntu studio 21.04 xruns with upgrade solved

Posted: Wed Jun 16, 2021 3:12 pm
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.

Re: ubuntu studio 21.04 xruns with upgrade solved

Posted: Wed Jun 16, 2021 11:15 pm
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.