2023/11/11

デュアルブート環境(Windows10とLinux)でBluetoothのペアリングをする


Windows10側の操作


PSToolsをダウンロード・展開する
展開した場所でPowerShellを管理者権限で起動してコマンド実行
./psexec.exe -s -i regedit /e C:\bluetooth.txt HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Keys
bluetooth.txt
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Keys]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Keys\5041xxxxxxxx]
"3818xxxxxxxx=hex:92,a2,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx

1台のBluetoothマウスをマルチブート環境で使う方法 #Windows - Qiita


Linux(ULMDE6)側の操作

レシーバのmacアドレスを表示
bluetoothctl list
ペアリングしているデバイスのmacアドレスを表示
bluetoothctl devices
infoファイル
/var/lib/bluetooth/{レシーバのmacアドレス}/{デバイスのmacアドレス}/info
バックアップ
sudo cp /var/lib/bluetooth/50:41:XX:XX:XX:XX/38:18:XX:XX:XX:XX/info /var/lib/bluetooth/50:41:XX:XX:XX:XX/38:18:XX:XX:XX:XX/info.bak

sudo cat /var/lib/bluetooth/50:41:XX:XX:XX:XX/38:18:XX:XX:XX:XX/info

[LinkKey]
Key=D101XXXXXXXXXXXXXXXXXXXXXXXXXXXX
Type=4
PINLength=0
[LinkKey]のKey=をWin側で出力した値に書き換える
sudo nano /var/lib/bluetooth/50:41:XX:XX:XX:XX/38:18:XX:XX:XX:XX/info
Bluetoothデーモンの再起動
sudo systemctl restart bluetooth

Linux/Windowsのデュアルブート環境でBluetoothやBLEのデバイスを共有する方法 - Blanktar

小文字(英字)→大文字(英字) | 文字変換サイト(無料)|アルファベット・英語|a small letter is converted to a big letter

テキスト整形(重複行削除・ソート・カウント)ツール