Skip to content

Script to copy Bluetooth Key and MAC address of a device from Windows to Linux

Notifications You must be signed in to change notification settings

maanh96/dbBluetooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Sync Bluetooth Key

Script to copy Bluetooth Key and MAC address of a device from Windows to Linux so that the device can work in both systems without re-paring.

I create this for personal use since bt-dualboot has not yet worked with my Bluetooth LE (Low Energy) devices. I try to keep it as simple as possible so for specific case you might want to check this ArchWiki page first.

Using

  1. Pair and connect the device in Linux FIRST

  2. Pair and connect the device in Windows

  3. Boot to Linux

  4. Mount Windows partition

  5. Install chntpw on Linux to read registry file

    sudo apt install chntpw 
    
  6. Download dbBluetooth.py and requirement.txt and save it to a new folder

  7. In this folder, create a virtual environment to install required packages

    python3 -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
    
  8. Still in the folder, run script with sudo privileges (to gain access to /var/lib/bluetooth/)

    sudo ./dbBluetooth.py
    
  9. Rebooting

    (You can try restart bluetooth service first using systemctl restart bluetooth but in my case the device only works after rebooting)

Credit

About

Script to copy Bluetooth Key and MAC address of a device from Windows to Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages