Bluetooth

From Void Linux Wiki
Jump to: navigation, search

NOTE:

This page is incomplete and still needs to be finished (mostly involving the configuration portion of this page)

Installing & configuring bluez

Installation

Install bluez, the Bluetooth protocol stack for Linux

# xbps-install -S bluez

Enable the bluetooth daemon. Make sure that the dbus service is also enabled.

# ln -s /etc/sv/dbus /var/service/
# ln -s /etc/sv/bluetoothd /var/service/

Configuration

You can now use bluetoothctl to configure and connect your bluetooth devices.

$ bluetoothctl

Further configuration can be done in the bluez configuration file at /etc/bluetooth/main.conf

Bluetooth graphical interfaces

There are also graphical interfaces in the repo that can be used to configure your bluetooth devices:

# xbps-install -S blueman

To enable the bluetooth applet in KDE Plasma 5:

# xbps-install -S bluedevil

To enable bluetooth configuration in Gnome:

# xbps-install -S gnome-bluetooth

Troubleshooting

Cannot change bluetooth state without root privileges

Add your user to the bluetooth group:

# usermod -aG bluetooth <your username>

Once you have done that restart the bluetooth and dbus services (# sv restart bluetoothd && sv restart dbus) and log out to ensure both the bluetooth daemon and your login session know that you are in the correct group.

bluetoothctl does not show any controllers

If bluetoothctl cannot find a controller, it may be blocked. Try unblocking it with rfkill:

$ rfkill unblock bluetooth

blueman does not start

See Cannot change bluetooth state without root privileges