# Turn off Bluetooth and WiFi on a running device

**URL:** <https://forums.balena.io/t/turn-off-bluetooth-and-wifi-on-a-running-device/5268>\
**Category:** balenaOS\
**Created:** [February 10, 2019, 8:47am UTC](https://forums.balena.io/t/turn-off-bluetooth-and-wifi-on-a-running-device/5268 "2019-02-10T08:47:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![gelbal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/gelbal/32/1109_2.png) [@gelbal](https://forums.balena.io/u/gelbal)\
**Post date:** [February 14, 2019, 6:13pm UTC](https://forums.balena.io/t/turn-off-bluetooth-and-wifi-on-a-running-device/5268/5 "2019-02-14T18:13:13Z")

</div>

Hi @devsterp,

balenaOS uses [NetworkManager](https://developer.gnome.org/NetworkManager/) to manage the connection. [The documentation](https://www.balena.io/docs/reference/OS/network/2.x/) explains in detail on how you could manage the connections. If the documentation is not helpful or lacking, your feedback is appreciated.

As detailed in the doc, once you ssh into host OS, you could edit NetworkManager’s configuration to change the connection to be ethernet only (or in other ways). To edit the file:  
`vi /etc/NetworkManager/system-connections/resin-wifi-01`

Before you turn off the wifi connection, make sure you have other ways of accessing the device via a direct physical connection or another networking setup in place (like ethernet conection). Else, you will lose remote access to the device.

Then also use NetworkManager’s `nmcli` to disable the wifi if you don’t want to persist the configuration:  
`nmcli radio wifi off`

Next, you are right, I don’t see any mention of bluetooth in that documentation. So `hcitool dev` will output the bluetooth devices and `systemctl status bluetooth` shows the running bluetooth service. You could turn off the bluetooth via:  
`systemctl stop bluetooth.service`  
and disable it:  
`systemctl disable bluetooth.service`

A reboot might be necessary for the disabling. Hope these are helpful.

Cheers…

---

_[View the full topic](https://forums.balena.io/t/turn-off-bluetooth-and-wifi-on-a-running-device/5268)._
