Documentsdisabling-wi-fi-and-bluetooth-on-raspberry-pi

Disabling Wi-Fi and Bluetooth on Raspberry Pi

Add a few dtoverlay lines to config.txt and the onboard Wi-Fi and Bluetooth stay off.

Raspberry Pi boards have built-in Wi-Fi and Bluetooth modules that start automatically at boot. If your project does not need them, you can disable both at the firmware level by adding dtoverlay entries to /boot/firmware/config.txt.

Only do this if the player is connected by Ethernet, as turning off Wi-Fi removes wireless connectivity.

Manual steps

  1. Open a terminal over SSH, or connect a monitor and keyboard to the device.

  2. Open /boot/firmware/config.txt and add the entries below.

    dtoverlay=disable-wifi        # Disables the onboard WiFi interface at the firmware level
    dtoverlay=disable-bt          # Disables onboard Bluetooth to prevent kernel from initializing it
    dtoverlay=disable-wifi-pi5    # Disable WiFi for Pi 5
    dtoverlay=disable-bt-pi5      # Disable Bluetooth for Pi 5
    dtoverlay=pi3-disable-bt      # Disable Bluetooth on Pi 3
    dtoverlay=pi3-disable-wifi    # Disable WiFi on Pi 3
    

Using the Terminal

To do everything from the Terminal in the screen controls (see Screens), paste the block below as it is. It appends the entries with sudo tee -a.

sudo tee -a /boot/firmware/config.txt > /dev/null <<'EOF'

# --- Disable onboard WiFi and Bluetooth (for all Pi models) ---

dtoverlay=disable-wifi        # Disables the onboard WiFi interface at the firmware level
dtoverlay=disable-bt          # Disables onboard Bluetooth to prevent kernel from initializing it

# --- For Raspberry Pi 5 ---
dtoverlay=disable-wifi-pi5    # Disable WiFi for Pi 5
dtoverlay=disable-bt-pi5      # Disable Bluetooth for Pi 5

# --- For older Raspberry Pi models (Pi 3) ---
dtoverlay=pi3-disable-bt      # Disable Bluetooth on Pi 3
dtoverlay=pi3-disable-wifi    # Disable WiFi on Pi 3
EOF

Reboot

sudo reboot

Verify

rfkill list

Neither wlan0 (Wi-Fi) nor hci0 (Bluetooth) should appear as active.