Your mouse supports pairing with only one device at a time. When you pair it with PC-A, your mouse stores a link key which is shared with PC-A and is used to establish an encrypted connection. When you are trying to use the mouse with PC-B, the link key stored inside the mouse doesn't match with the one on PC-B, so you're required to pair your mouse again, generating a new link key. This breaks the pairing with PC-A, and so on.
However, it is possible to pair your mouse with both PC-A and PC-B if you use the same link key on both. In order to do this, you'll need to fulfill two conditions:
- PC-A and PC-B should have the same Bluetooth MAC address
- PC-A, PC-B and your mouse should share the same link key
The first condition can be achieved by buying a USB Bluetooth dongle you'll carry along with your mouse and plug into PC-A and PC-B when necessary. Plug this dongle into PC-A and pair your mouse with it.
The second condition will require you to export and import the link key. To export the link key from PC-A, start regedit
and navigate to the following registry location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters\Keys
The location will most probably be empty, because by default only SYSTEM
user has the right to read it. Right-click on the entry, select Permissions...
and give your user full access to Keys
.
Under Keys
, you'll find entries corresponding to Bluetooth interfaces your computer has. Identify the one corresponding to the USB dongle (it will have a single link key corresponding to your mouse, provided you didn't pair anything else yet). Export that entry to a file.
Then, you'll need to import the registry export on PC-B, which is usually done by double-clicking the .reg
file. Then restart the computer and the mouse should connect to it without pairing.
You'll need administrator rights on both computers to do this, and both computers should be using Microsoft Bluetooth stack.
I have tested this solution using hardware and software at my disposal, which is substantially different from yours:
- PC-A: an x86 laptop running Windows XP
- PC-B: a Banana Pi Pro running Debian 8 and BlueZ 5.23
- Dongle: Logilink BT0015
Have you tried it personally? I 'found this method on the Internet before but it is not working. – Bilo – 2016-03-03T15:10:32.917
No, I don't have Windows 10. Could you describe what exactly is not working? Can you find the link key from your mouse? Can you export/import it? What happens then? – Dmitry Grigoryev – 2016-03-03T16:13:00.427
1Also, you could have mentioned things you have tried in your question. That would save everyone's time. – Dmitry Grigoryev – 2016-03-03T16:27:30.367
I just found out why it is not working, when I go through again some material on the Internet, this method is supposed to work on the same machine with different OS only, but not for different machine. – Bilo – 2016-03-04T02:04:26.807
I don't see why different machines should matter, this diagram suggests it shouldn't. I will test it this weekend though.
– Dmitry Grigoryev – 2016-03-04T06:59:05.803This is because after
Keys
there still some random sub key, I have tried to rename the subkey but it is still not working, I didn't mention it on the question because I found this method was done in Windows 7, I think this may be obsoleted. – Bilo – 2016-03-04T10:46:45.013Have you tried it yet? I am looking for your finding, thanks. – Bilo – 2016-03-08T05:51:16.687
I went through the procedure and updated my answer accordingly. It worked with two different computers (armv7 running debian 8 and x86 running windows XP) which shared the same USB BT dongle. That's the bad news: you'll have to buy a dongle for this to work. – Dmitry Grigoryev – 2016-03-08T23:07:54.330