Fan and ARGB control for Colorful AMD motherboards: a Native Shell desktop app
and a colorctl CLI over one hardware core.
Two blocks: the Nuvoton Super I/O (fan headers, 4-point curves, tachometers, board temperature) and the Colorful RGB controller (200 LEDs on six channels: onboard shroud, two 12V RGB headers, three 5V ARGB headers).
SMBIOS identifies the board before any write, against a verified catalogue; a non-Colorful machine never has its Super I/O touched. → Board detection
A desktop rewrite of colorctl:
register programming, curve tables and CCTL state stay byte-compatible, so CLI
and app can alternate without losing lighting state.
The desktop app is built with Native Shell: native windows on Windows and Linux, no WebView and no Tauri.
Captured from the Native Shell app in simulated mode (no hardware is touched), so the board data shown is synthetic.
| Dashboard | Fan control | Lighting |
|---|---|---|
![]() |
![]() |
![]() |
| Drivers | About |
|---|---|
![]() |
![]() |
| Platform | Fans | Lighting |
|---|---|---|
| Linux | ✅ /dev/port — root or CAP_SYS_RAWIO |
✅ /dev/hidraw |
| Windows | ✅ PawnIO sandboxed driver — read-only via HWiNFO without it | ✅ SetupAPI + hid.dll, no driver |
Windows needs a signed driver to broker IN/OUT. PawnIO is not bundled: on
launch and from Fan control the app fetches PawnIO's installer from the project's
releases, checks a pinned SHA-256 and runs it, so its UI and UAC prompt appear.
Nothing installs silently. Without it: HWiNFO telemetry, then the simulator, both
labelled. → Platform notes
The Windows installer stays per-user, but the app itself requests administrator at
launch (its manifest marks it requireAdministrator) so fan control can open
PawnIO's driver immediately. Lighting, settings and telemetry do not need those
rights, but the elevated process is what makes the fan half work on first start.
Windows installers, portable zips and Linux tarballs are on the
releases page. The app also
ships latest.json, so updates are checked and installed from inside Settings.
The portable build keeps settings and state in config/ and data/ beside the
executable.
On Debian/Ubuntu:
sudo apt install ./opencolorhub-cli_*_amd64.debInstalls colorctl, bash/zsh/fish completions and the udev rule that lets the
logged-in user drive RGB without root. Portable tarballs (binary + completions)
are on the release page. Syntax matches upstream: rgb, fan, board,
--backend auto|hardware|simulated, --json.
The desktop app lives in nsh/ and needs the nsh toolchain:
curl -fsSL https://nsh.dev/install.sh | sh # Windows: irm https://nsh.dev/install.ps1 | iex
nsh check nsh
nsh build nsh
OPENCOLORHUB_SIM=1 nsh test nsh # simulator, no hardware
nsh run nsh
nsh package nsh --target windows # or linuxThe core and CLI are ordinary Cargo crates:
cargo test --workspace
cargo build --release -p opencolorhub-cliLinux hardware needs privileges:
sudo ./target/release/colorctl fan set-speed --fan cpu --percent 50| Architecture | Crates, the NSH seam, backend boundary, protocols, verification |
| Platform notes | Driver rationale, fallbacks, elevation, startup, tray |
| RGB compatibility | ODM families, USB PIDs, the 200-LED frame, OpenRGB comparison |
| Board detection | Confidence levels, sources, the hardware guard |
| Updates | nsh/updater, release process, integrity caveats |
| Drivers | Board download catalogue, URL rules, why nothing is executed |
| Presets | Saved fan and lighting presets, on the screens that own them |
| MIGRATION.md | The Tauri → Native Shell conversion record |
| NOTICE.md | Licensing of this project and everything it embeds |
- Pump protected — curves below 60% rejected, manual duty clamped, built-in profiles use Colorful's pump table.
- Curves validated before the chip — four points, strictly ascending temperatures, 0–100% duty, enforced in UI, CLI and service.
- Chip identified first — an unrecognised Super I/O aborts before any
register write (
0xD42Avia/dev/port, the0xD1xxfamily via PawnIO).
Writing fan curves on an unverified board is at your own risk.
GNU General Public License v3.0 — SPDX GPL-3.0-only. Full text in
LICENSE.md; practical terms, the MIT attribution for upstream
colorctl portions and the LGPL notice for the embedded PawnIO module are in
NOTICE.md.
No warranty: this software writes to Super I/O and USB HID hardware, and the licence says the authors are not liable for damage.




