Questions tagged [bluez]

The tag has no usage guidance.

25
votes
6answers
19k views

Pairing Bose QC 35 over Bluetooth on Fedora

I am running Fedora 24 with Gnome Shell. I try to pair my new Bose QuietComfort 35 over Bluetooth. I started using the Gnome interface. Unfortunately, the connection seems not to hold. It appears as ...
19
votes
1answer
5k views

How do I secure Linux systems against the BlueBorne remote attack?

The Armis Lab has discovered a new vector attack affecting all devices with Bluetooth enabled including Linux and IoT systems. BlueBorne attack on Linux Armis has disclosed two vulnerabilities ...
14
votes
2answers
1k views

bluez: bluetooth headphones cannot reconnect after disconnecting

I can pair my bluetooth headset with my laptop once. But when I disconnect my headset, I cannot reconnect it again. The only way it works is to restart the bluetooth daemon: service bluetooth ...
13
votes
4answers
13k views

Bluetoothctl: No default controller available

I'm having issues connecting my Logitech K810 Bluetooth keyboard in Debian Jessie with BlueZ version 5.23-1, kernel 3.16.0-4. The keyboard works fine most of the time but sometimes it doesn't work at ...
11
votes
3answers
3k views

Why does pulseaudio handle the sound quality connection to a BT device?

I'm new to Linux and new to Bluetooth scripting too. What I have discovered so far is the following: Bluez is the default BT stack. BluezTools is a set of utilities you can use to more easily ...
10
votes
3answers
2k views

Alternative to the now deprecated rfcomm binary in bluez

Since bluez 5.44, the rfcomm binaries contained in bluez-utils (amongst others like hcitool) are considered deprecated and are from now on only included in the bluez-utils-compat package provided by ...
8
votes
1answer
14k views

How to set up automatic connection of bluetooth headset?

My bluetooth headset works fine. Audio sink works. Everything work. But the problem is that I need to connect it manually to the PC: click on bluetooth icon near the time on kde taskbar => known ...
8
votes
0answers
947 views

Sound playback over bluetooth lags

I followed the instructions on Arch Linux Wiki and managed to set up sound playback thorugh bluetooth. However, there is a serious lag when using A2DP profile. No problems when using the headset ...
7
votes
2answers
1k views

Bluez multiple audio sources

With the bluez stack, is it possible to connect multiple audio sources ? How ? If not is it possible by any other means ? If possible, is it possible to mix different bluetooth version like low-energy ...
6
votes
2answers
5k views

How to allow non-root systemd service to use dbus for BLE operation

I’ve been prototyping a BLE peripheral running as root on a small raspberry like board. Now I’m hardening things and partitioning the BLE app to a non-root user. So I've changed my systemd service ...
5
votes
1answer
2k views

hcidump not acquiring data packets in Ubuntu 14.04?

I am trying to communicate between two bluetooth modules in two different Ubuntu 14.04 VMs. While the data is transmitted and received perfectly, the hcidump is not able to acquire that data. I also ...
5
votes
2answers
10k views

Disable PIN request for pairing on Raspbian

I'm running a Raspberry Pi with Raspbian Wheezy. I have a BT (Bluetooth) dongle attached to one of the USB ports (I have a model B RPi), I've downloaded and installed the following packages: bluez-...
5
votes
1answer
5k views

how to use bluetooth device with HSP/HFP profile using pulseaudio >=6 and bluez >= 5.24

I'd like to receive/record audio from bluetooth device on my linux box. The one I have works properly as a headset (microphone works properly in particular) i.e. on macOS yet I cannot get it working ...
4
votes
2answers
835 views

Use Debian Laptop as Bluetooth headset?

I want to use my laptop (Debian 8.4) as a bluetooth headset for my smartphone (OnePlus One, Android). This means not just audio of my phone, also incoming calls. I already managed to play normal ...
4
votes
3answers
8k views

Using bluez to access Bluetooth Low Energy devices?

I would like to connect to a Bluetooth Low Energy (BTLE, Bluetooth Smart) device using a linux box with bluez and a bluetooth dongle. I have Orico BTA-402 dongle with CSR chipset; Ubuntu 14.04. I ...
4
votes
2answers
5k views

RFCOMM device seems to be missing (dev/rfcomm0)

I am trying to send and receive serial commands over bluetooth. I have installed pyBluez library. The issue is that while the rfcomm.conf exists there is no rfcomm0 in /dev/ directory. I rebooted but ...
4
votes
1answer
918 views

How to configure a connection interval in a BLE connection?

I have been using tools (hcitool, gatttool etc) from the BlueZ bluetooth protocol stack to connect to my BLE device. I have been able to successfully connect to the device and obtain data off it. My ...
4
votes
0answers
764 views

Bluetooth headphones pause/play button not working

I've been trying to get the pause/play button on my headphones working (Plantronics BackBeat Pro 2) with my laptop running Manjaro 17.1.10. They also have Next and Previous buttons which work ...
4
votes
1answer
2k views

How to get audio from BT headset mic?

I have BT headset with mic. It is connected to the Linux device as HSP (Pulseaudio 9.0 native) via Bluez5. I want to get sound from mic. How to do this? When I do parec -r --device="...." there ...
3
votes
5answers
10k views

How to find out Bluez version from command line?

I am using some custom Linux distribution without any UI. I would like to find out the Bluez version through the command-line. How can this be done?
3
votes
3answers
20k views

Enabling Bluetooth discoverability upon start-up

I would like to make a USB Bluetooth dongle discoverable upon start-up (or whenever it's plugged in) on Debian Squeeze or Wheezy. If I use hciconfig initially, I can see the device in this mode: ...
3
votes
1answer
7k views

Can't connect RFCOMM socket: Host is down

I have bluez 5.4.3 and I am attempting to communicate with a ble device through minicom. These two deceives (my computer and a bluno nano) are alreadt paired and this has been my method so far. #...
3
votes
1answer
340 views

Interfacing BlueZ without HCI?

Background I'm trying to get a BlueZ based userspace app running on a embedded Linux board to use nRF52832 as a Bluetooth connectivity chip. Seems like nRF52832 doesn't support the HCI interface. If ...
3
votes
0answers
492 views

How to pair a Datalogic QuickScan Bluetooth barcode scanner using SPP?

I would like to pair a Bluetooth barcode scanner in "Serial Port Profile Mode" (SPP) using bluetoothctl on Arch Linux. The device is: [bluetooth]# info 00:07:BE:1C:40:C4 Device 00:07:BE:1C:40:C4 (...
3
votes
0answers
184 views

Recreate HID device after BlueZ 5 is restarted

I work on an embedded device which is using Bluetooth keyboard for user interaction. When the keyboard is connected for the first time after reboot or BlueZ restart, BlueZ will establish a connection,...
3
votes
0answers
619 views

Binding to systemd device units of connected bluetooth devices

When I connect a bluetooth device (e.g. a wiimote) to my machine and list all device units of systemd via systemctl list-units -t device, the device unit shows up as sys-subsystem-bluetooth-devices-...
3
votes
0answers
379 views

Pulseaudio does not register HFP profile in SDP server

I need to pair a headset to a Linux based device over Bluetooth. Actually I want to have mic paired to the device to get raw audio from the mic. The device does not have a sound card. I have ...
3
votes
0answers
990 views

Very low volume audio through Bluetooth since networking restart

I'm running Debian 8, and I've been successfully using Pulseaudio/BlueZ to play audio through a Bluetooth speaker. Today I restarted my networking stack in order to try and fix a WiFi problem, and ...
3
votes
1answer
4k views

Fedora 27 sound output to a bluetooth device not working

I've got a Lenovo Thinkpad T460 and a fresh installation of Fedora 27 with only a few Gnome Extensions and extra software installed. I got this laptop a few months now and only used Fedora (previously ...
2
votes
1answer
2k views

Why can't I connect to my Linux bluetooth serial port?

I have a USB bluetooth dongle on a Linux 3.12.5 ARM system. I've been attempting to make a bluetooth serial connection from my android phone to the USB dongle on Linux. I've referenced this question ...
2
votes
1answer
105 views

Linux BLE Scanning after a CTRL+C

I have a C program that works well the first time it runs (BLUEZ C API) but if I press CTRL+C to stop it and then if I run it again it never finds any BLE device (scanning function). If I reboot linux ...
2
votes
1answer
4k views

Is it possible to use the bluetoothctl write command to send serial data?

Is it possible to use the bluetoothctl write command to send serial data? For example, I know that I can not do this exactly but can I have something to the effect that writes btltoothctl write "...
2
votes
1answer
4k views

Bluetooth controller profiles

In bluetoothctl, if I run show on my default bluetooth controller, I get the following: Controller XX:XX:XX:XX:XX:XX Name: computer-name Alias: computer-name Class: 0x00010c ...
2
votes
1answer
919 views

How to use a bluetooth speaker?

I'm trying to use a bluetooth speaker, but don't get any sound. bluetoothctl shows the device as paired, trusted, and connected, and lists it as "serial port", "headset", "audio sink", and some ...
2
votes
0answers
144 views

Logitech MX Master won't stay Connected to Debian Stretch

To preface this, I owned this mouse for over a year now and have used it with no problems on this same hardware with different Linux distros (Fedora, Arch, Manjaro). It was not until I installed ...
2
votes
0answers
428 views

Bluetooth Autoconnect to Headset Makes A2DP Sink Unavailable

When turning on my Bluetooth headset (Sony MDR-XB950N1) and the Bluetooth automatically connects with my computer, it automatically selects the HSP/HFP profile which makes audio sound terrible. ...
2
votes
0answers
978 views

bnep0 interface not showing up after connecting to bluetooth NAP

I'm currently trying to associate my phone and a custom board running Linux through a bluetooth PAN network. My phone being the NAP and my board the PANU. I followed the following documentation HOWTO-...
2
votes
1answer
522 views

pulseaudio-equalizer automatically switching output sink?

I have a Bluetooth headset that I usually use for listening to music on my laptop, and they tend to work fine. Unless I try to use the pulseaudio equalizer, and then it switches the output to my ...
2
votes
0answers
491 views

Setting up Linux Bluetooth 4.0 serial port - gatttool/socat?

Bluetooth LE/ 4 is different from traditional Bluetooth serial port profiles and old instructions don't work. Bluetooth LE is basically all user mode, and there are some instructions on accessing LE ...
2
votes
1answer
635 views

Bose QC35 fails to connect to XPS 15 9550 running Arch

I am struggling with making my Bose Quiet Comfort 35 headset work on my XPS 15 9550 running Arch Linux. The headset works on my other computer (also running Arch), but I just can't figure out how to ...
2
votes
0answers
475 views

Bluez Obex daemon not starting

my Bluez obexd daemon is not starting. I connect via: ssh -X something@something I have a running dbus user session and set the DISPLAY env var with DISPLAY=:0 like the www told me. My daemon.log ...
2
votes
0answers
2k views

How to configure bluez/kernel for Bluetooth keyboard peripheral

I am trying to bring up a custom ARM machine (similar to Raspberry Pi) to connect to a Bluetooth keyboard using a UART HCI interface (as opposed to a USB Bluetooth dongle). The device appears to pair ...
2
votes
1answer
3k views

Trying to connect bose quietcomfort 35 headset over bluetooth on arch linux

There is another question here, but i followed those instructions and it still didn't work. Here is the systemctl status Oct 06 10:02:38 TRAYUSH bluetoothd[376]: Bluetooth daemon 5.42 Oct 06 10:02:...
2
votes
0answers
478 views

Bluez bluetoothd requires root for all processes interacting with it

I've upgraded my bluez installation to version 5.41 on my Ubuntu xenail box (16.04). I'm trying to do some testing with a piece of bluetooth low energy hardware so I'm staring bluetoothd with the ...
2
votes
0answers
332 views

Can bluez run hooks on connect/disconnect

Is it possible to get bluez to run hooks when a device connects/disconnects? I'm setting up a raspberry pi to broadcast sound from a TV to Bluetooth ear phones. I want to add a pulse audio lookback ...
2
votes
0answers
552 views

Bluetooth Tethering, no IPv4 adresse at interface bnep0

I want to tether my mobile internet from my smartphone (OnePlus One, Android) to my Laptop (Debian 8). I want achieve this without using external tools. At the arch wiki page (https://wiki.archlinux....
2
votes
0answers
1k views

bluez paired but disconnected

I'm running bluez=4.99-2 on a Raspberry with Raspian installed and an old usb dongle 0a5c:200a Broadcom Corp. BCM2035. I use an Android device to connect to it, the dongle doesn't support sspmode so ...
2
votes
0answers
914 views

Send message to Android phone using bluetooth

I have a Raspberry Pi which you can assume to be just a Linux machine. It runs BlueZ and is successfully paired with my Android phone. What I want to do is, my Python program should be able to send a ...
2
votes
1answer
1k views

Why is bluetooth-agent getting stuck on authorizing?

I am trying to manually connect between my laptop and phone. I have bluez-utils version 4.98-2ubuntu7 installed. When I run the agent on the terminal, I get: asheesh@U32U:~$ sudo bluetooth-agent 4835 ...
2
votes
0answers
513 views

Possible to upgrade to latest Bluez using Mint 15 Olivia (Cinnamon)?

I'm using the latest version of Mint 15. I noticed that the Bluez version that is shipped with Mint 15 is 4.101 (http://www.bluez.org/bluez-4101/). As you can see the release date is : 22nd June ...