# Bluetooth Security Bug - Xbox Controller

**URL:** <https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768>\
**Category:** Uncategorized\
**Created:** [28 November 2022 06:05 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768 "2022-11-28T06:05:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel146726](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@Daniel146726](https://forum.core-electronics.com.au/u/Daniel146726)\
**Post date:** [28 November 2022 06:05 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768/1 "2022-11-28T06:05:45Z")

</div>

Hey all,

So Ive been trying to pair my xbox controller with retropie but it just wont work, I followed the tutorial on this link but I still get the "An error occurred connecting to the bluetooth device (Creating device Failed: org.bluez.Error.ConnectionAttemptFailed: Page Timeout)

I thought I did everything correctly with the instructions but clearly I’ve missed something is anyone able to help me solve this Cheers

below is the link to fix the Bluetooth Security Bug.

> **[Workaround for the RetroPie Bluetooth Security Bug - Tutorial Australia](https://core-electronics.com.au/guides/retropie/workaround-for-the-retropie-bluetooth-security-bug/)**
>
> The Problem:
> You may find that while setting up RetroPie on your Raspberry Pi that pairing new Bluetooth controllers results in something like:
> 
> During the "Please choose the security mode - Try the first one, then second if that fails", RetroPie...

Heres a few screenshots to show you what my Config files look like after the edits.

> **[20221128-161525](https://ibb.co/rwRKTCw)**
>
> Image 20221128-161525 hosted in ImgBB

> **[20221128-161544](https://ibb.co/zxMmV7q)**
>
> Image 20221128-161544 hosted in ImgBB

> **[20221128-161946](https://ibb.co/KVp8cGy)**
>
> Image 20221128-161946 hosted in ImgBB

---

<div class="post-metadata">

**Author:** ![Daniel146726](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@Daniel146726](https://forum.core-electronics.com.au/u/Daniel146726)\
**Post date:** [30 November 2022 01:25 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768/2 "2022-11-30T01:25:27Z")

</div>

![](https://lh6.googleusercontent.com/0_2NIPIISjAy-LyN3cV_dm7W6UTA5dvdCJi3Q9_j9qK61rN499Z_5vSfcnl2M2QC74IhBYcBFZhPosfY8D8xuwhm-9_WoXnpM8oPnXDztUTT-voAAxd22Zb9cud2LUBbH3uaxhQms5ZaojJfrEOtVg9dUIjIB7E2LRff-Kov8Ja5ZlOUtaPZ-oqLFS66Lw)

---

<div class="post-metadata">

**Author:** ![Daniel146726](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@Daniel146726](https://forum.core-electronics.com.au/u/Daniel146726)\
**Post date:** [30 November 2022 01:26 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768/3 "2022-11-30T01:26:06Z")

</div>

this will fix any bluetooth issues, I only needed this command to fix the security bug.

happy to resolve this issue.

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [30 November 2022 23:37 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768/4 "2022-11-30T23:37:17Z")

</div>

Hi Daniel,

Thanks a ton for sharing your solution!

Bluetooth is a bit of a mess once you get down into the weeds with it, we need all the tips and tricks we can get our hands on to make it easier 🙂

-James

---

<div class="post-metadata">

**Author:** ![Daniel146726](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@Daniel146726](https://forum.core-electronics.com.au/u/Daniel146726)\
**Post date:** [1 December 2022 09:58 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768/5 "2022-12-01T09:58:31Z")

</div>

Hey James,

No worries at all yeah I cant tell you how many issues I’ve ran into with my raspberry pi, although in saying that I’ve heard the issues are to do with the case I’m using so that doesn’t help.

when I boot up the Pi from a cold boot I get no HDMI signal I get the solid red light but no green light its super weird, I have to let the pi boot up without the HDMI cable in and then plug it in 5 minutes after I’ve booted the pi then the green light emits on the Pi.

yet If I reboot the pi with sudo reboot -h now it reboots perfectly fine work that out -\_-

as with bluetooth I ended up watching several bluetooth videos, and I was about ready to give up until I tackled the issue with a different approach and ended up solving the issue 😃

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [2 December 2022 00:25 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768/6 "2022-12-02T00:25:58Z")

</div>

Hi Daniel,

That is an odd HDMI error, perhaps it could be something to do with how the Pi detects the HDMI mode it is supposed to run in when trying to communicate with your monitor. There are [some details on how HDMI groups work here](https://www.raspberrypi.com/documentation/computers/configuration.html#hdmi-groups-and-mode), it might be worth trying a different monitor if you have one handy, just to see if you get the same behaviour.

I totally get what you mean with BlueTooth, it is simultaneously my favourite and least favourite protocol since sometimes it works effortlessly, and other times it needs me to turn my car engine off and on again just to relink my phone which has been connected fine for months.

---

<div class="post-metadata">

**Author:** ![Daniel146726](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@Daniel146726](https://forum.core-electronics.com.au/u/Daniel146726)\
**Post date:** [2 December 2022 00:35 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768/7 "2022-12-02T00:35:53Z")

</div>

Hi Trent,

So I have decided to strip the Pi from the argon case just to see if i could eliminate the case being the cause of the issue, and I have found that the issue is still there even just with the Pi.

I just have a Solid red light indicating the pi has sufficient power, I have also tried the Pi on several monitors and they all have the same result so I am thinking that the issue is either the OS or the Pi itself.

The strange thing is the Pi will boot If the HDMI cable is out then I plug it back in but wont if the power and video are plugged in at the same time?

---

<div class="post-metadata">

**Author:** ![Daniel146726](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@Daniel146726](https://forum.core-electronics.com.au/u/Daniel146726)\
**Post date:** [2 December 2022 07:27 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768/8 "2022-12-02T07:27:44Z")

</div>

Update the Pi the SD card has completely died hoping this was the issue as I tried formatting the SD card on a windows PC and windows is unable to format it and is only seeing the card as 112MB when its a 64GB card.

heres the boot loader error " unable to read FAT partition even though I used Pi Imager to format and install retropie, so windows should of seen as a FAT32 File system \>\_\<

> **[piSDFail](https://ibb.co/v4Yyp3F)**
>
> Image piSDFail hosted in ImgBB

---

<div class="post-metadata">

**Author:** ![Jeff105671](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jeff105671/32/3729_2.png) [@Jeff105671](https://forum.core-electronics.com.au/u/Jeff105671)\
**Post date:** [2 December 2022 08:58 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768/9 "2022-12-02T08:58:54Z")

</div>

The imager will create a small FAT32 partition and a large Linux partition for the rest of the card which Windows cannot use. So what you are seeing in Windows is correct. You should post the image again in a larger size, as currently it is too small to be read.

---

<div class="post-metadata">

**Author:** ![Daniel146726](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@Daniel146726](https://forum.core-electronics.com.au/u/Daniel146726)\
**Post date:** [6 December 2022 09:44 UTC](https://forum.core-electronics.com.au/t/bluetooth-security-bug-xbox-controller/15768/10 "2022-12-06T09:44:54Z")

</div>

Issue have been resolved happy to close post.

[![](https://lh6.googleusercontent.com/0_2NIPIISjAy-LyN3cV_dm7W6UTA5dvdCJi3Q9_j9qK61rN499Z_5vSfcnl2M2QC74IhBYcBFZhPosfY8D8xuwhm-9_WoXnpM8oPnXDztUTT-voAAxd22Zb9cud2LUBbH3uaxhQms5ZaojJfrEOtVg9dUIjIB7E2LRff-Kov8Ja5ZlOUtaPZ-oqLFS66Lw) ](https://lh6.googleusercontent.com/0_2NIPIISjAy-LyN3cV_dm7W6UTA5dvdCJi3Q9_j9qK61rN499Z_5vSfcnl2M2QC74IhBYcBFZhPosfY8D8xuwhm-9_WoXnpM8oPnXDztUTT-voAAxd22Zb9cud2LUBbH3uaxhQms5ZaojJfrEOtVg9dUIjIB7E2LRff-Kov8Ja5ZlOUtaPZ-oqLFS66Lw)
