6

I have a cluster of Raspberry Pi 3 machines in a cluster. To reduce power consumption I would like to turn off the wireless modules. I have learnt that HDMI can be switched off with the tvservice command:

sudo tvservice -o

Is there a similar command for wifi/bluetooth?

There is a similar question which discusses disabling wifi (Disable WiFi (wlan0) on Pi 3) but it does not specifically request the power conservation aspect which is what I am concerned with.

John Smith
  • 1,251
  • 3
  • 17
  • 27

2 Answers2

4

You CAN use device id (which may be appropriate if you had multiple adaptors), but the Foundation recommended method is:-

To turn off wifi, rfkill block wifi; to turn it on, rfkill unblock wifi. For Bluetooth, rfkill block bluetooth and rfkill unblock bluetooth.

Milliways
  • 59,890
  • 31
  • 101
  • 209
3

Rfkill sounds like what you are after.

$ rfkill list 

$ rfkill block (device no)

$ rfkill unblock (device no)

https://askubuntu.com/a/881572/479642

Andy Anderson
  • 638
  • 1
  • 4
  • 11