Switching off WiFi when there is no LAN

Optimize your system for ultimate performance.

Moderators: khz, MattKingUSA

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

Switching off WiFi when there is no LAN

Post by bluebell »

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: 68
Joined: Fri Mar 29, 2019 11:56 am

Re: Switching off WiFi when there is no LAN

Post by crocket »

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: 179
Joined: Sun Jan 24, 2016 6:34 pm
Contact:

Re: Switching off WiFi when there is no LAN

Post by magicalex »

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: 1418
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Switching off WiFi when there is no LAN

Post by bluebell »

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: 68
Joined: Fri Mar 29, 2019 11:56 am

Re: Switching off WiFi when there is no LAN

Post by crocket »

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.

Post Reply