Power management tools such as TLP would not only power off the
bluetooth adapter using bluetoothctl but also block it using rfkill.
This patch checks if the radio device is blocked using rfkill, and
unblocks it in case it was. Note that after unblocking, the bluetooth
subsystem needs a couple seconds to initialize, therefore 'sleep 3'.
There is no additional dependencies introduced with this patch; rfkill
is part of util-linux, of which the base system depends.
Power management tools such as TLP would not only power off the bluetooth adapter using bluetoothctl but also block it using rfkill.
This patch checks if the radio device is blocked using rfkill, and unblocks it in case it was. Note that after unblocking, the bluetooth subsystem needs a couple seconds to initialize, therefore 'sleep 3'.
There is no additional dependencies introduced with this patch; rfkill is part of util-linux, of which the base system depends.