Bluetooth: Difference between revisions

From Alpine Linux
(added prerequisites and basic installation)
 
m (added WIP)
Line 1: Line 1:
{{Draft|Spotty internet is slowing me down}}
[https://en.wikipedia.org/wiki/Bluetooth Bluetooth] is a standard for the short-range wireless interconnection of cellular phones, computers, and other electronic devices. [http://www.bluez.org/ BlueZ] is an implementation of the Bluetooth protocol stack for Linux, and it is provided by the {{Pkg|bluez}} package.
[https://en.wikipedia.org/wiki/Bluetooth Bluetooth] is a standard for the short-range wireless interconnection of cellular phones, computers, and other electronic devices. [http://www.bluez.org/ BlueZ] is an implementation of the Bluetooth protocol stack for Linux, and it is provided by the {{Pkg|bluez}} package.


Line 21: Line 23:
# Start and enable the Bluetooth service
# Start and enable the Bluetooth service


{{Cmd|apk add bluez
{{Cmd|# apk add bluez
# apk add bluez-deprecated
# apk add bluez-deprecated
# modprobe btusb
# modprobe btusb
Line 30: Line 32:
== Basic Configuration ==
== Basic Configuration ==


=== Battery Reporting ===
An experimental feature can be enabled in order to report device battery level:


{{Cat|/etc/bluetooth/main.conf|[General]
...
Experimental=true
...}}


== Basic Use ==
== Basic Use ==

Revision as of 08:35, 17 April 2023

This material is work-in-progress ...

Spotty internet is slowing me down
(Last edited by Bbbhltz on 17 Apr 2023.)

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:

  1. Install bluez
  2. Load the btusb kernel module
  3. Add user to the lp group
  4. 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}}}

Basic Use