Bluetooth
This material is work-in-progress ... Spotty internet is slowing me down |
Bluetooth is a standard for the short-range wireless interconnection of cellular phones, computers, and other electronic devices. BlueZ is an implementation of the Bluetooth protocol stack for Linux, and it is provided by the bluez package.
This article describes the basic installation of Bluetooth controllers and devices.
Prerequisites and Basic Installation
Prerequisites
eudev should be installed and setup:
# setup-devd udev
Basic Installation
Basic installation is as follows:
- Install bluez
- Optionally install bluez-deprecated if you need deprecated tools like
hcitool
- Optionally install bluez-deprecated if you need deprecated tools like
- Load the
btusb
kernel module - Add user to the
lp
group - Start and enable the Bluetooth service
# apk add bluez # apk add bluez-deprecated # modprobe btusb # adduser $USER lp # rc-service bluetooth start # rc-update add bluetooth default
Basic Configuration
Battery Reporting
An experimental feature can be enabled in order to report device battery level:
Contents of /etc/bluetooth/main.conf
{{{2}}}