-
Pair your bluetooth périphérique(s) in Linux.
-
Reboot into Windows, and pair your same bluetooth périphérique(s) in Windows.
-
Run regedt32.exe. Naviguez vers "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters\Keys"
-
Faites un clic droit sur le "Keys" dossier dans le lefthand pane du chemin above, and sélectionner "Export." In the pop-up dialog, change "Save as type" to "Text fichiers," be sure that the "Export range" radio bouton "Selected branch" is sélectionné, and save the fichier to your choice of name and location.
Note 1. For this purpose c'est convenient if you've déjà configuré a drive partition that's shared entre your two OS, but c'est not absolutely necessary, as vous pouvez use a thumb drive to transfer the fichier également.
Note 2: Si vous have trouble exporting the dossier, clic droit sur le dossier, sélectionner Permissions, and add Users vers le groups that can read and edit the dossier.
P.S. If vous n'avez pas see clés ensuite go sur le [HKLM\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Keys] dossier clic droit and cliquez sur 'Permissions' , add your windows utilisateur and give it 'Full Control' Vous devriez be able to see the pairing clés ensuite.
-
Maintenant redémarrer into Linux.
-
Open a invite de commandes in Linux tapez sudo caja (if vous êtes not running Linux avec MATE, vous pouvez have a different fichier manager; substitute as necessary) and enter your mot de passe at the prompt. Cela va open a fichier manager avec SU rights, so handle avec care ... I'm not responsible si vous brick your système!
-
Naviguez vers /var/lib/bluetooth. Inside of this dossier vous allez see one or both of two things -- either a single dossier named avec a single MAC address (of your ordinateur's bluetooth adapter) or multiple dossiers, each avec its own MAC address, for each paired bluetooth périphérique (the MAC address sera dans le format XX:XX:XX:XX:XX:XX). Si vous find seulement the single dossier, dossiers avec those individual MAC addresses sera inside the first adapter dossier.
-
Ouvrez le dossier containing the MAC address du périphérique you wish to pair in dual-boot mode. Inside that dossier sera one or two fichiers ... the one you care about is the "info" fichier. Double-cliquez on it and it will open in a text editor avec SU rights -- that is, vous allez be able to edit it and save it. (by the way, if vous êtes not sure which périphérique vous êtes looking for, the "info" fichier contains the plain-English périphérique name, so just open each one in turn till you trouvez le right one).
-
Open a separate (non-SU) instance of your fichier manager, and use it to ouvrez le text fichier you saved from Windows in another pane. When you double-cliquez on that fichier, Linux may ask si vous want to execute or edit it ... choose to edit.
-
The Windows registry export will contain multiple stanzas (one for each périphérique) that look like this (ne worry, I've changed to a bogus MAC and clé):
Value 1 Name: 0008e024d45e Type:
REG_BINARY Data: 00000000 31 c0 08 fa 4f 7b d2 4c
- 6f e1 7d ba 32 29 a9 a7 1À.ïO{ÒLoá}ºQ)©§
-
Trouvez le stanza containing the valeur sur le "Name:" line which corresponds the MAC address du fichier you have open dans le first (SU) pane. Notez que dans le Windows fichiers, the format du MAC address uses lower-case letters à la place of upper-case, and il y a no colons.
-
Your Bluetooth pairing clé is the string dans le line that begins "00000000" and ends avec a bunch of gibberish. Don't copy either the zeros or the gibberish, just the string in-entre containing the 16 hex codes avec the dash dans le middle.
-
Insert that clé invers le "Key=" line in your "info" fichier. Vous pouvez copy and paste si vous want (I did), but vous devez change lower-case letters to upper-case, and supprimer all spaces and dashes. In the example above, the resulting line will look like this:
Key=31C008FA4F7BD24C6FE17DBA3229A9A7
- Maintenant save the fichier, repeat for any additional périphériques. Reboot into Windows, your périphérique should maintenant work. Reboot into Linux, it should également work.
Good Luck