When someone want to dual boot Windows and Linux, and use Bluetooth mouse or headset/speaker, it will not connect at both side because of the pair key inconsistence between Windows and Linux System. Addtional to original solution, the script create a simple GUI interface with whiptail/dialog to help user copy windows key to linux.
- KDE Neon 5.22
- Windows 10 21H1
The script need root privilege to modify the key stored in /var/lib/bluetooth, so please run with sudo
sudo ./helper.sh <WINDOWS_DIRECTORY>
ex. sudo ./helper.sh /mnt/win/Windows
This Instruction is for ubuntu based system, others distro will not work!
- Pair device in Linux
- Pair device in Windows
- Back to Linux
- Install chntpw
sudo apt install chntpw
- if Windows Partition not mounted, mount Windows Partition, suppose mount
sda3
at/mnt/win
sudo mount /dev/sda3 /mnt/win
- execute
helper.sh
sudo ./helper.sh /mnt/win/Windows