Professional Documents
Culture Documents
Failed To Connect - Org - Bluez.error - Failed - Raspberry Pi Forums PDF
Failed To Connect - Org - Bluez.error - Failed - Raspberry Pi Forums PDF
Foundation
Forum FAQ
About
About us
Contact us
Documentation
Trademark rules
Search
Login
Register
Unanswered topics
Active topics
Forum FAQ
About
About us
Contact us
Documentation
Trademark rules
Board index
Hardware and peripherals
Raspberry Pi 400
Print view
42 posts
1
2
johann_strauss
Posts: 8
Joined: Sun Mar 14, 2021 1:10 pm
I have tried all possible options also suggested here, but to no avail:
viewtopic.php?f=28&t=275273 (https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=275273)
What is wrong?
When I right-click on the Volume Control, I can only select HDMI or Device Profiles, and there is no Bluetooth-connected JBL Flip 4 nor Google Home Mini.
Code:
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@pi400:~ $ uname -a
Linux pi400 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
https://forums.raspberrypi.com/viewtopic.php?t=306920 1/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
pi@pi400:~ $
Code:
pi@pi400:~ $ bluetoothctl
Agent registered
[bluetooth]# devices
Class: 0x00240400
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
Class: 0x00240414
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
Modalias: bluetooth:v000ApFFFFdFFFF
amoun
Posts: 17
Joined: Tue Oct 27, 2020 7:25 pm
Location: Cornwall, UK
Hi I have the same problem since I removed some pulse audio packages as pulse audio stopped Firefox from playing audio. Reinstalling pulse audio did not bring back the option to send audio over the
bluetooth connection. So although my speaker is 'connected' it doesn't work. The terminal outputs are the same as yours.s
https://forums.raspberrypi.com/viewtopic.php?t=306920 2/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
amoun
Posts: 17
Joined: Tue Oct 27, 2020 7:25 pm
Location: Cornwall, UK
pi@raspberrypi:~ $ bluetoothctl
Agent registered
Class: 0x00240414
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
johann_strauss
Posts: 8
Joined: Sun Mar 14, 2021 1:10 pm
On Ubuntu, the same device is paired without LegacyPairing and connects immediately:
Code:
johann@arthur:~$ uname -a
Linux arthur 5.4.0-66-generic #74~18.04.2-Ubuntu SMP Fri Feb 5 11:17:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
johann@arthur:~$ bluetoothctl
Agent registered
Class: 0x00240414
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
Modalias: bluetooth:v000ApFFFFdFFFF
https://forums.raspberrypi.com/viewtopic.php?t=306920 3/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
amoun
Posts: 17
Joined: Tue Oct 27, 2020 7:25 pm
Location: Cornwall, UK
I didn't even understand it enough to get to enabling it. Is you bluetooth on the rasp-pi and ubuntu using the same hardware/firmware etc
johann_strauss
Posts: 8
Joined: Sun Mar 14, 2021 1:10 pm
The JBL Flip 4 is the same. The computers are different though. But I assumed the connection settings would be no different.
amoun
Posts: 17
Joined: Tue Oct 27, 2020 7:25 pm
Location: Cornwall, UK
I had this idea that there may be interference from the wifi as I use 2.4GHz which is close to the Bluetooth
I switched off wifi and it connects ~ I can use 5GHz for wifi but it doesn't have such a good range ~ I may try fiddling with the 2.4GHz channels.
However I was messing with the audio setup and lost the option to send the audio to the speaker ~ I used to have a different menu that gave HDMI or Speaker ???
amoun
Posts: 17
Joined: Tue Oct 27, 2020 7:25 pm
Location: Cornwall, UK
johann_strauss
Posts: 8
Joined: Sun Mar 14, 2021 1:10 pm
Legacy Pairing:
This is the only method available in Bluetooth v2.0 and before. Each device must enter a PIN code; pairing is only successful if both devices enter the same PIN code
I am not sure about this one, I will not be able to type in any PIN code on my JBL Flip 4 speaker.
johann_strauss
Posts: 8
Joined: Sun Mar 14, 2021 1:10 pm
https://forums.raspberrypi.com/viewtopic.php?t=306920 4/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
Code:
pi@pi400:~ $ groups
pi adm lp dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi
Code:
pi 682 0.0 0.2 358540 8616 ? S<sl 21:17 0:00 /usr/bin/pulseaudio --daemonize=no
pi 1520 0.0 0.0 7348 580 pts/0 S+ 21:24 0:00 grep --color=auto pulse
Code:
Agent registered
[bluetooth]# power on
[bluetooth]# default-agent
[bluetooth]# devices
[bluetooth]# scan on
Discovery started
10 06 10 1a 32 62 4c a8 ....2bL.
johann_strauss
Posts: 8
Joined: Sun Mar 14, 2021 1:10 pm
Tried again and again. It briefly connects after pairing. Then the white led stops blinking and stays on.
Code:
https://forums.raspberrypi.com/viewtopic.php?t=306920 5/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
Agent registered
[bluetooth]# power on
[bluetooth]# default-agent
[bluetooth]# scan on
Discovery started
Last edited by johann_strauss on Mon Mar 15, 2021 8:45 pm, edited 1 time in total.
johann_strauss
Posts: 8
Joined: Sun Mar 14, 2021 1:10 pm
Code:
[bluetooth]# paired-devices
Class: 0x00240414
Icon: audio-card
Paired: no
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
Modalias: bluetooth:v000ApFFFFdFFFF
RSSI: -26
TxPower: 8
Code:
[bluetooth]#
https://forums.raspberrypi.com/viewtopic.php?t=306920 6/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
johann_strauss
Posts: 8
Joined: Sun Mar 14, 2021 1:10 pm
Connect Device:
Code:
pi@pi400:~ $ bluetoothctl
Agent registered
[bluetooth]# paired-devices
[bluetooth]#
headsettrouble
Posts: 6
Joined: Fri Mar 19, 2021 7:55 pm
It will work then. At latest when you have powered off and on your bluetooth device afterwards.
I have the exact same problem and would love to know a fix why it does not work directly after the initial boot.
tomaszeW
Posts: 1
Joined: Wed Mar 31, 2021 8:37 pm
I have a similar problem with pi4, exactly when connecting ps3 controller to retropie
Code:
sudo bluetoothctl
show
E4:5F:01:XX:XX:XX
after restart
Code:
B8:27:EB:9D:XX:XX
https://forums.raspberrypi.com/viewtopic.php?t=306920 7/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
Code:
Code:
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Last edited by tomaszeW on Wed Mar 31, 2021 9:08 pm, edited 1 time in total.
evancg
Posts: 2
Joined: Mon Apr 05, 2021 4:55 am
I have this same issue with a Pi 4 with a Dualshock or basically ANY bluetooth device. The changing MAC address happens to me too. On boot it's:
Controller E4:5F:01:09:8F:54 and Bluetooth just fails. Nothing can connect at all. It's a mess.
After a quick sudo systemctl restart bluetooth.service and bluetoothctl list, it shows
evancg
Posts: 2
Joined: Mon Apr 05, 2021 4:55 am
Quick addition to my prior post - Restarting bluetooth.service doesn't always fix it - it seems more likely that just restarting bluetooth gives it a chance to get the right MAC address (which is why sometimes
it always works on a reboot).
Bi-Doux
Posts: 3
Joined: Mon Jan 18, 2021 11:16 pm
https://forums.raspberrypi.com/viewtopic.php?t=306920 8/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
Quick addition to my prior post - Restarting bluetooth.service doesn't always fix it - it seems more likely that just restarting bluetooth gives it a chance to get the right MAC address (which is why
sometimes it always works on a reboot).
Same recurring error but as far as I am concerned, restarting bluetooth.service NEVER fix it. Since one of last year update of firmware, I am unable to use bluetooth with my RPI 4B.
Longrower
Posts: 2
Joined: Tue Apr 20, 2021 11:58 am
The sudo Bluetooth restart is the only thing that's worked for me thus far.
GUI Bluetooth On/Off doesn't work, system restart doesn't work. Bluetooth is Fubar after I shut down and power back on. Mine's a new RPi 4b with stock OS install via NOOB.
piersw
Posts: 9
Joined: Wed Dec 30, 2020 10:02 pm
Location: Cambridge, UK.
I'm getting this on a friend's Raspberry Pi 400 - it works fine on my Pi 400. I managed once to pair it by following all the steps in the other thread (powering it on, default-agent, scan, trust, pair, connect...),
but that's not at all practical for a kid's computer.
The curious thing is it seems to be a hardware problem. If I use either their or my SD card in my Pi 400 I can pair. If I use their or my SD card in their Pi 400, I get the various error messages.
Both SD cards are (now) up-to-date with apt-get, and both were Pi 400 installs of Raspberry Pi OS (as opposed to an upgrade from an earlier OS).
piersw
Posts: 9
Joined: Wed Dec 30, 2020 10:02 pm
Location: Cambridge, UK.
I've also had occasional success with restarting the bluetooth.service. The address changes from E4:5F:01:13:BE:6D to B8:27:EB:F9:19:77 and then pairing, connecting and audio works flawlessly (as it
always has on my Pi 400).
piersw
Posts: 9
Joined: Wed Dec 30, 2020 10:02 pm
Location: Cambridge, UK.
Given the computer is for a friend's 6 year old I guess the best option is to return it for a swap?
She obviously can't be expected to type in any commands to get bluetooth working, and I'm nervous that if I modify the startup scripts it will go wrong on the next OS update.
piersw
Posts: 9
Joined: Wed Dec 30, 2020 10:02 pm
Location: Cambridge, UK.
https://forums.raspberrypi.com/viewtopic.php?t=306920 9/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
The Pi 400 has been replaced, and it still has exactly the same behaviour.
I'm stumped - it seems some other people have the same problem. But, more importantly, it does seem to be a hardware problem because Bluetooth works on my Pi 400 using the SD cards (plural) that fail to
work on the other Pi 400s.
Given the replacement came from the same shop, could it really be a dodgy batch?
jamesh
Raspberry Pi Engineer & Forum Moderator
Posts: 31976
Joined: Sat Jul 30, 2011 7:41 pm
The Pi 400 has been replaced, and it still has exactly the same behaviour.
I'm stumped - it seems some other people have the same problem. But, more importantly, it does seem to be a hardware problem because Bluetooth works on my Pi 400 using the SD cards (plural) that
fail to work on the other Pi 400s.
Given the replacement came from the same shop, could it really be a dodgy batch?
Hi Piers,
We have had a few reports on this, but have not been able to replicate in house. Since you are in Cambridge, would it be possible to get hold of this failing one so we can investigate?
James
piersw
Posts: 9
Joined: Wed Dec 30, 2020 10:02 pm
Location: Cambridge, UK.
Yeah, that's easy - I can easily drop it off somewhere central (Hills Rd?). Want to email me and we can arrange? (can you get my email from the forum?)
Thanks.
Sort by
Post time
Ascending
Go
Locked
Print view
42 posts
https://forums.raspberrypi.com/viewtopic.php?t=306920 10/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
2
Jump to
Community
General discussion
Announcements
Other languages
Deutsch
Español
Français
Italiano
Nederlands
日本語
Polski
Português
Русский
Türkçe
User groups and events
The MagPi
Using the Raspberry Pi
Beginners
Troubleshooting
Advanced users
Assistive technology and accessibility
Education
Picademy
Teaching and learning resources
Staffroom, classroom and projects
Astro Pi
Mathematica
High Altitude Balloon
Weather station
Programming
C/C++
Java
Python
Scratch
Other programming languages
Windows 10 for IoT
Wolfram Language
Bare metal, Assembly language
Graphics programming
OpenGLES
OpenVG
OpenMAX
General programming discussion
Projects
Networking and servers
Automation, sensing and robotics
Graphics, sound and multimedia
Other projects
Gaming
Media centres
AIY Projects
Hardware and peripherals
Camera board
Compute Module
Official Display
HATs and other add-ons
Device Tree
Interfacing (DSI, CSI, I2C, etc.)
Raspberry Pi 400
Raspberry Pi Pico
General
SDK
MicroPython
Other RP2040 boards
Operating system distributions
Raspberry Pi OS
Raspberry Pi Desktop for PC and Mac
https://forums.raspberrypi.com/viewtopic.php?t=306920 11/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
Other
Android
Debian
FreeBSD
Gentoo
Linux Kernel
NetBSD
openSUSE
Plan 9
Puppy
Arch
Pidora / Fedora
RISCOS
Ubuntu
Ye Olde Pi Shoppe
For sale
Wanted
Off topic
Off topic discussion
Board index
All times are UTC
Delete cookies
Follow us
Sign up to newsletter
Mastodon
YouTube
About Raspberry Pi
News
Contact us
Trademark
About us
Jobs
Accessibility
Cookies
Licensing
Privacy
Security
For home
Raspberry Pi for home
Tutorials
For industry
Thin clients
https://forums.raspberrypi.com/viewtopic.php?t=306920 12/13
12/27/22, 1:07 AM Failed to connect: org.bluez.Error.Failed - Raspberry Pi Forums
Powered by Raspberry Pi
Design partners
Success stories
Hardware
Cases
Peripherals
Software
Raspberry Pi OS
Raspberry Pi Imager
Raspberry Pi Desktop
Documentation
All categories
Forums
All forums
Raspberry Pi Store
Cambridge Store
Raspberry Pi Press
The MagPi
HackSpace
Wireframe
Custom PC
https://forums.raspberrypi.com/viewtopic.php?t=306920 13/13