{"id":375,"date":"2020-05-30T11:31:14","date_gmt":"2020-05-30T03:31:14","guid":{"rendered":"https:\/\/sinofool.net\/blog\/?p=375"},"modified":"2020-05-30T13:31:44","modified_gmt":"2020-05-30T05:31:44","slug":"share-bluetooth-mouse-between-dual-boot-win10-linux","status":"publish","type":"post","link":"https:\/\/sinofool.net\/blog\/archives\/375","title":{"rendered":"Share bluetooth mouse between dual boot Win10\/Linux"},"content":{"rendered":"\n<p>I have recently wiped my old laptop with dual boot Win10 and Arch Linux. My bluetooth mouse can store 3 paired devices but it will be nice to use the same slot.<\/p>\n\n\n\n<p>Thanks to <a href=\"https:\/\/unix.stackexchange.com\/questions\/255509\/bluetooth-pairing-on-dual-boot-of-windows-linux-mint-ubuntu-stop-having-to-p\">stackexchange<\/a>, I found it is possible. But some updates are needed.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Windows Regedit will not show content of <code>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\BTHPORT\\Parameters\\Keys<\/code> No additional tools are needed as other posts, just &#8220;Export&#8221; it. The subkey values will be in the exported file.<\/li><li>The key is not a single hex string, there are 4 of them: <code>IRK<\/code>, <code>LTK<\/code>, <code>EDIV<\/code> and <code>ERand<\/code>. They mapped to <code>\/var\/lib\/bluetooth\/[Adapter MAC]\/[Device MAC]\/info<\/code>keys <code>IdentityResolvingKey\/Key<\/code>, <code>LongTermKey\/Key<\/code>, <code>LongTermKey\/EDiv<\/code> and <code>LongTermKey\/Rand<\/code><\/li><li><code>EDIV<\/code> is a DWORD on Windows but decimal for Linux. For my case, I converted <code>\"EDIV\"=dword:0000c8ae<\/code> to <code>EDiv=51374<\/code><\/li><li><code>ERand<\/code> needs conversion as well, two bytes to decimal, <code>\"ERand\"=hex(b):e4,26,8e,2f,52,4d,a7,5a<\/code> to <code>Rand=58406363992106942842<\/code><\/li><\/ol>\n\n\n\n<p>As other posts reminded, keep the device off when boot Linux.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have recently wiped my old laptop with dual boot Win10 and Arch Linux. My bluetooth mouse can store 3 paired devices but it will be nice to use the same slot. Thanks to stackexchange, I found it is possible. But some updates are needed. Windows Regedit will not show content of HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\BTHPORT\\Parameters\\Keys No additional [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-375","post","type-post","status-publish","format-standard","hentry","category-tech"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts\/375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/comments?post=375"}],"version-history":[{"count":2,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts\/375\/revisions"}],"predecessor-version":[{"id":377,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts\/375\/revisions\/377"}],"wp:attachment":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/media?parent=375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/categories?post=375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/tags?post=375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}