victorzhuli的个人博客分享 http://blog.sciencenet.cn/u/victorzhuli

博文

Pairing Bluetooth Devices to Both macOS and Ubuntu on Mac

已有 2317 次阅读 2017-5-25 08:11 |系统分类:科研笔记| Linux, mouse, wireless, keyboard

I was pretty frustrated after installing the Ubuntu on my Macbook Pro as dual boot system, because my Apple Wireless Magic Mouse/Keyboard cannot be paired with bothOS, i.e., when they were paired with macOS, they lost the pairing after rebooting to Ubuntu, and verse vise.


After almost half a day’s search, I finally got a solution to perfectly solve out the problem.


1. Pair the devices to Ubuntu.


2. Pair the devices to macOS.


3. Under macOS, in the terminal, run: sudo defaults read/private/var/root/Library/Preferences/blued.plist, write down the MAC and linkkeys for each device.


4. Under Ubuntu,  go to thedirectory /var/lib/bluetooth/XXXXX, inwhich XXXXX represents a folder named after the machine’s bluetoothMAC.


5. For each device to be paired, there will be a directory named after that device’s MAC. Go to the directory, there will be a file named “info”. Replace the linkkeys in this file with the linkkeys found in the macOS. Do this process for each device.


6. Reboot and enjoy.


I am running Ubuntu 16.04 and macOS Sierra 10.12.



https://blog.sciencenet.cn/blog-1251593-1056952.html


收藏 IP: 165.230.225.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-28 17:40

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部