Problem with bluetooth headphones

yes

Here is OSMC Log https://paste.osmc.tv/kujuxuvawe

I tried to use Aukey EP-B40 with amazon fire stick and the audio is perfect

Thanks

This doesnā€™t look healthy

[ 1197.062721] Bluetooth: hci0 SCO packet for unknown connection handle 67

Also for your second issue for HDMI audio resume after disconnect. Did you disconnect the headphones during this debug log?

yes. i Tried to switch off and switc on

Ok, have to see if any of the audio guruā€™s sees something in the logs

1 Like

Thanks a lot @fzinken

edit: even the sound of the system of switching between the various menus (I do not know what itā€™s called) is very changed and gloomy compared to when I had October osmc

edit 2: i tried to pair and connecting another bluetooth headphones Plantronics m70 and there are the same 2 problem

Are you using WiFi?

No. Ethernet Cable

Im no guru, but, From your outputā€¦

bluetoothd[254]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)

I think its trying to handle the bluetooth connection in the HSP/HFP profile. I had a similar problem, discussed in the below.

It might help to read through that, the symptoms are slightly different but given its trying to get data for HSP/HFP and the audio quality is low it sounds to me that the core issue is the same.

if the headphones are connected, perhaps pick it up from here?

sudo pactl list sources short

You should see something along the lines of
<N> BlueZ5... XX_XX_XX_XX...
where <N> is our source/sink number and XX_XX_XX_XX... is the same mac address of our bluetooth headset.

So now we are going to set that audio device to an a2dp output device.
sudo pactl set-card-profile <N> a2dp_sink

I could be wrong though.

unfortunately, the command does not work

osmc@osmc:~$ sudo pactl list sources short
Connection failed: Access denied
osmc@osmc:~$

Thanks

my bad, drop the sudo,
pactl list sources short
pactl set-card-profile <n> a2dp_sink

If you have a chance, can you please run bluetoothctl then once in bluetoothctl
info AA:BB:CC:DD:EE:FF

Where AA:BB:CC:DD:EE:FF is your headphones mac address. this will give a bit of output, part of which will be a UUID: table, just curious to see if Headset shows up in that list before Audio Sink.

Forget that, Just saw in your earlier post,

00001108 < 0000110b
So the Headset Profile is connected first, then the Audio Sink.

hi.

where am I wrong?

osmc@osmc:~$ pactl list sources short
0 alsa_output.platform-soc_audio.analog-stereo.monitor module-alsa-card.c s16le ch 2 44100 Hz SUSPENDED
11 bluez_sink.00_23_01_0A_14_5C.a2dp_sink.monitor module-bluez5-device.c s16le ch 2 44100 Hz IDLE
osmc@osmc:~$ pactl set-card-profile 11 a2dp_sink
Fallimento: EntitĆ  inesistente
osmc@osmc:~$ pactl list sources short
0 alsa_output.platform-soc_audio.analog-stereo.monitor module-alsa-card.c s16le ch 2 44100 Hz SUSPENDED
12 bluez_sink.00_23_01_0A_14_5C.headset_head_unit.monitor module-bluez5-device.c s16le ch 1 8000 Hz IDLE
13 bluez_source.00_23_01_0A_14_5C.headset_head_unit module-bluez5-device.c s16le ch 1 8000 Hz SUSPENDED
osmc@osmc:~$ pactl set-card-profile 12 a2dp_sink
Fallimento: EntitĆ  inesistente
osmc@osmc:~$

but it functioned with correct audio only 1 time
when i switch off and switch on the audio is returned badā€¦

and the second problem wasnā€™t resolved
i have everytime switch ALSA->HDMI->ALSA in audio output device
to hear the sound in the headphones

1 Like

Ok, So Iā€™ve just read through the works again to see if i can find out whats going on.

I can probably only help with getting the audio cleaner, cant really help with the ALSA/HDMI switching as i havenā€™t really dealt with that.

So if you start with a clean install,

Install the a2dp app.
sudo apt-get update && apt-get install a2dp-app-osmc

Then lets connect to bluetooth via bluetoothctl (FYI: when entering the MAC address you can start typing 00 and then press tab for auto completion.
bluetoothctl
for the sake of being thorough.
[bluetooth] power off
[bluetooth] power on
Put the headphones in pairing mode, trust, unblock, pair and connect.
[bluetooth] # trust 00:23:01:0A:14:5C
[bluetooth] # unblock 00:23:01:0A:14:5C
[bluetooth] # pair 00:23:01:0A:14:5C
[bluetooth] # connect 00:23:01:0A:14:5C

if all goes well you will then
[AUKEY EP-B40]#

For safety sake grab the info [AUKEY EP-B40]# info or if it hasnā€™t entered the deviceā€¦ [bluetooth] # info 00:23:01:0A:14:5C

Grab that output, just in case.

Next drop out of bluetoothctl, quit
then lets grab all the pactl output for toubleshooting if we hit problems.
pactl list sources

Then, lets get our number for the device.
pactl list sources short | grep 00_23_01_0A_14_5C

and run our command
pactl set-card-profile <n> a2dp_sink

Then grab all that output and let me know what shows up.

1 Like

For easy operation the program supports TAB completion so no need to type whole MAC just type pair 0 and press TAB

Thanks @RobertJRussellLives for support and reply
in the late afternoon iā€™ll try

but i donā€™t understand if I have correctly entered the value of N

look at my previous post

is correct this?

osmc@osmc:~$ pactl set-card-profile 11 a2dp_sink

Thanks

Yep that looks right.

I dont know why you got additional devices last time, so as i mentioned it will help to get the output in long format too pactl list sources

Also while im thinking about it grab the osmc log as well.

Edit: pactl list sources

1 Like

Hi @RobertJRussellLives

After install the a2dp app.
here is an error

osmc@osmc:~$ bluetoothctl
[NEW] Controller 00:1A:7D:DA:71:15 osmc [default]
[bluetooth]# power off
Changing power off succeeded
[bluetooth]# power on
Failed to set power on: org.bluez.Error.Blocked
[bluetooth]#

thanks

Through osmc go to
My OSMC > Network > Bluetooth > Enable
Turn it on there then you should then be able to power on/off the device via bluetoothctl.

1 Like

there is something wrong
the headphones is in pairing mode but

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jul 25 17:10:38 2018 from 192.168.1.212
osmc@osmc:~$ bluetoothctl
[NEW] Controller 00:1A:7D:DA:71:15 osmc [default]
[bluetooth]# power off
Changing power off succeeded
[CHG] Controller 00:1A:7D:DA:71:15 Powered: no
[CHG] Controller 00:1A:7D:DA:71:15 Discovering: no
[CHG] Controller 00:1A:7D:DA:71:15 Class: 0x000000
[bluetooth]# power on
[CHG] Controller 00:1A:7D:DA:71:15 Class: 0x00041c
Changing power on succeeded
[CHG] Controller 00:1A:7D:DA:71:15 Powered: yes
[bluetooth]# trust 00:23:01:0A:14:5C
Device 00:23:01:0A:14:5C not available
[bluetooth]# unblock 00:23:01:0A:14:5C
Device 00:23:01:0A:14:5C not available
[bluetooth]# pair 00:23:01:0A:14:5C
Device 00:23:01:0A:14:5C not available
[bluetooth]# connect 00:23:01:0A:14:5C
Device 00:23:01:0A:14:5C not available
[bluetooth]#

itā€™s not that I have to activate ā€œstart / stop discoveryā€ in My OSMC > Network > Bluetooth ?

thanks

Dont do it through OSMC, do that through bluetoothctl,

[bluetooth]# scan on

It output lines as it finds and detects changes within bluetooth devices in the vicinity, once you see your device run.

[bluetooth]# scan off

1 Like

something not worked

osmc@osmc:~$ bluetoothctl
[NEW] Controller 00:1A:7D:DA:71:15 osmc [default]
[bluetooth]# power off
Changing power off succeeded
[CHG] Controller 00:1A:7D:DA:71:15 Powered: no
[CHG] Controller 00:1A:7D:DA:71:15 Discovering: no
[CHG] Controller 00:1A:7D:DA:71:15 Class: 0x000000
[bluetooth]# power on
[CHG] Controller 00:1A:7D:DA:71:15 Class: 0x00041c
Changing power on succeeded
[CHG] Controller 00:1A:7D:DA:71:15 Powered: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:15 Discovering: yes
[NEW] Device 00:23:01:0A:14:5C AUKEY EP-B40
[bluetooth]# trust 00:23:01:0A:14:5C
[CHG] Device 00:23:01:0A:14:5C Trusted: yes
Changing 00:23:01:0A:14:5C trust succeeded
[bluetooth]# unblock 00:23:01:0A:14:5C
Changing 00:23:01:0A:14:5C unblock succeeded
[bluetooth]# pair 00:23:01:0A:14:5C
Attempting to pair with 00:23:01:0A:14:5C
[CHG] Device 00:23:01:0A:14:5C Connected: yes
[CHG] Device 00:23:01:0A:14:5C UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device 00:23:01:0A:14:5C UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 00:23:01:0A:14:5C UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 00:23:01:0A:14:5C UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 00:23:01:0A:14:5C UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 00:23:01:0A:14:5C ServicesResolved: yes
[CHG] Device 00:23:01:0A:14:5C Paired: yes
Pairing successful
[CHG] Device 00:23:01:0A:14:5C ServicesResolved: no
[CHG] Device 00:23:01:0A:14:5C Connected: no
[bluetooth]# connect 00:23:01:0A:14:5C
Attempting to connect to 00:23:01:0A:14:5C
Failed to connect: org.bluez.Error.Failed
[bluetooth]# connect 00:23:01:0A:14:5C
Attempting to connect to 00:23:01:0A:14:5C
Failed to connect: org.bluez.Error.Failed

thanks