# dual-boot-bluetooth-pair **Repository Path**: saebalee/dual-boot-bluetooth-pair ## Basic Information - **Project Name**: dual-boot-bluetooth-pair - **Description**: No description available - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-06-25 - **Last Updated**: 2025-11-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > I have moved away from using Windows / Linux for my desktop OS so I am no longer maintaining this repo. Feel free to fork and take it over :) # Dual Boot Bluetooth Pair This is a tool I use to pair a bluetooth device with my Windows OS and Linux Mint 17 OS on my dual boot laptop. ## Disclaimer > This script involves accessing and modifying system files on the Windows / Linux systems and may risk damaging your computer. Proceed with the below steps at your own risk. ## Instructions > I recommend backing up all config files before attempting the below steps. The scripts in this project are intended to be executed on your Linux OS using [Python3](https://www.python.org/). 1. Boot into Linux and pair bluetooth device(s). 2. Reboot into Windows and pair bluetooth device(s). 3. Download [PSExec](http://live.sysinternals.com/psexec.exe) and run the following command from a Command Prompt running in Administator mode: ``` psexec.exe -s -i regedit /e C:\BTKeys.reg HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Keys ``` 4. Copy the `C:\BTKeys.reg` file to a USB key (or leave on `C:` drive if it's accessible from the Linux OS). 5. Turn off bluetooth device(s) and boot back into Linux. 6. Copy the `BTKeys.reg` file to your Linux filesystem. 7. Run `clean_reg_file.py /path/to/BTKeys.reg keys.reg` to clean the file (converts encoding to UTF8 and strips quotation marks). 8. Run `bluetooth_fix.py --reg_path keys.reg`. 9. From a terminal with `sudo`, navigate to `/var/lib/bluetooth//` and use `ls` to get the mac addresses similar to the bluetooth device you are trying to pair, and re-name the directory to the new mac displayed in the output from step 8. 10. Open `/var/lib/bluetooth///info` and modify the values as per output from step 8. 11. Restart bluetooth with `sudo systemctl restart bluetooth`.