Use Bluetooth 3.0 device on dual-booting(windows and Linux) by 1-time connection setting

이 포스트 한글로 읽기

In part of a user using dual booting frequently, when having Bluetooth device above 2, I must set the devices newly in each OS. At first, it was no problem for me. However, after doing so many times, I didn’t want to waste my time with Bluetooth pairing anymore. Thus, I started to think about the way setting only 1-times Bluetooth 3.0 devices on dual-booting.

The reason that I emphasize Bluetooth 3.0 device is that Bluetooth 4.0 device does not work by using this way.

When I work on the computer, I usually use 3 Bluetooth device, which is 2 keyboards and 1 mouse. At first, I thought “Because of my keyboard support multi-device connection, by mapping of different connection numbers, the devices are able to connect many devices.” After trying to connect the device on devices many times, I realized that a computer uses to identify MAC address of Bluetooth device to connect the device. Also, I realized that this method did not work.

In this post, I’ll share how to use a Bluetooth 3.0 device with both OSs in one pair on dual boot (Windows and Linux).

1. Connect devices on Linux/Windows

Connect Bluetooth devices like normally. The connection order must be Linux->Windows.

2. Export registry value on Windows

  1. After setting the connection on Windows, click the Windows button. And search regedit and then run registry editor with ** Administrator privileges**.

2. Change directory to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BTHPORT\Parameters\Keys\{MAC Address of my computer}

3. Click the right mouse on {MAC Address of my computer} and run export.

4. Save the file on Desktop, Document or etc....

5. Open the file by using Notepad.

6. Click Save as other names and after setting encoding to UTF-8, save the file.

7. Copy the saved file to Linux by USB, mail, etc.

3. Setting Bluetooth Key value of Windows on Linux

  1. Check the contents of the copied file in Windows.

2. Move to /var/lib/bluetooth/ directory, then ls to move to the {MAC Address of my computer} folder seen in Windows.

3. Change the Key value in the info file in the {device name} folder in /var/lib/bluetooth/{MAC Address of my computer} to the key-value, you copied from Windows.

Modify the Key value of all devices to be connected.

4. Restart Bluetooth service.

Once you have completed the above steps, you will be able to verify that the connection is successful without automatically re-pairing when you boot Windows and Linux.

--

--

I primarily write about solving problems about computer engineering and personal stories.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Juhee Kang

I primarily write about solving problems about computer engineering and personal stories.