Problem: Bluetooth Audio output (Transmitter)
|
5th Jun, 2016, 03:49 AM
Post: #46
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
(5th Jun, 2016 03:38 AM)IriDium Wrote: Is dtparam=audio=on set as default? If not, then I was running a vanilla RPi3 newly flashed image. Yes it is Quote:IMX6 This file is part of bluez package And it should be enabled automagically by upstart service file /etc/init/imx6-bluetooth.conf Btw, I cloned this file for RPi3, so there should be same behaviour |
|||
5th Jun, 2016, 03:52 AM
Post: #47
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
FYI: This is default /boot/config.txt
|
|||
5th Jun, 2016, 07:28 PM
Post: #48
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
Commenting out dtparam=audio=on was the crucial point missed.
Connected automatically and played first time around. Disabled onboard BT and used BT Dongle - worked as expected (Had to re-add the BT speaker via bluetoothctl) Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
5th Jun, 2016, 10:29 PM
Post: #49
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
(4th Jun, 2016 07:36 PM)IriDium Wrote: So bottom line, the RPi3 BT controller should not be used for audio (Unless you have perforated eardrums or deaf). I looked a little bit around if this issue is already known, and voila, here it is And you can found a lot of threads of users having sound issues with onboard BT. All of them are able to solve them by disabling WLAN by "sudo ifdown wlan0". Maybe you could test it if "sudo ifdown wlan0" helps (unfortunately I'm still not able do connect my speaker using onboard BT ) |
|||
6th Jun, 2016, 03:33 AM
Post: #50
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
(5th Jun, 2016 10:29 PM)Nachteule Wrote: Maybe you could test it if "sudo ifdown wlan0" helps (unfortunately I'm still not able do connect my speaker using onboard BT ) Sure, I'll give it a go. (Won't be for a couple of days) I also want to check the permissions. I can't see why access to "lp" (cups and printing) is required for it to work. However, until the driver/hardware or whatever is solved, it seems rather pointless having BT audio but no wifi or vice versa, or buying additional dongles. However, I think we are almost there. I'll be glad when this is solved and put to bed, it's been a right pain!! Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
7th Jun, 2016, 01:05 AM
Post: #51
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
RPi3: Just rerun the selections (on a new installation) with the addition of dtparam=audio=on and it worked flawlessly.
The "lp" permissions are required otherwise you get a bluez.error.Failed. Odd. Even using the onboard BT and WIFI up (But not connected) - the sound was Ok - no glitches or any stutters. However, using ONLY onboard WIFI (No ethernet) I got the stutters back. sudo ifdown wlan0 didn't really help in that instance. However, disabling WIFI in xbian-config and rebooting, it was back to normal usable sound. Even reconnected automatically on reboot. IMX6: Is there an equivalant to dtparam=audio=on for the cubox-i as I had the same issue, connected OK but no sound? Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
9th Jun, 2016, 04:18 AM
Post: #52
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
I've just tried the "same" on a cubox-i using the onboard BT and the latest image but the quality of the sound was even worse than the RPi at it's worse. I tried disabling the onboard wifi but didn't help
Looking at the solidrun website, seems to suggest that this is a known problem and hasn't really been resolved. Sensible solution stick to wired. It's better quality and works Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
7th Feb, 2019, 08:17 PM
Post: #53
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter) | |||
8th Feb, 2019, 06:29 AM
Post: #54
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
(7th Feb, 2019 08:17 PM)BreadPit Wrote:(30th Apr, 2016 04:11 AM)Nachteule Wrote: Thanks for this 'mini' Howto. Will help me for a better start with BT (want to build BT dialog for config-xbmc for next Kodi version)Is there a BT dialog for config-xbmc now? Unfortunately no - it's still on my long todo list |
|||
28th May, 2021, 10:21 PM
Post: #55
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
Hello all,
I'm an Xbian newbie (as you might understand from the rest of my post... ) and I'm trying to use BT headphones connected to my RPi3B+ onboard BT module, running the latest version of Xbian and it seems I'm hitting permissions issues. So far I was able to:
When I boot up my RPi, the BT HPs always get connected and once Kodi has automatically started, I can hear beeps&ticks when moving through Kodi's menus, so everything seems to work fine, but when I try to play a video from Kodi or from an addon (i.e. Amazon VOD or YouTube), the audio stops on my BT HPs and after that, no way to get it working again (no more beeps&ticks when moving through Kodi menus). Then, if I close Kodi and from a ssh console (logged in as xbian user) I kill the "pulseaudio" process, restart it, re-connect my BT HPs using "bluetoothctl" commands and restart kodi (using "kodi start" command), then everything works fine, I can hear perfect audio on my BT HPs when playing a video both through Kodi or through an addon. This second scenario makes me think I'm hitting some permissions issues on the first scenario, but I was not able to find the cause: I tried to follow all the instructions in this thread, but I found no solution yet. Here's my system config: Software XBian version: Xbian 1.0 (knockout) (kernel: Linux 5.4.114+) XBMC/Kodi version: 19.1 Matrix Overclock settings: None Hardware Device type and model: Raspberry Pi 3 Model B+ Power supply rating: Output 5V/2.0A SD card size and make/type: MicroSD HC 32GB - A1 Network: Ethernet eth0 (static setting) Connected devices (TV, USB, network storage, ...): HMDI monitor Here's a log file when I can't hear any audio from my BT headphones when playing a video: kodi.log from NON-working scenario And here's a log file from the second scenario, when everything works fine, as expected: kodi.log from working scenario From what I've seen on the log files, in the first scenario I can see the following log entries: Code: 2021-05-28 10:38:16.274 T:3137 INFO <general>: CActiveAESink::OpenSink - initialize sink This seems to be when I can hear sounds from my BT headphones moving thorugh Kodi menus, but when I start playing a video, these are the entries on the log file: Code: 2021-05-28 10:40:17.329 T:3137 INFO <general>: CActiveAESink::OpenSink - initialize sink On the other hand, in the working scenario I can see these entries when I start playing a movie: Code: 2021-05-28 10:46:41.127 T:5482 INFO <general>: CActiveAESink::OpenSink - initialize sink Does anyone have any idea why this is happening? Many thanks! |
|||
29th May, 2021, 05:03 AM
Post: #56
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
@ppianigiani
Maybe this is a race condition. Have you ever tried not to let Kodi start automatically at boot time? I can't understand this, it works fine for me (but I usually don't use it because I have extreme sound dropouts most of the time, even with a Raspberry Pi4), but my bluetooth speaker doesn't connect automatically after a (re)boot, I always have to do a sudo bluetoothctl connect <dev> But the sound (both gui and video) is always present Btw, a kernel update to 5.4.122 can't hurt either |
|||
30th May, 2021, 01:33 AM
Post: #57
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
@Nachteule
(29th May, 2021 05:03 AM)Nachteule Wrote: Btw, a kernel update to 5.4.122 can't hurt either Thanks for your advice: first of all, I tried to upgrade to 5.4.122 and everything went fine, but now the bluetooth service is no longer running, so I can't enter the bluetoothctl cli to connect my BT HPs again... I tried to restart the BT servicet, but I guess I did it the wrong way and it's not working yet... Code: xbian@xbian ~ $ sudo service bluetooth status (29th May, 2021 05:03 AM)Nachteule Wrote: Maybe this is a race condition. Excellent point, I'll have a try, but unfortunately I don't know how to do it... I searched for some instructions on the forums and found this: [SOLVED] How to disable XBMC launch at startup ...but it seems a pretty old thread and this method is not working, at least with my Xbian version... Once more: any suggestion? (29th May, 2021 05:03 AM)Nachteule Wrote: ...but my bluetooth speaker doesn't connect automatically after a (re)boot, I always have to do a sudo bluetoothctl connect <dev>I forgot to mention, but actually this is exactly the same solution I found and I've added to /etc/rc.local this command: Code: sudo -u xbian bluetoothctl connect <dev> Many thanks! |
|||
30th May, 2021, 10:15 PM
Post: #58
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
(30th May, 2021 01:33 AM)ppianigiani Wrote: ...I tried to upgrade to 5.4.122 and everything went fine, but now the bluetooth service is no longer running, so I can't enter the bluetoothctl cli to connect my BT HPs again... A quick update: I still have bluetooth issues with 5.4.122, so I reverted back to 5.1.114 and luckily this time I was able to figure out how to stop Kodi from starting automatically at boot time (disabling autostart for "xbmc" service from xbian-config). So, I've added to my /etc/rc.local the command to start Kodi just after the BT HPs get connected, like this: Code: sudo -u xbian pulseaudio --start With this config, the audio on my BT HPs works fine both from GUI and from video/addons, so in the end it seems that Kodi MUST start after the BT device is already connected (and I guess this makes sense, after all...). I'm afraid this solution is not very elegant and can't be applied for every case, but it does work for me, so I'd rather stick to it. Any suggestion from anyone about the bluetooth service not running on 5.4.122? Thanks! |
|||
30th May, 2021, 10:32 PM
Post: #59
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
It looks to me like now the rpi bluetooth device is no longer initialized and thus present
Please delete the file /var/log/upstart/rpi-bluetooth.log, restart and then post the file here It should look like this: Code: /dev/serial1 still not there, waiting ... This is the output from my 3B+ Furthermore I have with my different configurations that the bluetooth daemon (bluetoothd) is not started correctly by the script /etc/init/bluetooth.conf or bluetooth is not in power up mode However, this does not always occur with me, but with the 3B+ under Debian Buster. With Debian Bullseye and 4B this is always ok Anyway, I made a new script, you could also try this as a test cat /etc/init/bluetooth.conf Code: description "bluetooth" With this new script you should see in the file /var/log/upstart/bluetooth.log the following Code: Changing power on succeeded |
|||
1st Jun, 2021, 01:55 AM
Post: #60
|
|||
|
|||
RE: Bluetooth Audio output (Transmitter)
(30th May, 2021 10:32 PM)Nachteule Wrote: Please delete the file /var/log/upstart/rpi-bluetooth.log, restart and then post the file here Here's the content of my /var/log/upstart/rpi-bluetooth.log when running version 5.4.122, after deleting the log file and rebooting: Code: /dev/serial1 still not there, waiting ... As a comparison, here's the same /var/log/upstart/rpi-bluetooth.log file when running version 5.1.114 (please, notice I'm swapping SD cards on the same RPi3B+ board to test 5.4.114 and 5.4.122 back and forth, so I'm pretty sure the HW is working fine): Code: using ttyAMA0@921600 (30th May, 2021 10:32 PM)Nachteule Wrote: Anyway, I made a new script, you could also try this as a testI also had a try to your script, but unfortunately it made no difference, here's the /var/log/upstart/rpi-bluetooth.log file (when running on 5.4.122 with the new BT script): Code: /dev/serial1 still not there, waiting ... |
|||
« Next Oldest | Next Newest »
|