Logo Neurocoda

Sharing Bluetooth Devices Across Operating Systems

Neurocoda
Neurocoda
2026-07-03 12:47:23 394 Words 2 Mins ...

私の環境:

Ubuntu : Ubuntu 24.04 Desktop
Windows : Windows 11

要点は、あるシステムでペアリングしたBluetoothデバイスのMACアドレス、LTK、IRKを取得し、その情報を他のシステムのレジストリに書き込むことです。

まずUbuntuでBluetoothデバイスをペアリングし、次にWindowsでペアリングすることで、両方のシステムにそのBluetoothデバイスの情報を保存します(その後はAddress、LTK、IRKのみを変更する必要があります)。そして、現在のWindowsでそのBluetoothデバイスを使用できるようにします。

Windowsの設定

以下をダウンロード:https://learn.microsoft.com/zh-cn/sysinternals/downloads/psexec?ref=xavier.wang

ダウンロード後、管理者権限でPowerShellを開き、そのプログラムのディレクトリで以下のコマンドを実行してレジストリを開きます。

.\PsExec.exe -s -i regedit

レジストリエディタで以下のパスに移動します。

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BTHPORT\Parameters\Keys\<PCのMACアドレス>\<BluetoothデバイスのMACアドレス>

その中のLTK、IRK、Bluetoothデバイスのアドレスをメモします。

Ubuntuの設定

Ubuntu上で:

Bluetoothデバイスのアドレスは、Windowsで確認したものに近いアドレスです(デバイスをリセットするたびにアドレスが変わり、通常は+1されます)。

cd /var/lib/bluetooth/<ホストMACアドレス>/<Bluetoothデバイスのアドレス>

infoファイルを確認します。

[General]
Name=ERGO M575
Appearance=0x03c2
AddressType=static
SupportedTechnologies=LE;
Trusted=true
Blocked=false
Services=00001800-0000-1000-8000-00805f9b34fb;00001801-0000-1000-8000-00805f9b34fb;0000180a-0000-1000-8000-00805f9b34fb;0000180f-0000-1000-8000-00805f9b34fb;00001812-0000-1000-8000-00805f9b34fb;00010000-0000-1000-8000-011f2000046d;
[IdentityResolvingKey]
Key=8FC6396AB31C0E6AB68E37ED5BB7CC72
[SlaveLongTermKey]
Key=313498DE3D05749C6B20D393BEF36FB1
Authenticated=2
EncSize=16
EDiv=0
Rand=0
[ConnectionParameters]
MinInterval=6
MaxInterval=9
Latency=44
Timeout=216
[DeviceID]
Source=2
Vendor=1133
Product=45095
Version=9
[ServiceChanged]
CCC_LE=2

IdentityResolvingKey(IRK)とSlaveLongTermKey(STK)を変更します。

変更後、<Bluetoothデバイスのアドレス><Windows上のBluetoothデバイスのアドレス> にリネームし、システムを再起動します。

参考:

https://www.insanelymac.com/forum/topic/268837-dual-boot-bluetooth-pairing-solved/page/2/
https://www.insanelymac.com/forum/topic/318483-keep-bluetooth-devices-paired-once-between-macwindows/page/2/
https://bbs.pcbeta.com/viewthread-1034129-1-1.html
https://github.com/digitalbirdo/BT-LinkkeySync/tree/master
https://ubuntuforums.org/showthread.php?t=1479056

Title: Sharing Bluetooth Devices Across Operating Systems Author: Neurocoda Created at: 2026-07-03 12:47:23 Link: https://neurocoda.com/ja/posts/sharing-bluetooth-devices-across-operating-systems-ja/ License: This work is licensed under CC BY-ND 4.0.

Comments