Apple Magic Keyboard Touchpad

broken image


tl;dr:

  1. The Apple Boot Camp method for getting an Apple Magic TouchPad to work on a Windows PC. Apple Boot Camp is a software package that allows you to use Windows 10 within the macOS. Apparently, you can also use it to enable some Apple hardware to work on your Windows PC. This is how my friend got her Apple Magic Trackpad working on her Windows 10.
  2. Oct 22, 2020 Open Magic Keyboard with your iPad attached Place your Magic Keyboard on a flat surface with the hinge away from you and the Apple logo on top. Open the lid until it's at the angle you want, or until it resists further opening. Wake your iPad with your Magic Keyboard.
  1. Download and extract the Apple Boot Camp drivers I repackaged: BootCamp-061-51481.zip
  2. Right-click BootCamp/Drivers/Apple/AppleKeyboardMagic2/Keymagic2.inf (or BootCamp/Drivers/Apple/AppleKeyboard/Keymagic64.inf or appropriate driver) and then 'Install'.
  3. Unplug and re-plugin your keyboard.
  4. If you want to reverse the fn key behavior, change HKEY_LOCAL_MACHINESYSTEMControlSet001ServicesKeyMagicOSXFnBehavior and HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesKeyMagicOSXFnBehavior from 01 to 00. Restart for registry changes to take effect.

The Magic Keyboard is an amazing companion for iPad Pro and iPad Air. It features a great typing experience, a trackpad that opens up new ways to work with iPadOS, a USB‑C port for pass‑through charging, and front and back protection. Bestand Stand for Magic Trackpad 2(MJ2R2LL/A) and Apple latest Magic Keyboard(MLA22LL/A) Apple Keyboard and Trackpad NOT Included (White) 4.5 out of 5 stars 556 $29.98 $ 29. 98 $59.98 $59.98.

If those drivers don't work, try getting latest from the source:

Touchpad
  1. Download latest exe from Brigadier release page.
  2. Find the latest or a current Mac model (ex: MacBookPro16,3).
  3. Run brigadier.exe -m MacBookPro16,3 to download Apple Boot Camp drivers.

If you can't or don't want to use Brigadier, see the bottom of this post.

Note: I have not tested this over Bluetooth. I keep my keyboard connected via the supplied lightning to USB cable. Apple store dashboard widgets.

I recently acquired an Apple Magic Keyboard and wanted to use it on my PC. It worked when I plugged it in but I could not access any of the media keys/fn keys (ex: volume up and down). This is because Windows was using the default keyboard drivers.

When I first started looking for solutions I found hacky, unsigned drivers and key mappers. These were not ideal.

Apple actually does supply Windows drivers for Apple Keyboards, Apple Magic Keyboards, and apparently other Apple Mouse and Trackpad devices. Apple created these for Boot Camp (a program that allows you to run Windows in a virtual machine in OSX). However, there is not an easy way to access them. Normally, Apple wants you to download and install a large suite of software and drivers meant for Boot Camp which will do all kinds of nasty things to your PC. Thankfully, the keyboard and other drivers can be isolated and installed independently.

Download Boot Camp Drivers

If you want to skip this section, you can download the drivers I extracted from the bellow process and see if they work for you: BootCamp-061-51481.zip

Because we are not going through Boot Camp, the first challenge is getting access to the Boot Camp drivers. The easiest way to do so is to use the Brigadier program. This automatically locates the URL for a given Mac model and downloads and extracts the appropriate Boot Camp drivers. If you can't or don't want to use this program, see the bottom of this post.

Download the latest exe from the releases page and run it like so:

MacBookPro16,3 is the model of the latest MacBook Pro (at the time of writing) which I got from this page. I used this model because I wanted to ensure I got the latest drivers.

This will create a folder next to brigadier.exe named something like BootCamp-061-51481. The numbers in the name will be whatever version of Boot Camp drivers were downloaded.

Install Drivers

Navigate to BootCampDriversAppleAppleKeyboardMagic2 for Apple Magic Keyboard drivers. I have not tested this, but I assume you would use BootCampDriversAppleAppleKeyboard for other Apple Keyboards. Or, $WinPEDriver$AppleMultiTouchTrackPadPro for Apple Magic Trackpad 2, etc. I don't think there is any harm in installing more drivers than you need as only the appropriate ones will be used, but that is also untested.

Right-click Keymagic2.inf (or whichever .inf file exists for your driver) and then 'Install' to install the driver.

After installation is complete, unplug and re-plugin your keyboard. If everything worked, you should be able to use the Volume Up/F12 (without holding the fn key) and the Volume will change. To debug, check in device manager; 'Apple Keyboard' should be listed under 'Human Interface Devices'.

Change fn Key Behavior

Magic
  1. Download latest exe from Brigadier release page.
  2. Find the latest or a current Mac model (ex: MacBookPro16,3).
  3. Run brigadier.exe -m MacBookPro16,3 to download Apple Boot Camp drivers.

If you can't or don't want to use Brigadier, see the bottom of this post.

Note: I have not tested this over Bluetooth. I keep my keyboard connected via the supplied lightning to USB cable. Apple store dashboard widgets.

I recently acquired an Apple Magic Keyboard and wanted to use it on my PC. It worked when I plugged it in but I could not access any of the media keys/fn keys (ex: volume up and down). This is because Windows was using the default keyboard drivers.

When I first started looking for solutions I found hacky, unsigned drivers and key mappers. These were not ideal.

Apple actually does supply Windows drivers for Apple Keyboards, Apple Magic Keyboards, and apparently other Apple Mouse and Trackpad devices. Apple created these for Boot Camp (a program that allows you to run Windows in a virtual machine in OSX). However, there is not an easy way to access them. Normally, Apple wants you to download and install a large suite of software and drivers meant for Boot Camp which will do all kinds of nasty things to your PC. Thankfully, the keyboard and other drivers can be isolated and installed independently.

Download Boot Camp Drivers

If you want to skip this section, you can download the drivers I extracted from the bellow process and see if they work for you: BootCamp-061-51481.zip

Because we are not going through Boot Camp, the first challenge is getting access to the Boot Camp drivers. The easiest way to do so is to use the Brigadier program. This automatically locates the URL for a given Mac model and downloads and extracts the appropriate Boot Camp drivers. If you can't or don't want to use this program, see the bottom of this post.

Download the latest exe from the releases page and run it like so:

MacBookPro16,3 is the model of the latest MacBook Pro (at the time of writing) which I got from this page. I used this model because I wanted to ensure I got the latest drivers.

This will create a folder next to brigadier.exe named something like BootCamp-061-51481. The numbers in the name will be whatever version of Boot Camp drivers were downloaded.

Install Drivers

Navigate to BootCampDriversAppleAppleKeyboardMagic2 for Apple Magic Keyboard drivers. I have not tested this, but I assume you would use BootCampDriversAppleAppleKeyboard for other Apple Keyboards. Or, $WinPEDriver$AppleMultiTouchTrackPadPro for Apple Magic Trackpad 2, etc. I don't think there is any harm in installing more drivers than you need as only the appropriate ones will be used, but that is also untested.

Right-click Keymagic2.inf (or whichever .inf file exists for your driver) and then 'Install' to install the driver.

After installation is complete, unplug and re-plugin your keyboard. If everything worked, you should be able to use the Volume Up/F12 (without holding the fn key) and the Volume will change. To debug, check in device manager; 'Apple Keyboard' should be listed under 'Human Interface Devices'.

Change fn Key Behavior

By default, when the fn key is not held, the media keys will be activated. When the fn keys is held the F1-12 keys will be activated.

To reverse the fn key behavior, open RegEdit and navigate to HKEY_LOCAL_MACHINESYSTEMControlSet001ServicesKeyMagic and update OSXFnBehavior key from 01 to 00 (in the binary editor this will update from 00000000 01 . to 00000000 00 .).

Not sure if this is necessary, but also navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesKeyMagic and make sure the OSXFnBehavior key has the same value.

Restart your PC for the registry changes to take effect.

Extra Drivers

Poking around in the Boot Camp package, I noticed several other drivers of note. BootCampDriversAppleAppleKeyboardInternalUSB may be related to the USB ports on Apple keyboards. There are also some drivers that looked to be related to Apple Mice, Trackpads, Cameras, Displays, etc:

  • BootCampDriversAppleAppleCamera
  • BootCampDriversAppleAppleKeyboard
  • BootCampDriversAppleAppleKeyboardInternalUSB
  • BootCampDriversAppleAppleKeyboardMagic2
  • BootCampDriversAppleAppleKeyManager
  • $WinPEDriver$AppleMultiTouchTrackPad
  • $WinPEDriver$AppleMultiTouchTrackPadPro
  • $WinPEDriver$AppleWirelessMouse
  • $WinPEDriver$AppleWirelessTrackpad

This is not a full list of drivers. Support com software. Just the ones I found interesting. I have not tested any of these. Again. I don't think there is any harm in installing more drivers than you need as only the appropriate ones will be used, but that is also untested.

Computer Keyboard With Touchpad

Brigadier Alternative

If you can't or don't want to use Brigadier, you can manually find, download, and extract the Boot Camp drivers. Brigadier uses this XML file (at the time of writing, subject to change) to locate the correct package. You can do this manually by downloading the XML file, opening it with a text editor, and searching for the BootCampESD.pkg URL with the latest PostDate. Downlad the .pkg file and extract the contents using 7-Zip, WinZip, WinRAR, or any other utility capable of unpacking .pkg and .dmg files:

  1. Extract Payload~ from BootCampESD.pkg
  2. Extract .LibraryApplication SupportBootCampWindowsSupport.dmg from Payload~ (this file is actually an archive).
  3. Extract the contents of WindowsSupport.dmg

Apple Magic Touchpad Windows 10

Here are the 7-Zip commands used to accomplish the above:





broken image