/home/bill/System_maintenance/bluetooth setup on RaspPi.txt 25Mar2018 ********************** 25Mar2018 bluetooth-manager always locked up reboot RaspPi *********************** 25Mar2018 Bluetooth connect : audio RaspPi (raspberrypi) to SONY headphones (MDR-ZX330BT) >> Error on RaspPi : Connect Device "Connection failed - Use the audio menu to connect to this device" search "Raspberry Pi and Connect Device "Connection failed - Use the audio menu to connect to this device"" https://www.raspberrypi.org/magpi/bluetooth-audio-raspberry-pi-3/ PLAY AUDIO ON A BLUETOOTH SPEAKER WITH RASPBERRY PI 3 STEP-01 Set up the Raspberry Pi While Bluetooth is on the Raspberry Pi 3, you need to install a few bits of software to make sure it works properly. It’s best to start by making sure your version of Raspbian Jessie (this won’t work on Wheezy) is up to date. Open the terminal and begin with: sudo apt-get update sudo apt-get dist-upgrade Follow this up by installing the Raspberry Pi Bluetooth software and the excellent Blueman Bluetooth manager: sudo apt-get install pi-bluetooth blueman You may need to reboot after this, but you’ll probably be fine to carry on to the next step. >> OK, see "/home/bill/System_maintenance/blueman install std.txt" for details STEP-02 Set up your Bluetooth speaker Make sure your Bluetooth speaker is all charged up and ready to go, then switch it on. Ours has a satisfying beep once you do so. If there’s a syncing button or sequence for it to start searching to pair with devices, press it/do it and head back to the Raspberry Pi. If you want to check whether the speaker is actually looking, you could always find out if a mobile phone or tablet is able to see it. Don’t pair with it, though, as that might cause problems in the future. >> OK, I just turned SONY headphone sync on (hold power for 7 seconds) STEP-03 Connect the speaker up Open up Blueman by going to the program menu, Preferences, and Bluetooth Manager. As long as the speaker is still trying to sync, clicking Search should make it show up in the interface. Right-click on it, then hit Pair. It should connect to the device, shown by a few information bars on the connection strength – if it then suddenly disconnects straight afterwards, you may need to right-click on it again and hit Connect. Test it out by playing a video on YouTube; it may work straight away like this! >> Error "Connection Failed: No such file or directory" >> Is this related to user "bill" rather than "pi" (as causes problems with preferences) STEP-04 More setup Depending on how your Pi is set up, the Bluetooth audio might not work at step 3. If this is the case, it’s best to install some extra software to try to get it working. Open up the terminal again and install PulseAudio and its Bluetooth module: sudo apt-get install pulseaudio pavucontrol pulseaudio-module-bluetooth >"/home/bill/System_maintenance/pulseaudio install stdout.txt" >> OK for install If you open the PulseAudio panel now, it may not show much information, especially whether or not you can switch to the Bluetooth speaker. You’ll more than likely need to reboot the Raspberry Pi – do that now! >> BUT when I cold rebboted then tried to launch pulseaudio, I get the error : >> "Fatal Error: Unable to connect to PulseAudio: OK" STEP-05 Connecting with PulseAudio After the Raspberry Pi has booted back up, check the Volume Control option in the Sound & Video category of the program menu. On output devices, it should list bcm2835 ALSA as the default output. Go and connect or re-pair with the Bluetooth audio device and it should then be picked up as an option in the Volume Control. Try playing a YouTube video again: you may need to mute ALSA and set the Bluetooth device as a fallback, but it should start playing the audio! STEP-06 Bluetooth uses There are some quite obvious uses for Bluetooth speaker connections: not all monitors have audio out, so this solves that issue. This means videos, games, and music (especially the kind from Sonic Pi) are now available to you. You could also incorporate it into a project and create an internet radio player for yourself, activated with the touch of a button. It could be used in a scary Halloween decoration that houses multiple screams and whispers. There’s a lot you can do with this new functionality!