[TESTING] Bluetooth audio streaming (A2DP)


#741

Hi Sam and everybody else

I’ve a RPI3 with OSMC fully updated and the original OSMC dongle

but
when I start a movie:

  1. if I use the BT for listening audio, after few minutes (depending on the movie) the audio stops and video freezes more o less always at same point.

  2. if I use analog audio, everything works well

this is my log:

10:42:33.622 T:1958981632  NOTICE: special://profile/ is mapped to: special://masterprofile/
10:42:33.622 T:1958981632  NOTICE: -----------------------------------------------------------------------
10:42:33.622 T:1958981632  NOTICE: Starting Kodi (17.5). Platform: Linux ARM (Thumb) 32-bit
10:42:33.622 T:1958981632  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
10:42:33.622 T:1958981632  NOTICE: Kodi compiled Oct 29 2017 by GCC 4.9.2 for Linux ARM (Thumb) 32-bit version 3.16.39 (200743)
10:42:33.622 T:1958981632  NOTICE: Running on Open Source Media Center 2017.10-1, kernel: Linux ARM 32-bit version 4.9.29-10-osmc
10:42:33.628 T:1958981632  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
10:42:33.628 T:1958981632  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
10:42:33.628 T:1958981632  NOTICE: ARM Features: Neon disabled
10:42:33.629 T:1958981632  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
10:42:33.629 T:1958981632  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
10:42:33.629 T:1958981632  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/kodi/addons
10:42:33.629 T:1958981632  NOTICE: special://masterprofile/ is mapped to: /home/osmc/.kodi/userdata
10:42:33.629 T:1958981632  NOTICE: special://envhome/ is mapped to: /home/osmc
10:42:33.629 T:1958981632  NOTICE: special://home/ is mapped to: /home/osmc/.kodi
10:42:33.629 T:1958981632  NOTICE: special://temp/ is mapped to: /home/osmc/.kodi/temp
10:42:33.629 T:1958981632  NOTICE: special://logpath/ is mapped to: /home/osmc/.kodi/temp
10:42:33.629 T:1958981632  NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
10:42:33.629 T:1958981632  NOTICE: Local hostname: osmc
10:42:33.629 T:1958981632  NOTICE: Log File is located: /home/osmc/.kodi/temp//kodi.log
10:42:33.629 T:1958981632  NOTICE: -----------------------------------------------------------------------
10:42:33.704 T:1958981632   ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
10:42:33.728 T:1958981632  NOTICE: load settings...
10:42:34.024 T:1958981632  NOTICE: Found 2 Lists of Devices
10:42:34.024 T:1958981632  NOTICE: Enumerated PI devices:
10:42:34.024 T:1958981632  NOTICE:     Device 1
10:42:34.025 T:1958981632  NOTICE:         m_deviceName      : HDMI
10:42:34.025 T:1958981632  NOTICE:         m_displayName     : HDMI
10:42:34.025 T:1958981632  NOTICE:         m_displayNameExtra:
10:42:34.025 T:1958981632  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
10:42:34.025 T:1958981632  NOTICE:         m_channels        : FL,FR
10:42:34.025 T:1958981632  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
10:42:34.025 T:1958981632  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_RAW
10:42:34.025 T:1958981632  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_EAC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_512
10:42:34.025 T:1958981632  NOTICE:     Device 2
10:42:34.025 T:1958981632  NOTICE:         m_deviceName      : Analogue
10:42:34.025 T:1958981632  NOTICE:         m_displayName     : Analogue
10:42:34.025 T:1958981632  NOTICE:         m_displayNameExtra:
10:42:34.025 T:1958981632  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
10:42:34.025 T:1958981632  NOTICE:         m_channels        : FL,FR
10:42:34.025 T:1958981632  NOTICE:         m_sampleRates     : 48000
10:42:34.025 T:1958981632  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
10:42:34.025 T:1958981632  NOTICE:         m_streamTypes     : No passthrough capabilities
10:42:34.025 T:1958981632  NOTICE:     Device 3
10:42:34.025 T:1958981632  NOTICE:         m_deviceName      : Both
10:42:34.025 T:1958981632  NOTICE:         m_displayName     : HDMI and Analogue
10:42:34.025 T:1958981632  NOTICE:         m_displayNameExtra:
10:42:34.025 T:1958981632  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
10:42:34.025 T:1958981632  NOTICE:         m_channels        : FL,FR
10:42:34.025 T:1958981632  NOTICE:         m_sampleRates     : 48000
10:42:34.025 T:1958981632  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
10:42:34.025 T:1958981632  NOTICE:         m_streamTypes     : No passthrough capabilities
10:42:34.025 T:1958981632  NOTICE: Enumerated ALSA devices:
10:42:34.026 T:1958981632  NOTICE:     Device 1
10:42:34.026 T:1958981632  NOTICE:         m_deviceName      : pulse
10:42:34.026 T:1958981632  NOTICE:         m_displayName     : OSMC streaming to Bluetooth speaker / headphones
10:42:34.026 T:1958981632  NOTICE:         m_displayNameExtra:
10:42:34.026 T:1958981632  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
10:42:34.026 T:1958981632  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE,SL,SR,UNKNOWN1,UNKNOWN2,UNKNOWN3,UNKNOWN4,UNKNOWN5,UNKNOWN6,UNKNOWN7,UNKNOWN8
10:42:34.026 T:1958981632  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
10:42:34.026 T:1958981632  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE,AE_FMT_U8
10:42:34.026 T:1958981632  NOTICE:         m_streamTypes     : No passthrough capabilities
10:42:34.060 T:1958981632  NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
10:42:34.060 T:1958981632  NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
                                            <?xml version="1.0" encoding="UTF-8" ?>
                                            <!-- Do not modify! These are OSMC Optimised Settings for your device  !-->
                                            <!-- If you wish to override any of these values, then create a file in /home/osmc/.kodi/userdata/advancedsettings.xml !-->
                                            <!-- It will override these settings, and your settings will be preserved across OSMC updates !-->
                                            <advancedsettings>
                                              <imageres>540</imageres>
                                              <fanartres>720</fanartres>
                                              <splash>false</splash>
                                              <handlemounting>0</handlemounting>
                                              <samba>
                                                <clienttimeout>30</clienttimeout>
                                              </samba>
                                            </advancedsettings>
10:42:34.062 T:1958981632  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
10:42:34.062 T:1958981632  NOTICE: Default Video Player: VideoPlayer
10:42:34.062 T:1958981632  NOTICE: Default Audio Player: paplayer
10:42:34.062 T:1958981632  NOTICE: Disabled debug logging due to GUI setting. Level 0.
10:42:34.062 T:1958981632  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
10:42:34.062 T:1958981632  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
10:42:34.063 T:1958981632  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
10:42:34.065 T:1958981632  NOTICE: Loaded playercorefactory configuration
10:42:34.065 T:1958981632  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
10:42:34.065 T:1958981632  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
10:42:34.589 T:1958981632  NOTICE: Running database version Addons27
10:42:36.324 T:1958981632  NOTICE: ADDONS: Using repository repository.xbmc.org
10:42:36.676 T:1958981632  NOTICE: Raspberry PI firmware version: Sep 22 2017 21:36:43 
                                            Copyright (c) 2012 Broadcom
                                            version f5217b8887607d0dd890a434de9c73d9aa9a7c0f (clean) (release)
10:42:36.676 T:1958981632  NOTICE: ARM mem: 688MB GPU mem: 320MB MPG2:0 WVC1:0
10:42:36.676 T:1958981632  NOTICE: cache.memorysize: 20MB libass.cache: 0MB
10:42:36.676 T:1958981632  NOTICE: Config:
                                            arm_freq=1200
                                            audio_pwm_mode=1
                                            config_hdmi_boost=5
                                            core_freq=400
                                            desired_osc_freq=0x36ee80
                                            disable_commandline_tags=2
                                            disable_l2cache=1
                                            disable_splash=1
                                            force_eeprom_read=1
                                            force_pwm_open=1
                                            framebuffer_ignore_alpha=1
                                            framebuffer_swap=1
                                            gpu_freq=300
                                            hdmi_force_cec_address=65535
                                            hdmi_force_hotplug=1
                                            hdmi_ignore_cec_init=1
                                            init_uart_clock=0x2dc6c00
                                            lcd_framerate=60
                                            over_voltage_avs=0x186a0
                                            over_voltage_avs_boost=0x186a0
                                            pause_burst_frames=1
                                            program_serial_random=1
                                            sdram_freq=450
                                            sdtv_aspect=1
                                            second_boot=1
                                            temp_limit=85
10:42:36.677 T:1958981632  NOTICE: Config:
                                            device_tree=-
10:42:36.693 T:1958981632  NOTICE: InitWindowSystem: Using EGL Implementation: raspberrypi
10:42:36.697 T:1958981632  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 60.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 59.940063 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 72.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 71.928070 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 75.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 56.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 60.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 59.940063 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 72.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 71.928070 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 75.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 120.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 60.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 59.940063 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 70.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 75.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 120.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1280 x 800 for display 0 with 1280 x 800 @ 120.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1280 x 1024 for display 0 with 1280 x 1024 @ 75.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1400 x 1050 for display 0 with 1400 x 1050 @ 60.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1400 x 1050 for display 0 with 1400 x 1050 @ 59.940063 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1440 x 900 for display 0 with 1440 x 900 @ 60.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1440 x 900 for display 0 with 1440 x 900 @ 59.940063 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1440 x 1080 for display 0 with 1600 x 1200 @ 60.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1440 x 1080 for display 0 with 1600 x 1200 @ 59.940063 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1728 x 1080 for display 0 with 1920 x 1200 @ 60.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1728 x 1080 for display 0 with 1920 x 1200 @ 59.940063 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
10:42:36.698 T:1958981632  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.940063 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 60.000000 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 59.940063 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 59.940063 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 720 x 576 for display 0 with 720 x 576 @ 50.000000 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 50.000000 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 50.000000 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 24.000000 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 23.976025 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 25.000000 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 30.000000 Hz
10:42:36.699 T:1958981632  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 29.970032 Hz
10:42:36.699 T:1958981632  NOTICE: Found (1920x1080@60.000000) at 47, setting to RES_DESKTOP at 16
10:42:36.699 T:1958981632  NOTICE: Checking resolution 16
10:42:36.878 T:1958981632  NOTICE: GL_VENDOR = Broadcom
10:42:36.878 T:1958981632  NOTICE: GL_RENDERER = VideoCore IV HW
10:42:36.878 T:1958981632  NOTICE: GL_VERSION = OpenGL ES 2.0
10:42:36.878 T:1958981632  NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.00
10:42:36.878 T:1958981632  NOTICE: GL_EXTENSIONS = GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_texture_npot GL_OES_depth24 GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_discard_framebuffer GL_OES_rgb8_rgba8 GL_OES_depth32 GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_APPLE_rgb_422 GL_EXT_debug_marker
10:42:38.530 T:1822909424  NOTICE: Register - new cec device registered on cec->RPI: CEC Adapter (2708:1001)
10:42:38.540 T:1868547056  NOTICE: Running database version Addons27
10:42:38.542 T:1868547056  NOTICE: Running database version ViewModes6
10:42:38.546 T:1868547056  NOTICE: Running database version Textures13
10:42:38.559 T:1868547056  NOTICE: Running database version MyMusic60
10:42:38.575 T:1868547056  NOTICE: Running database version MyVideos107
10:42:38.581 T:1868547056  NOTICE: Running database version TV29
10:42:38.583 T:1868547056  NOTICE: Running database version Epg11
10:42:38.586 T:1958981632  NOTICE: start dvd mediatype detection
10:42:39.473 T:1958981632 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
10:42:40.148 T:1958981632  NOTICE: initialize done
10:42:40.148 T:1958981632  NOTICE: Running the application...
10:42:40.925 T:1958981632  NOTICE: starting zeroconf publishing
10:42:40.926 T:1958981632  NOTICE: CWebServer[8080]: Started
10:42:40.926 T:1958981632  NOTICE: starting upnp client
10:42:40.941 T:1623192560  NOTICE: ES: Starting UDP Event server on port 9777
10:42:40.941 T:1623192560  NOTICE: UDP: Listening on port 9777 (ipv6 : true)
10:42:42.163 T:1868547056   ERROR: DoWork - Direct texture file loading failed for resource://resource.images.weathericons.default/.png
10:42:48.835 T:1745875952 WARNING: CSkinInfo: failed to load skin settings
10:47:42.082 T:1958981632  NOTICE: VideoPlayer: Opening: /media/hdd/complete/Sully.2016.BluRay.1080p.AC3.ITA-ENG.Subs.x264.repack.Aln.mkv
10:47:42.082 T:1958981632 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
10:47:42.082 T:1700787184  NOTICE: Creating InputStream
10:47:42.102 T:1700787184  NOTICE: Creating Demuxer
10:47:42.659 T:1700787184  NOTICE: Opening stream: 0 source: 256
10:47:42.659 T:1700787184  NOTICE: Creating video codec with codec id: 28
10:47:42.670 T:1700787184  NOTICE: Creating video thread
10:47:42.670 T:1700787184  NOTICE: Opening stream: 2 source: 256
10:47:42.670 T:1700787184  NOTICE: Finding audio codec for: 86019
10:47:42.670 T:1514169328  NOTICE: running thread: video_thread
10:47:42.671 T:1700787184  NOTICE: Creating audio thread
10:47:42.671 T:1497363440  NOTICE: running thread: CVideoPlayerAudio::Process()
10:47:42.671 T:1700787184  NOTICE: Opening stream: 3 source: 256
10:47:42.693 T:1497363440  NOTICE: Creating audio stream (codec id: 86019, channels: 6, sample rate: 48000, no pass-through)
10:53:11.153 T:1497363440   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer

what do you think about these stops?

thank you
Marco


#742

Did you disable the onboard bluetooth first before using the dongle?

The onboard has issues. Place the following line in config.txt to ensure its using the dongle

dtoverlay=pi3-disable-bt


#743

Oooh! Thank you very much!
Now it’s not stopping anymore!

But I noticed that now the audio it’s not properly sync… what do u suggest me to do?

This is my config.txt, is everything ok?

gpu_mem_1024=320
hdmi_ignore_cec_init=1
disable_overscan=1
start_x=1
#dtoverlay=lirc-rpi
disable_splash=1
dtoverlay=sdhost
dtoverlay=pi3-disable-bt

NOOBS Auto-generated Settings:

hdmi_force_hotplug=1
gpu_mem_256=192
sdtv_aspect=1
dtparam=gpio_in_pin=18
gpu_mem_512=256
dtparam=gpio_out_pin=17

Thank you


#744

Yeah there will be a slight delay using bluetooth.

You can change the audio offset in the audio settings when a video is playing to correct sync.


#745

For a while now it’s hard to connect my bluetooth headphones.
I’m using the Marshall MID headphones to watch movies on my RPi 2 at night. Though pairing was not very problematic connection always fails at the first attempt when trying to connect via the GUI. My headphones shut down first. When turning them on again and connecting them the second time it works. They connect and don’t shut down.

Beside the connection issues via GUI I also have connection problems when using the command line:

sudo echo -e "connect 2C:4D:79:0D:6D:62 \nquit" | bluetoothctl

I get the following message without connecting to my headphones:

[NEW] Controller 00:15:83:51:E5:F5 osmc [default]
[NEW] Device 2C:4D:79:0D:6D:62 MID
[bluetooth]# connect 2C:4D:79:0D:6D:62
Attempting to connect to 2C:4D:79:0D:6D:62
[bluetooth]# quit
[DEL] Controller 00:15:83:51:E5:F5 osmc [default]

How can I solve these issues. I will provide logs if you need them (I will have to change passwords to provide them because they appear at the logging file.).


#746

Hi everyone what is a good working chipset for bluetooth dongles?

@dimitriblem What is the chip name of your working bluetooth dongle. Run lsusb in ssh.

Mine currently is

Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

It pairs ok but there is severe lag like 1-2 secs.

Its a pity the internal bluetooth cuts out. Its pairs perfect with hardly any lag. Be great if gets worked on sometime.

Thanks for any info


#747

https://osmc.tv/store/product/bluetooth-dongle/


#748

Hi the_bo

I followed your instructions using the command audiodealyplus from the kodi remote but the bigger is the delay the slower is the movie until when it seems completely freezed.

what do you think about?


#749

Hi Marco

Yeah just noticed that too. Once you move audio offset past 800ms the video slows way down.

Not sure whats causing it.


#750

Hi the_bo,

osmc:~$ lsusb
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

I’m using the RPi BT-connection with Alexa, this works fine.


#751

Just thought I would chip in as I’ve just got something setup on OSMC/Pi/Harmony

I have managed to use this script, mentioned quite a few posts ago but it took quite a few attempts for me to get it to work.

Eventually I worked out I needed a sudo in there to get it to work.
Replace the disconnect with connect and a device MAC address to create a pair of files. Saved in a ###.py file and added to a key in keymaps has allowed me to automate connecting my ipad to stream to OSMC as part of a harmony activity.


import os
os.system(‘sudo echo -e “disconnect \nquit” | bluetoothctl’)



#752

Since this is related, can any of you maybe help with this issue I’m having? It’s in a separate thread since it isn’t about the Bluetooth package itself. ALSA audio through 3.5mm jack instead of HDMI


#753

Reporting here because it is to do with this package. When streaming from a BT device and HDMI is connected, pulse is using an alsa sink named ‘Analog Stereo’ but outputting only to HDMI. The HDMI and analogue sinks are not separately enumerated. The only way to stream from BT to analogue seems to be to not connect a HDMI device and turn off hdmi_force_hotplug (and perhaps hdmi_drive=2 as well). Can we force the analogue output to mirror HDMI sound like Kodi does?


#754

Hello everybody,

I was asking about connecting an Amazon Echo via Bluetooth to output audio via OSMC/my AVR and Sam bumped me towards this topic.

As far as I can see, the last info about Echo devices was given in January:

Has there maybe been some development? Has anyone looked into this to get streaming from an Echo device to work?


#755

Raspbian has dropped Pulse Audio for handling audio over Bluetooth and instead includes the bluez-alsa package. Integrating Pulse Audio with other audio sources was “clumsy”, according to Raspberry Pi Foundation. Users can still install Pulse Radio if they wish.


#756

Indeed. We have also been looking at this to see if it’s something we could take advantage of


#757

I am using raspberry pi 3 with onboard bluetooth. I installed a2dp-app-osmc as given in the post. So do I need to install any additional things or something??
I connected my phone with it via bluetooth from My Osmc and it connected easily. But whenever I try to play audio through bluetooth, it plays really badly(stuttering, out of sync, etc). So what should I do?


#758

The onboard bluetooth is know to give problems.

Are you using wifi at the same time?


#759

Yes, I am using wifi


#760

So please try it without, if you can.