Switching off WiFi when there is no LAN

Optimize your system for ultimate performance.

Moderators: khz, MattKingUSA

User avatar
bluebell
Established Member
Posts: 1137
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Switching off WiFi when there is no LAN

Postby bluebell » Tue Sep 03, 2019 1:10 pm

Switching off WiFi and/or blacklisting the WiFi kernel module can save some interrupts and lead to less xruns.

But in rooms where you don't have any LAN socket you might need a way to access your home network and the Internet.

No problem. A cheap WiFi router with OpenWRT can act as a bridge, being a WiFi client on your Internet router (or one of your WiFi access points) and providing a bridged LAN for your audio PC.

See https://openwrt.org/docs/guide-user/net ... figuration

Works fine for me. Even with ipv6.


Caveat: you can't access the bridge router from the bridged LAN since the router sends its answer always out to WiFi.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

crocket
Established Member
Posts: 60
Joined: Fri Mar 29, 2019 11:56 am

Re: Switching off WiFi when there is no LAN

Postby crocket » Thu Sep 05, 2019 11:41 pm

Can it withstand

Code: Select all

nice -n 19 stress-ng --iomix 8 --ionice-class idle --cpu 8 -t 5m
without xruns?

User avatar
magicalex
Established Member
Posts: 177
Joined: Sun Jan 24, 2016 6:34 pm
Contact:

Re: Switching off WiFi when there is no LAN

Postby magicalex » Fri Sep 06, 2019 12:46 pm

I've found that simply stopping network manager from scanning for networks by running

Code: Select all

sudo killall -STOP NetworkManager

eliminates most xruns while still being able to use wifi.
My name is Sandy and I sing songs: SandySingsSongs.com

User avatar
bluebell
Established Member
Posts: 1137
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Switching off WiFi when there is no LAN

Postby bluebell » Sat Sep 07, 2019 4:19 pm

crocket wrote:Can it withstand

Code: Select all

nice -n 19 stress-ng --iomix 8 --ionice-class idle --cpu 8 -t 5m
without xruns?


Sure.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

crocket
Established Member
Posts: 60
Joined: Fri Mar 29, 2019 11:56 am

Re: Switching off WiFi when there is no LAN

Postby crocket » Sat Sep 07, 2019 11:34 pm

If you want a compact setup, adding a bulky WiFi router to a machine is suboptimal.

I'd rather

  • choose a functional WiFi dongle that can be easily interrupted or uses DMA to bypass CPU
  • use either CONFIG_RT_SCHED_GROUP or CONFIG_PREEMPT_RT_FULL.


Return to “System Tuning and Configuration”

Who is online

Users browsing this forum: Google [Bot] and 4 guests