How to use Apple bluetooth keyboard with multiple computers via a KVM


It’s easy to share traditional keyboards between multiple computers using a USB KVM. Obviously, with a bluetooth keyboard, things aren’t so simple.

I wanted to share my Apple bluetooth keyboard between my Mac mini and my desktop computer (running Ubuntu, but this would work with Windows).

First step was to get a USB bluetooth dongle and plug that into the KVM. Any USB dongle should do. When the KVM is switched to the Mac, the bluetooth dongle takes preference over the built-in Mac bluetooth receiver.

This works to share the keyboard, but the keyboard had to be disconnected and re-paired each time the KVM was switched — this is particularly problematic if you need to repair the keyboard at, for example, the login screen. It also requires you to enter a PIN code each time.

Fortunately this can be easily solved by sharing the generated link key between the two computers:

  1. Pair the keyboard in Ubuntu, then in OSX.
  2. In OSX, look at the bluetooth properties for your keyboard device to get the address.vThen open the terminal and type sudo defaults read /private/var/root/Library/Preferences/blued.plist. You will see something like the following:
        LinkKeys =     {
            "00-aa-bb-cc-dd-ee" =         {
                "00-00-00-aa-aa-aa" = <81a83517 cc3c7afc fb8e99fc 5147fbf4>;

    Here, the first code is the address of the bluetooth dongle. The second is the address of the keyboard, and the final, longer code is the link key.

  3. Convert the link key into a format suitable for Linux (or Windows), by reversing the endianness; simply reverse the order of the key, taking each pair of hexadecimal numbers as one value. So, the above key would be f4fb4751 fc998efb fc7a3ccc 1735a881. Easy…
  4. Use this link key in Linux or Windows. On Ubuntu the link key is at /var/lib/bluetooth/00:AA:BB:CC:DD:EE/linkkeys — the code is the address of the bluetooth dongle. Edit that file and replace the link key corresponding to the address of the bluetooth keyboard to the converted key, above.
  5. That’s it — restart Ubuntu, and the keyboard will work seamlessly as it is switched by the KVM.
  6. To change the link key in Windows, you need to edit the registry — I didn’t do this, but a search for “Windows bluetooth link key registry” should give the goods.

    Provided the keyboard doesn’t become unpaired, the setup should last indefinitely.

49 thoughts on “How to use Apple bluetooth keyboard with multiple computers via a KVM

  1. Hey there just wanted to give you a quick heads up.
    The words in your post seem to be running off
    the screen in Firefox. I’m not sure if this is a format issue or something to do with web browser compatibility but I figured I’d post to let you know.
    The design and style look great though! Hope you get the problem fixed soon. Kudos

  2. hello there and thank you for your information – I’ve certainly
    picked up anything new from right here. I did however expertise several technical points
    using this website, as I experienced to reload the web site a lot of times previous to
    I could get it to load properly. I had been wondering if your hosting is
    OK? Not that I’m complaining, but sluggish loading instances times will
    very frequently affect your placement in google and can damage your
    quality score if ads and marketing with Adwords. Anyway I am adding this RSS
    to my e-mail and could look out for much more of your respective interesting content.
    Make sure you update this again very soon.

  3. Some people criticize this as a flawless design for i – Phone and prefer their old i – Phone.
    ) It has only gotten more difficult to compare between the carriers.
    Pay – Pal is used as the means of making the payments and after you
    have paid, an download facility is provide to you instantly and after this you
    will be facilitated by unlocking the iphone easily.

    Here is my web site :: knights clash of heroes hack

  4. You will discover about three nearly all important causes to why you
    ought to do not delay get rid of every one of the network limits from
    an individual smart phone. Analysts and pundits were off the mark with that prediction, as instead Apple chose to
    release the i – Phone 5C as a replacement for the
    i – Phone 5, which in the past the company would have continued to sell at a $99 price point on contract.
    Almost all the gadgets launched by the brand are amazing in features and incredible in looks.

    Have a look at my web-site; Stormfall Age Of War Hack

  5. Nice weblog right here! Also your website rather a lot up fast!
    What web host are you tthe usage of? Can I am getting your associate link iin your host?
    I wish my website loaded up as quickly as yours lol

    Here is my web site SEO St Albans

  6. Is the agent is trying to play up the features that will make your home more attractive.
    Everything is listed, from the cost of the property as well as
    what it is close to in the city and the amenities that it offers.

    These forms are presented to the county assessor for validation that the
    decedent’s taxes are paid in full.

    Feel free to surf to my web-site – Estate Agent Website Design

  7. Once you press the “Home” button, you will be
    prompted to use the fingerprint sensor in order
    to view anything on your phone. ) It has only gotten more difficult to compare between the carriers.
    If you need to unlock your phone, visit us at and find out more about
    the official i – Phone unlock service.

    My page: gangstar vegas hack

  8. Whatever your end goal is, I wish you all the success and luck in your journey to accomplish and fulfill your goals and dreams.
    All homeopathic HCG drops for weight loss I know of come
    pre-mixed, so this is another huge benefit.
    We need to work challenging for the issues we
    want in life. The HCG protocol for weight loss is one of the hottest fads right now largely due to it
    being mentioned in a book by a dubious author named Kevin Trudeau.
    With a regular, everyday diet, the body typically pulls about 2000 calories to
    store as body fat. This is a misstep many people in Multi level marketing make.
    The expectation should be to at least maintain control of the blood glucose levels if not to improve and perhaps reverse the symptoms of diabetes altogether.
    In this period urine test can tell whether a woman is pregnant or
    not. In fact, if anything else looks at the pictures of Christian Bale
    before he went on his diet. Find out what to watch out for,
    and which brands are HCG approved lotions.

    Here is my blog post; hcg quick Weight loss Reviews

  9. Woah! I’m really loving the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s difficult to get
    that “perfect balance” between usability and visual appeal.
    I must say you’ve done a excellent job with this.
    Additionally, the blog loads very fast for me
    on Chrome. Superb Blog!

    Here is my page … feminine tattoos

  10. Hello! I know his is somewhat offf topic but I
    was wondering if you knew where I could get a captcha plugin for my comment form?
    I’m using the same blig platform as yours and I’m having
    problems finding one? Thanks a lot!

  11. That is really fascinating, You’re an excessively rofessional blogger.

    I have joined your feed and ssit up for looking for more of
    your grat post. Also, I hawve shared your
    site in my social networks

  12. For the depressions of the skin (also termed scars) resulting from acne, there isn’t a good
    OTC medication. To achieve the best results, become more proactive with the appropriate professional
    services and products for your specific condition, have a hair care analysis performed and get a personalized consultation. The
    initial consultation will give you a good opportunity to
    clear all doubts that you may have.

    my web page; skin care products in zimbabwe

  13. Have you ever considered about including a little bit more than just your articles?
    I mean, what you say is fundamental and
    all. However just imagine if you added some great visuals or video clips to give
    your posts more, “pop”! Your content is excellent but with images and clips, this website could definitely be one of
    the best in its field. Terrific blog!

  14. There are some hindrances in you goal to lose unwanted body fat like oils, fats, ointments, and creams.
    Loss of muscle tone is often more significant
    in the lower extremities, leading to a decreased ability to walk and balance yourself, which
    then leads to a greater risk of falls and other
    injuries. Until now, the only 100% approved items for moisturizing on the HCG diet have been pure baby oil and mineral oil because unlike other oils, they
    have no nutritional value and are will not be absorbed by the skin.

    my weblog … best hcg drops in canada

  15. And, it just works with a soft laser which utilizes less energy than a 40-watt
    light bulb. It takes many years of love and care to restore hair back to its natural state.
    As if the hair loss itself is not damaging enough to a
    lady’s self-confidence, family and friends seldom offer support,
    as they do not take the hair loss seriously.

    my web page matrix products

  16. Search engine optimization companies would not only offer your seo services,
    but they would also give you good online marketing services.
    Promote multiple affiliate programs in your website but don’t promote every little thing the world has to offer.
    There are many different features like your own profile,
    blogging updates, Street Talk, the ability to comment and like Street Articles Facebook page,
    Street Articles Google + page, Street Articles Twitter Page,
    and the ability to interact with the owners (not to
    a great extent, they are quite busy).

    Feel free to surf to my web blog – beach tourism marketing

  17. Take for instance a company that for the current period
    has more outstanding payables than they do receivables.
    They will do all the talking for you with the agent. For a common judgment creditor lien to outrank an IRS lien the lien needs to
    get recorded before the IRS’s lien is recorded, and be a “Choate” lien; which means it is a final lien circumstance,
    and that lien specifically lists what’s attached.

    My blog post; Boca Raton CPAt Testing center

  18. Salutations Salut! C’est ma première visite sur votre blog!
    Nous sommes un groupe de bénévoles et de commencer une nouvelle initiative projet dans une communauté dans le
    même créneau. Votre blog nous a fourni précieux bénéfique informations pour travailler.
    Vous avez fait uun merveilleux superbe travail!

  19. Hello! This is kind of off topic but I need some help from an established blog.

    Is it very difficult to set up your own blog? I’m not
    very techincal but I can figure things out pretty fast.
    I’m thinking about making my own but I’m not sure where
    to start. Do you have any points or suggestions?

    Thank you

  20. The first week, you get acquainted with your
    new routine, and the end of the diet seems so far away.
    Loss of muscle tone is often more significant in the lower
    extremities, leading to a decreased ability to walk and balance
    yourself, which then leads to a greater risk of falls and
    other injuries. It is a bit pricey, but is well worth the extra money.

    Look into my web site – best hcg drops for sale

  21. He relates his the latest practical experience dealing with thousands of
    patients with the HCG diet in his new book, New Pounds and Inches
    which is available at his web site,. In fact, if anything else looks at the pictures of
    Christian Bale before he went on his diet. Many women report that their breasts become very
    tender and feel full and heavy.

    Look into my webpage :: hcg weight loss seattle

  22. Hello folks, if you want to lose weight you should type in google – Oldbanough’s weightloss
    it’s good point to start your fight with fat

  23. I savour, result in I found just what I was looking for.

    You have ended my four day lengthy hunt! God Bless you man. Have a great day.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>