That is an excellent question, and your intuition is spot on. You've correctly identified the general area of the problem. It's not just a simple failure to reset; it's a conflict over persistent state stored on the Bluetooth adapter itself.
Let's break down what happens at a low level.
The Core of the Problem: The Link Key Mismatch
The issue almost always boils down to the Bluetooth Link Key.
-
What is a Link Key? When you pair a Bluetooth device (like your mouse or headphones) with your computer, they perform a security handshake. They exchange information and generate a shared secret key, called a "Link Key." This key is like a long-term password. From then on, whenever the two devices want to connect, they use this Link Key to authenticate each other and encrypt their communication.
-
Where is the Link Key Stored? This is the crucial part. The Link Key is stored in two places:
- On the Operating System: The OS (Windows, Linux, macOS) keeps a list of paired devices (identified by their unique MAC address) and the corresponding Link Key for each.
- On the Bluetooth Adapter's Hardware: The Bluetooth adapter on your computer has its own small amount of non-volatile memory. It also stores the Link Key for the device it's paired with.
The Dual-Boot Vicious Cycle
Here’s the step-by-step scenario that creates the problem:
-
Pairing in OS #1 (e.g., Windows):
- You boot into Windows and pair your Bluetooth headphones.
- A new Link Key is generated (let's call it
KEY_A).
- Windows stores
KEY_A in its registry, associating it with your headphones' MAC address.
- The Bluetooth adapter on your computer stores
KEY_A in its internal memory.
- Everything works perfectly in Windows.
-
Rebooting into OS #2 (e.g., Linux):
- You boot into Linux. Your headphones are not paired with Linux yet.
- You initiate the pairing process again.
- This is the conflict: Since this is a new pairing request from a different OS, a completely new Link Key is generated (let's call it
KEY_B).
- Linux stores
KEY_B in its configuration files (e.g., in /var/lib/bluetooth/...).
- The Bluetooth adapter overwrites its old key. It discards
KEY_A and now stores KEY_B.
- Everything now works perfectly in Linux.
-
Rebooting Back into OS #1 (Windows):
- You boot back into Windows.
- Windows sees your headphones and tries to connect. It looks up its stored key,
KEY_A, and presents it to the adapter.
- However, the Bluetooth adapter's memory now holds
KEY_B (from the Linux session).
- The keys don't match! The adapter rejects the connection from Windows. The pairing is now considered "broken."
- You are forced to remove the device and re-pair it in Windows, which generates a new key, overwrites the key on the adapter again, and in doing so, breaks the pairing for Linux.
You are now stuck in a loop where you have to re-pair the device every time you switch operating systems.
Your Hypothesis: "Reset or Initialization"
You were very close. The device is being re-initialized by each OS's driver when it boots. The problem is that part of its "state"—the Link Key—is designed to be persistent across reboots. This is a feature, not a bug, as it saves you from having to re-pair your devices every time you turn your computer on. The design simply didn't account for two different operating systems trying to manage that persistent state independently.
A Less Common, but Related Issue: Firmware Loading
Some Wi-Fi/Bluetooth combo cards require the OS to load a specific firmware blob into the device's RAM on startup to function correctly. It's possible for one OS to load a certain version of the firmware, and if the computer isn't shut down cleanly (e.g., a hard reset), the device might not be in a clean state when the next OS boots. The second OS might then fail to load its own, potentially different, firmware. This is less common for pure Bluetooth issues but can contribute to general instability, especially with combo cards. The link key problem, however, is the definitive cause for the specific "have to re-pair" symptom.
The Solution: Make Both OSs Use the Same Key
Since the problem is that the two OSs are generating different keys, the solution is to force them to use the same key. This involves a bit of manual, low-level work:
- Pair the device in one OS (usually Windows is easier to get the key from).
- Extract the Link Key from that OS's storage (e.g., from the Windows Registry using special tools like
psexec).
- Boot into the other OS (Linux).
- Manually insert the extracted key into Linux's Bluetooth configuration files, replacing the one Linux generated. You may need to convert the key format.
- Restart the Bluetooth service in Linux.
Now, both Windows and Linux have the same Link Key on file. When you switch from Windows to Linux, Linux will present the correct key to the adapter, and the connection will succeed without re-pairing. The same is true when going back to Windows.
This process essentially tricks the two operating systems into thinking they are part of a single, coherent system from the Bluetooth adapter's perspective. The Arch Linux Wiki has a famous and very detailed guide on how to perform this exact procedure.