How to enable bluetooth connection in anyremote on Ubuntu 17.10

As you can see in , anyremote uses sdptool.
The issue is the following:

sdptool search --bdaddr local SP
Failed to connect to SDP server on FF:FF:FF:00:00:00: No such file or directory

To enable it on Ubuntu 17.10, you need enable compatibility mode in /etc/systemd/system/dbus-org.bluez.service file replacing:

ExecStart=/usr/lib/bluetooth/bluetoothd --compat

After that, you must restart bluetooth daemon with the following command:

sudo systemctl daemon-reload
sudo systemctl restart bluetooth

Now, change permissions and run sdptool again:

sudo chmod 777 /var/run/sdp     
sdptool search --bdaddr local SP
Searching for SP on FF:FF:FF:00:00:00 ...

Enjoy it!

NOTE: This method also allow to fix the following issue:

bluetooth.btcommon.BluetoothError: (2, 'No such file or directory')


Popular posts from this blog

How to fix Android when developer options are not available for this user

from: can't read /var/mail/ in Python scripts

Fix "Set scan parameters failed: Input/output error" on Ubuntu 16.04