# Is it possible/sensible to disable wifi?

**URL:** <https://community.openenergymonitor.org/t/is-it-possible-sensible-to-disable-wifi/4562>\
**Category:** emonPi\
**Tags:** wifi, emonpi\
**Created:** [14 July 2017 02:11 UTC](https://community.openenergymonitor.org/t/is-it-possible-sensible-to-disable-wifi/4562 "2017-07-14T02:11:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juerg1](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@Juerg1](https://community.openenergymonitor.org/u/Juerg1)\
**Post date:** [14 July 2017 02:11 UTC](https://community.openenergymonitor.org/t/is-it-possible-sensible-to-disable-wifi/4562/1 "2017-07-14T02:11:38Z")

</div>

I have a single emonPi, connected to local network via Ethernet cable. No Wifi required.

I see that the Wifi is on and scanning other Wifi networks. Would it be sensible to turn the Wifi off seeing it is not used in my context? If so, how can the Wifi be turned off?

---

<div class="post-metadata">

**Author:** ![Bill.Thomson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/bill.thomson/32/1834_2.png) [@Bill.Thomson](https://community.openenergymonitor.org/u/Bill.Thomson)\
**Post date:** [14 July 2017 02:39 UTC](https://community.openenergymonitor.org/t/is-it-possible-sensible-to-disable-wifi/4562/2 "2017-07-14T02:39:31Z")

</div>

Hi Juerg,

Yes, it’s a good idea to disable a network interface you don’t use.

From: [raspbian - Disable WiFi (wlan0) on Pi 3 - Raspberry Pi Stack Exchange](https://raspberrypi.stackexchange.com/questions/43720/disable-wifi-wlan0-on-pi-3)

To completely disable the onboard WiFi from the firmware on the Pi3, add  
`dtoverlay=pi3-disable-wifi` in `/boot/config.txt`. This is documented [here](https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README).  
**_Be sure to use up to date firmware as this feature was committed recently._**

---

<div class="post-metadata">

**Author:** ![Juerg1](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@Juerg1](https://community.openenergymonitor.org/u/Juerg1)\
**Post date:** [14 July 2017 03:24 UTC](https://community.openenergymonitor.org/t/is-it-possible-sensible-to-disable-wifi/4562/3 "2017-07-14T03:24:24Z")

</div>

Thanks @Bill.Thomson. Done all that and rebooted emonPi, but in the local Administration/Wifi page, it still is listing the scanned Wifi networks it finds. Looks like the Wifi is still active. I believe I have the latest firmware - also because the dtoverlay=pi3-disable-bt was already in the config.txt file.  
Any ideas what is not working here?

---

<div class="post-metadata">

**Author:** ![Bill.Thomson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/bill.thomson/32/1834_2.png) [@Bill.Thomson](https://community.openenergymonitor.org/u/Bill.Thomson)\
**Post date:** [14 July 2017 12:41 UTC](https://community.openenergymonitor.org/t/is-it-possible-sensible-to-disable-wifi/4562/4 "2017-07-14T12:41:57Z")

</div>

> [@Juerg1](#):
>
> but in the local Administration/Wifi page, it still is listing the scanned Wifi networks it finds.

Have you forced a browser page reload to ensure you’re not looking at cached data?

Just to be sure we’re on the same sheet of music…  
We’re talking about the built-in wifi, vice an add-on device, right?

---

<div class="post-metadata">

**Author:** ![Juerg1](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@Juerg1](https://community.openenergymonitor.org/u/Juerg1)\
**Post date:** [14 July 2017 23:58 UTC](https://community.openenergymonitor.org/t/is-it-possible-sensible-to-disable-wifi/4562/5 "2017-07-14T23:58:42Z")

</div>

Yes, did reload the page. It appears as if my change to the config.txt file has no effect so far.

And yes, we are talking about the standard built-in wifi, no add-on. Strange. Then again, I’m a newbie, so I may have missed something obvious.

---

<div class="post-metadata">

**Author:** ![pb66](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/pb66/32/27_2.png) [@pb66](https://community.openenergymonitor.org/u/pb66)\
**Post date:** [15 July 2017 11:08 UTC](https://community.openenergymonitor.org/t/is-it-possible-sensible-to-disable-wifi/4562/6 "2017-07-15T11:08:08Z")

</div>

> [@Juerg1](#):
>
> I believe I have the latest firmware - also because the dtoverlay=pi3-disable-bt was already in the config.txt file.

Do you mean “dtoverlay=pi3-disable-wifi” not “dtoverlay=pi3-disable-bt”?

Bill said

> [@Bill.Thomson](#):
>
> To completely disable the onboard WiFi from the firmware on the Pi3, add  
> dtoverlay=pi3-disable-wifi in /boot/config.txt.

---

<div class="post-metadata">

**Author:** ![Juerg1](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@Juerg1](https://community.openenergymonitor.org/u/Juerg1)\
**Post date:** [15 July 2017 21:33 UTC](https://community.openenergymonitor.org/t/is-it-possible-sensible-to-disable-wifi/4562/7 "2017-07-15T21:33:06Z")

</div>

Sorry for not being preciser in the first post:

When I opened the config.txt for the first time, I found that the “dtoverlay=pi3-disable-bt” was already there. My aim is to turn off the wifi too, so I added a “dtoverlay=pi3-disable-wifi” and rebooted.

I was surprised to see a list of available wifi networks in /Setup/Wifi.

In the meantime I found that the wifi is actually turned off, i.e. not listed when running command ifconfig.

Nevertheless, the available wifi networks are still listed. Perhaps this is just a cosmetic flaw and it remembers previously scanned networks?

---

<div class="post-metadata">

**Author:** ![sysfu](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/sysfu/32/20724_2.png) [@sysfu](https://community.openenergymonitor.org/u/sysfu)\
**Post date:** [1 June 2024 17:16 UTC](https://community.openenergymonitor.org/t/is-it-possible-sensible-to-disable-wifi/4562/8 "2024-06-01T17:16:37Z")

</div>

For anyone trying to do this with the emonSD-21Jul21 build, I had success by adding the following line to the `[all]` section at the end of the `/boot/config.txt` file

`dtoverlay=disable-wifi`

Rebooted and confirmed that wlan0 disappeared from the results of the `iwconfig` command.
