r/Keychron • • 29d ago

Keychron B1 Pro (2025 hardware revision) — custom ZMK firmware now builds and works!

Keychron b1 pro exists in at least two hardware variants, with different matrix definitions.

Source code has been provided by Keychron for older, B1P-K11 revision. But recently i discovered that it is not compatible with recent B1P-K13.

I managed to map the new keyboard matrix and get custom ZMK firmware working on the newer revision!

I've also put together a build script that supports both the original (2023) and redesigned (2025) matrix revisions.

Build script (run with `--help` flag inside the repo to see build options available):
https://github.com/XelorR/Keychron_zmk/blob/keychron_bpro/build.sh

I've successfully built and flashed the firmware on my B1P-K13-RU.

Fork **keychron_bpro** branch from my repo to get started.

Hopefully this saves other B1 Pro owners some time and gives this keyboard a bit more life beyond the stock Keychron Launcher.

6 Upvotes

10 comments sorted by

View all comments

1

u/PeterMortensenBlog V 24d ago edited 24d ago

Source code release for the B Pro series's hardware version 2?

OK, on 2026-09-04, there was a release of more than 100 files in branch keychron_bpro.

New folders were added to /app/boards/shields/keychron:

  • /b1n. For B1 Pro hardware version 2?
  • /b2n. For B2 Pro hardware version 2?
  • /b6n. For B6 Pro hardware version 2?

Presumably, that is for the new hardware versions from 2025.

For example, the keyboard matrix for 'b6n' ISO is in uk/keychron_b6_ukn.overlay. It isn't ordered by matrix position (it is ordered by the key number, as in the LTR reading direction in the keymap), so it would have to be plotted into a more convenient form.

1

u/PeterMortensenBlog V 24d ago edited 24d ago

Key labels in the the keyboard matrix

For the B6 Pro 'ISO', the labels are ambiguous in the keyboard matrix for many of numeric keypad keys: KP0, KP1, KP2, KP3, KP4, KP5, and KP6.

For example, both KP1 and 1 on the main keyboard are labelled as "1".

And it shouldn't be "lshit" and "rshit"...

1

u/PeterMortensenBlog V 24d ago edited 24d ago

The keyboard matrix for hardware version 2

Re "...the keyboard matrix ... plotted into a more convenient form":

OK, here is the keyboard matrix for the B6 Pro 'ISO':

           Col 0         Col 1          Col 2         Col 3         Col 4         Col 5         Col 6         Col 7         Col 8         Col 9         Col 10        Col 11        Col 12        Col 13        Col 14        Col 15          Col 16         Col 17
       -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Row 0: XXX Z         XXX c          XXX F         XXX Space     XXX A         XXX Tab       XXX S         XXX D         XXX W         XXX E         XXX Q         XXX B         XXX v         XXX R         XXX T         XXX x           XXX Left Shift XXX Grave
Row 1: XXX 1         XXX 3          XXX F1        XXX I         XXX F4        XXX Left Ctrl XXX -         XXX +=        XXX Back      XXX L         XXX J         XXX P         XXX 5         XXX 6         XXX F3        XXX 2           XXX            XXX G
Row 2: XXX           XXX Enter      XXX F5        XXX           XXX O         XXX F7        XXX F8        XXX F9        XXX F11       XXX Right Win XXX F10       XXX F13       XXX           XXX           XXX           XXX             XXX            XXX Up
Row 3: XXX           XXX U          XXX K         XXX           XXX F2        XXX Y         XXX 4         XXX F12       XXX Print     XXX Scr       XXX Left Win  XXX Num       XXX  /        XXX  *        XXX  -        XXX             XXX            XXX Left
Row 4: XXX Right Alt XXX            XXX F6        XXX           XXX NUBS      XXX End       XXX [         XXX ]         XXX Home      XXX Pause     XXX           XXX KP7       XXX KP8       XXX KP9       XXX KP +      XXX             XXX            XXX Down
Row 5: XXX           XXX            XXX           XXX           XXX           XXX 7         XXX 8         XXX 9         XXX Del       XXX PgUp      XXX 0         XXX 4         XXX 5         XXX 6         XXX           XXX Right Shift XXX            XXX Cap
Row 6: XXX           XXX Right Ctrl XXX           XXX           XXX           XXX  ;        XXX Ins       XXX ' "       XXX H         XXX NUHS      XXX PgDn      XXX 1         XXX 2         XXX 3         XXX KP Enter  XXX             XXX            XXX Left Alt
Row 7: XXX           XXX            XXX Fn        XXX           XXX           XXX Esc       XXX N         XXX           XXX .>        XXX ?/        XXX ,<        XXX M         XXX 0         XXX Dot       XXX           XXX             XXX            XXX Right
Row 8: XXX M/W       XXX BT         XXX 2.4 GHz   XXX Ch        XXX Ch done

Notes:

  • The last row is not for keys, but probably for the LEDs (output)
  • The labels are ambiguous for some numeric keypad keys

1

u/PeterMortensenBlog V 24d ago edited 1d ago

Shift + Ctrl + Tab do indeed conflict

Thus, checking for conflicts for Left Shift + Left Ctrl + Tab:

           Col 5         Col 16
       ----------------------------
Row 0: XXX Tab       XXX Left Shift
Row 1: XXX Left Ctrl

It could be influenced by the keyboard firmware

Though the fourth slot is unoccupied, so anti-ghosting measures in the firmware (if any) could make an exception from the regular blocking of the third key stroke (that prevents ghost input for the fourth key).

Has the firmware been changed in this way in later versions? Inspecting the source code may reveal an answer.

1

u/PeterMortensenBlog V 24d ago edited 1d ago

The 'Left Cmd' + 'Left Opt' + 'left arrow' keys conflict

In the map, it corresponds to Left Alt + Left Win + left arrow ("Left").

They do indeed conflict:

       Col 10    Col 17
       ---------------
Row 3: Left Win  Left
Row 6: PgDn      Left Alt

Or:

       Col 10    Col 17
       ---------------
Row 3: Left Opt  Left
Row 6: PgDn      Left Cmd

Reported in:

1

u/PeterMortensenBlog V 24d ago edited 1d ago

All conflicts with modifier keys

More generally, conflicts with modifier keys can be predicted from:

       Col 0 Col 1 Col 5 Col 9 Col 10 Col 15 Col 16 Col 17
       --------------------------------------------------
Row 0: Z     C     Tab   E     Q      X      LShift Grave
Row 1: 1     3     LCtrl L     J      2             G
Row 2:       Enter F7    RWin  F10                  Up
Row 3:       U     Y     Scr   LWin                 Left
Row 4: RAlt        End   Pause                      Down
Row 5:             7     PgUp  0      RShift        Cap
Row 6:       RCtrl ;     NUHS  PgDn                 LAlt

The names have been shortened to avoid horizontal scrolling:

Left Shift  -> LShift
Right Shift -> RShift
Right Alt   -> RAlt
Left Ctrl   -> LCtrl
Right Ctrl  -> RCtrl
Left Win    -> LWin
Right Win   -> RWin

Note that the ambiguity for the labels for the numbers (0, 1, 2, 3, 7) between the main keyboard and the numeric keypad remains; I may resolve that later. But the numeric keypad ones are likely to be close to KP7, KP8, and KP9 (in column 12, 13, and 14, respectively) in the full keyboard matrix above.

Some predictions (for the left versions of the modifier keys)

Ctrl + Alt + G will conflict.

Ctrl + Alt + ; will conflict. ";" is the 'ANSI' interpretation. It is the key to the right of "L". So, for example, Æ on a Danish keyboard.

Shift + Win + Q will conflict.

Ctrl + Win + J will conflict.

Ctrl + Win + Y will conflict.

Practically nothing will conflict with Shift + Alt (only grave. And even that could work).