QMK firmware for TEX keyboards

TEX Shinobi BLE5 with QMK: owner’s manual

For the QMK firmware v1.0 to v1.4 from this repository. To install it, see README.md.

At a glance

You want to Do this
Use it over USB Plug in the cable. Fn+Esc switches back to USB from Bluetooth.
Use it over Bluetooth Fn+Mute, Fn+Vol- or Fn+Vol+ picks host 1, 2 or 3.
Pair a new computer Hold Fn+Mute (or Vol-, Vol+) for 3 s, then pick “TEX-BLE” on the computer.
Change TrackPoint speed Fn+1 (slowest) … Fn+9 (fastest). Default 3.
Make up/down slower or faster than left/right Fn+Down (slower) or Fn+Up (faster); Fn+0 makes them the same again. Fn - and Fn = do the same as Fn+Down and Fn+Up.
Change the sleep time on battery Fn+F1 … Fn+F9. Default 15 min.
Check battery and settings Fn+B, in a text editor.
Scroll with the TrackPoint Hold the middle button and push the stick. Tap it for a middle click.

Keys

The layout is the stock Shinobi layout, read from TEX’s own firmware tables.

The DIP switches

The block of six DIP switches on the bottom of the keyboard is read as on stock firmware (without a TEX profile file), for switches 1 to 5. Turn on at most one of switches 1 to 3:

Switch on Does
1 Fn and left Ctrl swapped
2 Mac layout: left Alt and left Win swapped, right Alt and right Win swapped, App becomes right Alt
3 both 1 and 2
none, or more than one of 1-3 stock layout

Switches 4 and 5 work from v1.1 (v1.0 ignores them):

From v1.4, Fn+M flips the Mac layout against what switches 1-3 pick, and the keyboard remembers it.

The DIP switches are separate from the Fn keys: Fn+F1…F9 set the sleep time whatever the switches say.

Fn combinations

Keys Does
Fn+Mute / Fn+Vol- / Fn+Vol+ Bluetooth host 1 / 2 / 3. Hold 3 s to pair a new host to that slot
Fn+Esc back to USB
Fn+1 … Fn+9 TrackPoint sensitivity 1-9; types back tp3 ud100 and so on
Fn+Down / Fn+Up / Fn+0 (or Fn - / Fn =) TrackPoint up/down speed one step slower / one step faster / the same as left/right; types back tp3 ud90 and so on
Fn+F1 … Fn+F9 sleep on battery after 1, 2, 5, 10, 15, 30, 60, 120 min or never; types back z15m and so on
Fn+B types the firmware version and a status, on one line
Fn+M Mac layout on or off (from v1.4): flips what DIP switch 2 picks, and is remembered after power off
Fn+PgUp / Fn+PgDn Play/pause / Stop
Fn+Left / Fn+Right Previous / next track

The keyboard “types back” by sending keystrokes, so have a text editor or other text field in focus when you press Fn+1…9, Fn+Down, Fn+Up, Fn+0, Fn+F1…F9 or Fn+B. The answers are short; the tables below translate them. They are typed as on a US keyboard layout: with another layout on the computer some characters come out as that layout’s, for example y and z swapped on German, or punctuation in place of digits on French.

What the keyboard types

Fn+1 … Fn+9 types tp1 … tp9: the TrackPoint sensitivity now set, 1 slowest, 9 fastest, 3 by default, then the up/down speed (below), for example tp3 ud100.

Fn+Down / Fn+Up / Fn+0 (or Fn - / Fn =) set how fast the pointer moves up and down compared with left and right, and type the same answer: ud100 means the same speed, ud90 up/down at 90 % of left/right, ud120 at 120 %. The steps are 50, 55, 60, 70, 80, 85, 90, 95, 100, 105, 110, 120, 130, 150, 175 and 200 %; Fn+Down and Fn+Up stop at the ends. Use it if up/down feels faster or slower than sideways, or with a portrait screen, where the pointer has further to go up and down. It changes the pointer only: scrolling stays as it was. Saved with the other settings.

Fn+F1 … Fn+F9 types z and the sleep time now set (m is minutes):

Keys Types Sleeps on battery after
Fn+F1 z1m 1 minute without input
Fn+F2 z2m 2 minutes
Fn+F3 z5m 5 minutes
Fn+F4 z10m 10 minutes
Fn+F5 z15m 15 minutes (the default)
Fn+F6 z30m 30 minutes
Fn+F7 z60m an hour
Fn+F8 z120m two hours
Fn+F9 z never never

Fn+B types one line, for example:

v1.4 dflt 2026-11-23-15:10:00 bt85% adc3380 aa z15m tp3 ud100 dip24 idl15m34s wk1420ms bl401

One space separates the fields; within a field the label and value run together. No answer presses Enter, so one typed into a chat or a search box doesn’t send it.

Typed Means Useful for
v1.4 dflt 2026-11-23-15:10:00 Firmware version, keymap and build time. dflt is the built-in keymap; cust means the keymap editor changed the keys or added macros. A firmware built from another keymap types that keymap’s name. Knowing which firmware is on the keyboard. Quote it in bug reports.
bt85% Battery level, worked out from adc. The percentages follow alkaline cells. Knowing when to change or charge the cells. NiMH rechargeables show 30-60 % for most of their charge (see Known issues).
adc3380 The raw battery reading the level comes from: about 1,180 per volt across the two cells. Checking the scale against a voltmeter across the cells.
aa / usb Running on the AA cells, or on USB power. On USB power the keyboard never sleeps.
z15m Sleep time on battery, as set with Fn+F1…F9 (z never if it never sleeps). Checking the setting, which survives battery changes and power cuts.
tp3 TrackPoint sensitivity, as set with Fn+1…9. Checking the setting, which is saved the same way.
ud100 TrackPoint up/down speed in percent of left/right, as set with Fn+Down, Fn+Up and Fn+0. The same.
dip24 The DIP switches that are on: here switches 2 and 4. dip0 means none. Checking a switch is read after you flip it (see The DIP switches).
idl15m34s The last stretch of at least a second with no key and no TrackPoint movement: 15 minutes 34 seconds here, idl37s under a minute. Sleep doesn’t count: a stretch that included sleep counts only its awake part. Leave the keyboard alone for a while, then press Fn+B: it should show about how long you left it. If idl stays small and the keyboard never sleeps on battery, something keeps it busy, most likely a drifting TrackPoint.
wk1420ms After the last wake from sleep, the milliseconds from the keyboard waking up to the Bluetooth link being back. wk0ms if it hasn’t slept since it was powered on. Telling where wake time goes. A large wk is Bluetooth reconnecting; if waking feels slow but wk is small, the delay is elsewhere (the keyboard’s own wake-up, or the computer).
bl401 Bluetooth, three digits (from v1.4): the link state (4 connected, 3 reconnecting or pairing, other digits not connected), the slot (0, 1, 2 for Fn+Mute, Vol-, Vol+), and how many slot taps were sent since power-on (up to 9). A single digit, such as bl0, means the Bluetooth module hasn’t answered yet. Here: connected, slot 0 (Fn+Mute), one tap. Bug reports about Bluetooth: it shows which slot the keyboard thinks it is on and whether the module answered.

v1.0 types the version and bat 85% adc 2900 on bat sleep 15 min tp 3 as two lines, each ending in Enter, and sleep 15 min and tp 3 for Fn+F1…F9 and Fn+1…9, with no dip, idl or wk. v1.3 types the same line as v1.4 without bl. v1.2 types the same line as v1.3; in v1.2 Fn+Down and Fn+Up are Play and Stop, and only Fn - and Fn = set the up/down speed. v1.1 types the same line as v1.2 with longer labels: default for the keymap (also in an editor-made image), bat85% and zzz15m, and zzz15m for Fn+F1…F9.

Bluetooth

The keyboard remembers three hosts, one per slot.

Bluetooth uses the keyboard’s own Bluetooth module, which keeps its pairings across firmware changes.

Power, battery and sleep

The keyboard runs on two AA cells, or on USB power when the cable is in.

Settings that are saved

The TrackPoint settings, the sleep time and (from v1.3b) the Fn+M Mac layout are saved in the keyboard’s flash when you change them. They survive battery changes, USB plugging and unplugging, and power cuts. Flashing a firmware with tex_flash keeps them too; --reset-settings sets them back to the defaults. TEX’s updater, and tex_flash from v1.3 and older, always set them back to the defaults; set them again afterwards.

Troubleshooting

Problem Try
Nothing types over Bluetooth Press a key to wake it, wait a few seconds. Tap the slot’s Fn key (Fn+Mute, Vol-, Vol+). Check the computer still lists the keyboard as paired; if not, pair the slot again.
Nothing types over Bluetooth after unplugging USB Turn the power switch off and on. See Known issues.
It types on the wrong computer Tap the Fn slot key for the computer you want, or Fn+Esc for USB.
TrackPoint doesn’t move Wait a few seconds: the keyboard restarts a stuck TrackPoint by itself. Unplugging and replugging USB restarts the whole keyboard.
TrackPoint too fast or slow Fn+1 … Fn+9.
Up/down faster or slower than sideways Fn+Down or Fn+Up, a step at a time; Fn+0 to undo.
Middle button scrolls when you want a click Tap it without moving the stick.
Keys are swapped (Fn/Ctrl, Alt/Win) Check DIP switches 1-3 on the bottom; turn them all off for the stock layout.
Battery percentage looks low With NiMH rechargeables it shows 30-60 % for most of their charge; see Known issues.
Flashing can’t find the keyboard Turn the PC’s Bluetooth off. Or hold Esc while plugging in the USB cable: the keyboard starts in the bootloader, ready to flash.
Settings (TrackPoint level, sleep time) aren’t kept With a firmware built with TEX_SELFTEST, run python -I tools/tex_selftest.py with the keyboard on USB: it tests the flash page that holds them and prints PASS or FAIL. The released v1.1 doesn’t include the test, and the script says so.
Want the stock firmware back Run TEX’s AP_0407_4.04.exe from a Command Prompt run as administrator, with -force if it says there is nothing to update.

Known issues

Report problems on the issue tracker. Include what Fn+B types.