Synchronizing bluetooth keys across systems

:pushpin:Question Description

Have you searched the community for related issues?

  • [ x] No similar issues found.

Please describe the problem you’ve encountered in detail:

  • Description: I run a dual boot system and currently need to re-pair my bluetooth mouse and speaker each time I switch to a new OS. I’d like to avoid this by sharing the bluetooth pairing key of each device between the two OSes.
  • I need to know where bluetooth sync keys are stored on FydeOS 20.0.
  • I intend to enter a bash shell from crosh, log in as root (with sudo -i), to access the required directories. My machine is already in Developer mode, thanks to this previous guidance.

If there’s a simpler way to avoid re-pairing bluetooth devices each time I switch OSes, then please suggest it!


:computer:System & Device Information

  • Hardware & System Configuration:
    • Processor: AMD Ryzen 7 5700U
    • Graphics Card Integrated Radeon Graphics
    • RAM: 32Gb
    • FydeOS Version: 20.0

Users of multiboot systems often have problems using their bluetooth devices because they do not always connect automatically as you swap between operating systems. A common solution is to copy the bluetooth synchronisation keys from one OS to the other(s). In my case, I wish to copy the FydeOS sync key to my Linux system.

This blog post provides detailed instructions on the steps required to do this across Linux, Windows and MacOS systems. However, the path names and file structures listed under Linux do not seem to correspond with what I am seeing in FydeOS 20.0. I was not expecting the two OSes to be identical but hoped that they would be broadly similar enough for me to use the blog instructions to achieve what I want.

For example, the bluetooth folder in Linux should be here:

/var/lib/bluetooth/<MAC_ADDRESS>/<DEVICE_MAC>

where MAC_ADDRESS is the PC’s internal Bluetooth adapter MAC address and DEVICE_MAC is the external device’s MAC address (mouse, speaker etc). There should be an info file in that directory that contains a LinkKey entry that looks like this:

[LinkKey]
Key=B3798087E81E306CDAB046...

Things look different in my FydeOS:

  1. The pathname is slightly different
/var/lib/bluetooth/<MAC_ADDRESS>/settings
  1. This settings file contains only
[General]
Powered=true
  1. There is only one MAC address directory despite me having paired two bluetooth devices.

I might be looking in the wrong place, of course.

Can anyone help me figure out where the bluetooth pairing keys are stored in FydeOS 20.0, or make any other suggestion about how to avoid having to re-pair bluetooth devices each time I switch to a different OS.

Thanks.