Magic Keyboard battery on Windows 10 and 11

Your Magic Keyboard needs no new driver, the software Windows uses to talk to your keyboard. You run one unlock instead.

Turn the battery percent on

Magic Tray finds your keyboard's Bluetooth address itself, then asks permission before changing anything.

  1. Pair the keyboard in Windows Bluetooth settings.
  2. Click the Magic Tray icon beside the clock.
  3. Point at your keyboard's name to open its submenu.
  4. Click Fix battery reads.
  5. Click Yes when Windows asks for admin permission.
  6. Turn Bluetooth off and on again.

The percent shows in the menu: where to look and low battery warnings.

If you'd rather run the script yourself

Grab Install-KeyboardBattery.cmd from the release page. Right-click it and pick Run as administrator.

Can you help test a Magic Keyboard?

One keyboard has been confirmed by a tester: the Apple Wireless Keyboard from 2011. Every other keyboard below should work, but nobody has confirmed it yet.

KeyboardDevice codeStatus
Magic Keyboard024F / 0250needs a tester
Magic Keyboard with Touch ID0267 / 026Cneeds a tester
Magic Keyboard (2021)029Cneeds a tester

Touch ID keyboards (0267 / 026C) have a round blank key right of F12:

The top of a compact Magic Keyboard, Swiss layout. Right of F12 sits a plain round key with no symbol printed on it.

Photo via Wikimedia Commons: Dbirdz, CC BY-SA 4.0.

We need Bluetooth Magic Keyboards. Tell us:

Send a report. Other devices need testers too.

Common questions

Does my Magic Keyboard need a special driver on Windows?
No. Your Magic Keyboard keeps the standard Windows Bluetooth driver on Windows 10 and 11. Nothing from Apple gets installed, and no driver is swapped. You run one unlock from the Magic Tray menu, and the battery percent shows up beside your clock.
Why doesn't my Magic Keyboard battery percent show up?
Your keyboard does send its battery level. It labels that reading in a way Windows won't answer for, so the number never reaches the tray. We asked it 6,859 times in a row and got nothing back. The unlock relabels it once.
Do I need that Windows startup setting the 2024 mouse uses?
No. A Magic Keyboard needs no change to the way Windows starts. That startup setting is only for the 2024 USB-C Magic Mouse, whose driver Microsoft hasn't checked. Your keyboard keeps the standard Windows Bluetooth driver, and the one-time unlock runs on Windows exactly as it came.
Does the unlock survive re-pairing the keyboard?
No. Re-pairing wipes it. Remove the keyboard in Windows Bluetooth settings and add it again, and the unlock is gone. Run Fix battery reads from the Magic Tray menu once more to put it back. Until you do, Magic Tray lists your keyboard but shows the battery as blocked.
Show the technical details

On col02 the keyboard exposes Battery Strength at RID 0x47, declared Input-only, so FeatureReportByteLength is 0 and HidD_GetFeature returns nothing. Measured: 6,859 consecutive read timeouts and a 255-RID sweep with zero hits.

The patch relabels 0x47 as a Feature report in the BTHPORT CachedServices SDP cache, and re-pairing rebuilds that cache.

Source: MagicMouseTray/KeyboardBatteryDevice.cs and scripts/kbd-patch-cachedservices.ps1.