Wifi bug with usb wifi and disabled buitt in wifi (rpi)

hello, i have a usb wifi card which works fine. problem is when i disable my built in wifi in
/boot/userconfig.txt with dtoverlay=disable-wifi volumio os interface sees wifi as disabled, you have to put in cable and enable it, then usb wifi works until next reboot.

This is reproduceable.

no one? how do i disable built in wifi on my rpi5 then?

In Network Settings

on the Raspberry Pi 5, the string to add to userconfig.txt for disabling the onboard WiFi module is the following one:

dtoverlay=disable-wifi-pi5

source:

that will indeed disable rpi5 wifi, but after reboot there will no wifi at all until you actively enable wifi again like on @SimonE screenshot, THUS you cant disable built in wifi if you use volumio headless and want to reboot from time to time… this is a bug.
What I want is my usb wifi to be the only active wifi.

  1. keep WiFi active on the network settings page
  2. add the string on userconfig.txt, to disable onboard WiFi
  3. connect your usb dongle
  4. reboot

thanks for replying but that wont work. the wifi will automaticly disable If I disable built in wifi on userconfig.

If I plug in a cable and enable WIFI in the settings page, it will work until next reboot.

that’s strange, could you please try with a factory reset?

the install is just a couple of weeks old, an I havent changed anything except installing spotify connect plugin and built my libary. but ok…

factory reset did not change anything, issue remains

i can also reproduce this on a second rpi5

so not possible?

any updates on this? it cant be just me?

if i do systemctl start wireless after boot it works. so something is weird here

[sudo] password for volumio:
bash-5.0# systemctl status wireless
● wireless.service - Wireless Services
Loaded: loaded (/lib/systemd/system/wireless.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2024-09-25 09:13:28 CEST; 2min 8s ago
Process: 762 ExecStart=/volumio/app/plugins/system_controller/network/wireless.js start (code=exited, status=0/SUCCESS

Sep 25 09:13:27 volumio5 systemd[1]: Starting Wireless Services…
Sep 25 09:13:28 volumio5 wireless.js[762]: WIRELESS: No wireless interface, exiting
Sep 25 09:13:28 volumio5 systemd[1]: wireless.service: Succeeded.
Sep 25 09:13:28 volumio5 systemd[1]: Started Wireless Services.
bash-5.0#

thats is after boot untouched if i do systemctl start wireless it all works, guess this run before wlan0 is ready?

edit: i added ```
ExecStartPre=/bin/sleep 30

in wireless.service just to test and then it worked.
so this is indeed something that needs to be fixed!

see this @Darmur

@volumio @DED could you please have a look?

I tried with this now:

[Unit]
Description=Wireless Services
After=network.target
Wants=network-online.target
Before=volumio.service

and it worked, i guess this is a better solution

Wait, it is not required to disable anything.

Volumio will prioritize connection via USB dongle over the integrated one, if found.

Will have to check if that still works, will come back to you

im sure it does but rasperry pi wifi will still draw power and interface for no reason

If it doesn’t transmit nor receive, then it’s drawing a neglectable amount of power IMHO