0

Pi 400 Bluetooth likely defective
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

Pi 400 Bluetooth likely defective

by PunnX86 on Fri May 07, 2021 3:33 pm

I received my Pi 400 in late April and I've been unsuccessful in getting any bluetooth devices to pair with it. I started with RetroPie and was unable to pair 8BitDo, Sony PS4 or Sega Saturn Bluetooth gamepads to it. It sees the devices, but pairing is unsuccessful and times out no matter which security setting I used.

Today I installed Raspberry Pi OS with desktop and recommended software (Release date: March 4th 2021 Kernel version: 5.10). I did a full update, restart, and attempted a couple more bluetooth pairing tests.

First one is a generic bluetooth speaker (displayed as #2719 Speaker in the menu). This failed.
Second is a Jabra Freeway HFS100 that can be used as a bluetooth speaker / communication device. This also failed in the same way.

The initial message says "Pairing request sent to device", then a minute later an error is displayed that says "Pairing Failed, timeout was reached."

When I try to pair these devices again, it says GDBus.Error:org.bluez.Error.AlreadyExists: Already Exists. If I go to remove bluetooth devices, none are shown in the list.

Both of these operating systems exhibit near identical behavior in that the pairing process can start, but times out. However, the devices are still listed as paired and have to be manually removed before another pairing attempt can be made.

Let's do any additional troubleshooting needed so that I can get a replacement asap.

Thanks

PunnX86
 
Posts: 5
Joined: Fri May 07, 2021 3:17 pm

Re: Pi 400 Bluetooth likely defective

by mikeysklar on Fri May 07, 2021 7:32 pm

Hi PunnX86,

When pairing the speaker are you logged in using the graphical desktop bluetooth drop down to add the device? Then right-clicking on the speaker icon to select audio out?

I have seen situations with the Pi 400 where people need ot manually install pulseaudio and reboot.

Code: Select all | TOGGLE FULL SIZE
sudo apt-get install pulseaudio pulseaudio-module-bluetooth

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Re: Pi 400 Bluetooth likely defective

by PunnX86 on Fri May 07, 2021 8:18 pm

Yes I'm using the GUI, and after attempting to pair the devices there are no other audio devices listed other than HDMI when right-clicking the speaker icon.

I tried installing pulseaudio and the bluetooth module but those packages are already installed and are the latest versions.

PunnX86
 
Posts: 5
Joined: Fri May 07, 2021 3:17 pm

Re: Pi 400 Bluetooth likely defective

by mikeysklar on Sat May 08, 2021 12:41 pm

Gotcha. Does restarting the daemon resolve this?

Code: Select all | TOGGLE FULL SIZE
systemctl daemon-reload
systemctl restart bluetooth

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Re: Pi 400 Bluetooth likely defective

by PunnX86 on Sat May 08, 2021 1:47 pm

I entered those commands in Rpi OS and it worked. I was able to pair 3 different devices. However, this must be done every boot for bluetooth to work.

I swapped to my Retropie SD card and this also worked after I switched to the cmd prompt and entered:

Code: Select all | TOGGLE FULL SIZE
systemctl restart bluetooth


The question is, why is this happening? Entering in these commands or creating a bootup script to do so isn't really a valid solution.

PunnX86
 
Posts: 5
Joined: Fri May 07, 2021 3:17 pm

Re: Pi 400 Bluetooth likely defective

by mikeysklar on Sat May 08, 2021 7:51 pm

@PunnX86,

Glad to see this worked. This issue just came up in recent posts specific to the Pi 400 and the gnome login screen. I believe this will be resolved in a near term update or release as it is a very frustrating issue.

In the meantime you can create a one-line startup script until it is resolved.

https://www.raspberrypi.org/forums/view ... p?t=291642

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Re: Pi 400 Bluetooth likely defective

by PunnX86 on Sun May 09, 2021 9:37 am

Thanks for the help. It must be specific to the 400 as my friend's pi4 does not have these issues.

The primary use for this machine will be retropie, so even without the gnome login screen is it expected this OS would have the same issue?

PunnX86
 
Posts: 5
Joined: Fri May 07, 2021 3:17 pm

Re: Pi 400 Bluetooth likely defective

by mikeysklar on Sun May 09, 2021 2:59 pm

The more I look into this it appeas that is a firmware update that the newest Pi400 and Pi4s are coming loaded with. The root cause of failure is the BLE address being reported incorrectly to the OS.

I think the Pi400's are showing up much more frequently with the BLE address issue as they are coming loaded with the faulty firmware. I've not been able to determine if there is a version that resolves it, but you can try running rpi-update and see if there is a newer release to try:

Code: Select all | TOGGLE FULL SIZE
sudo rpi-update


https://www.raspberrypi.org/documentati ... -update.md

At least this explains why Pi OS and RetroPie are both requiring BLE daemon restarts.

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Re: Pi 400 Bluetooth likely defective

by PunnX86 on Sun May 09, 2021 10:15 pm

I did an rpi-update but that did not resolve the issue. I believe we tried this on Thursday as well, but we tried so many things and many beers were involved that night.

I also configured the bluetooth restart service as recommended in your previous post but sadly this did not work for me. I copied and pasted each command with the exception of the script location which was located at root /

At the moment I need to restart the bluetooth service via ssh before my gamepad will connect.

Thank you for all your help. I'm glad it's not a hardware defect and that a solution is likely inbound.

PunnX86
 
Posts: 5
Joined: Fri May 07, 2021 3:17 pm

Re: Pi 400 Bluetooth likely defective

by mikeysklar on Mon May 10, 2021 4:01 pm

@PunnX86,

I'm glad we have a manual override to get BLE working, but it would be nice to see the issue logged somewhere official.

I was able to locate where the firmware blobs are located that rpi-update is using during an update. The last release was 10 days ago for version 1.20210430.

https://github.com/raspberrypi/firmware

I've not been able to locate an exact issue matching yours, but now I'm curious what the date/vesion of the rpi-update firmware blob you are running.

I checked my Pi4:

Code: Select all | TOGGLE FULL SIZE
pi@pidev:~ $ sudo vcgencmd version
Feb 25 2021 12:10:40
Copyright (c) 2012 Broadcom
version 564e5f9b852b23a330b1764bcf0b2d022a20afd0 (clean) (release) (start)


I updated my packages index and and rpi-update, but it looks as though it is tied to kernel releases so I'll need to do a full update to see the latest rpi-update firmware blob go in.
Code: Select all | TOGGLE FULL SIZE
$ sudo apt-get update
Get:1 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]                                                                             
Get:3 http://archive.raspberrypi.org/debian buster InRelease [32.9 kB]                                             
Get:4 http://packages.microsoft.com/repos/code stable/main arm64 Packages [27.1 kB]
Get:5 http://packages.microsoft.com/repos/code stable/main armhf Packages [27.1 kB]
Get:6 http://packages.microsoft.com/repos/code stable/main amd64 Packages [26.5 kB]
Get:7 http://archive.raspberrypi.org/debian buster/main armhf Packages [375 kB]
Fetched 514 kB in 2s (209 kB/s)   
Reading package lists... Done
pi@pidev:~ $ sudo rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 5.10.17-v7l+
#############################################################
WARNING: This update bumps to rpi-5.10.y linux tree
See: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=288234
'rpi-update' should only be used if there is a specific
reason to do so - for example, a request by a Raspberry Pi
engineer or if you want to help the testing effort
and are comfortable with restoring if there are regressions.

DO NOT use 'rpi-update' as part of a regular update process.

##############################################################
Would you like to proceed? (y/N)
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168  100   168    0     0    852      0 --:--:-- --:--:-- --:--:--   848
100  120M    0  120M    0     0  6326k      0 --:--:--  0:00:19 --:--:-- 6689k
 *** Updating firmware

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.