Kodi Community Forum

Full Version: Bluetooth auto-connect?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Not exactly a Kodi question, but maybe someone knows how to make paired headphones auto-connect when powered on? Using Bluez5 with ALSA, bluetoothctl is the only tool right now.
(2018-06-23, 22:41)Segfault Wrote: [ -> ]Not exactly a Kodi question, but maybe someone knows how to make paired headphones auto-connect when powered on? Using Bluez5 with ALSA, bluetoothctl is the only tool right now.
Hello There

I cant answer your question directly but I did manage this with a harmony remote. Copied the step below and hope you can glean something from this:

# followed this guide 2108269 (post)

# bluez may already be installed but try this:

Code:
sudo apt-get update
sudo apt-get install bluez

# these do need installing

Code:
sudo apt-get install libglib2.0-dev
sudo apt-get install libdbus-1-dev
sudo apt-get install libudev-dev
sudo apt-get install libical-dev
sudo apt-get install libreadline-dev

# now ensure the bluetooth device is plugged in

# enter the bluetooth control planner

Code:
bluetoothctl

agent KeyboardOnly

default-agent

# set your device to be discovered

# now ask bluetoothctl to do a search

Code:
scan on

# the search should find the ‘harmony keyboard’ with a MAC code
# insert the mac address after the pair command

Code:
pair MAC:ADDRESS
Code:
trust MAC:ADDRESS
Code:
connect MAC:ADDRESS

# finish the pairing process…….happy days
Thanks for reply. I have no problem pairing and connecting, the trouble is when I power off the headphones then it won't connect when I power them on. I have to use bluetoothctl to connect again.