# Как я разбирался с Red Square Keyrox TKL на iMac -- OCLP, Ghidra и свой софт для подсветки

DevFeed: [Как я разбирался с Red Square Keyrox TKL на iMac -- OCLP, Ghidra и свой софт для подсветки](<https://devfeed.tech/articles/red-square-keyrox-tkl-imac-oclp-ghidra-147633.md>)

Original publisher: [Read original article](<https://habr.com/ru/articles/1110808/>)

Author: sl1mus

Published: 2026-11-22T07:19:18Z

Content type: article

Language: ru

Sources: [Tagir Valeev](<https://devfeed.tech/sources/tagir-valeev.md>)

Topics: [Ghidra](<https://devfeed.tech/topics/ghidra.md>), [macOS](<https://devfeed.tech/topics/macos.md>), [системное программирование](<https://devfeed.tech/topics/tag-3bc896470be0.md>), [тест-кейсы](<https://devfeed.tech/topics/tag-532d1762d470.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [antigravity](<https://devfeed.tech/tags/antigravity.md>), [api](<https://devfeed.tech/tags/api.md>), [apple-silicon](<https://devfeed.tech/tags/apple-silicon.md>), [arm64](<https://devfeed.tech/tags/arm64.md>), [c](<https://devfeed.tech/tags/c.md>), [cli](<https://devfeed.tech/tags/cli.md>), [codex](<https://devfeed.tech/tags/codex.md>), [css](<https://devfeed.tech/tags/css.md>), [esc](<https://devfeed.tech/tags/esc.md>), [ghidra](<https://devfeed.tech/tags/ghidra.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [imac](<https://devfeed.tech/tags/imac.md>), [iokit](<https://devfeed.tech/tags/iokit.md>), [keyrox](<https://devfeed.tech/tags/keyrox.md>), [macos](<https://devfeed.tech/tags/macos.md>), [red-square](<https://devfeed.tech/tags/red-square.md>), [reverse-engineering](<https://devfeed.tech/tags/reverse-engineering.md>), [tag-1dd5e6c5993c](<https://devfeed.tech/tags/tag-1dd5e6c5993c.md>), [tag-233bc15924d8](<https://devfeed.tech/tags/tag-233bc15924d8.md>), [tag-dd4d50e862cf](<https://devfeed.tech/tags/tag-dd4d50e862cf.md>), [tag-f76fc7fe610f](<https://devfeed.tech/tags/tag-f76fc7fe610f.md>), [usb-hid](<https://devfeed.tech/tags/usb-hid.md>), [windows](<https://devfeed.tech/tags/windows.md>)

## AI overview

On an Intel iMac running macOS Sonoma via OCLP, the author built a macOS app, CLI and background service for the Red Square Keyrox TKL after its vendor software proved Windows-only. Reverse engineering with Ghidra and REA, cross-checking the existing OpenRGB Keyrox driver, and physical tests exposed mismatches between reported success and actual keyboard behavior: the effect selector used command 0x04 with hardware-specific indices, and custom lighting failed because the native key table omitted Fn. Version 1.0.5 physically verified Wave and Const selection, lighting on/off, whole-board color, per-key Esc color, and dim/restore behavior during display sleep. A launchd service and watchdog address disconnect recovery; a shared file lock prevents concurrent HID request-response interference. The cause of sleep-related disconnects remains unknown, full-system sleep needs further observation, and hardware testing was limited to the Intel iMac; Apple Silicon was build-tested only. Other effects, directions and remappings remain unverified.

## Source excerpt

Клавиатура Red Square Keyrox TKL -- один из самых популярных и доступных вариантов механики на рынке: смазанные свитчи, заводская шумоизоляция, добротный корпус и отличная цена. Но есть один нюанс: официальный софт существует исключительно под Windows. Для пользователей macOS это означало полное отсутствие контроля: Читать далее