Bluetooth

Like WiFi, Bluetooth has a radio transmitter, so it can take quite a bit of power. Unlike WiFi, Bluetooth is rarely used, so it's very possible that the Bluetooth device isn't actually used for anything, and is just consuming battery life.

This is a script to turn Bluetooth on/off as required: #!/bin/bash if ps -A | grep -c bluetoothd then gksudo /etc/init.d/bluetooth stop sudo hciconfig hci0 down else gksudo /etc/init.d/bluetooth start fi

Bluetooth devices that are active on a system can be seen with the hcitool command:

# hciconfig hci0: Type: USB

BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN

RX bytes:0 acl:0 sco:0 events:0 errors:0 TX bytes:0 acl:0 sco:0 commands:0 errors:0

Was this article helpful?

0 0

Post a comment