Windows hardware control for Xiaomi laptops

Your Xiaomi laptop, under your control.

miControl is a free, open-source Windows manager for Xiaomi laptops: custom fan curves, battery charge thresholds, display brightness and HDR, audio, keyboard backlight, touchpad, EC RAM access, driver management and system info, all in one privacy-first app.

MIT licensedNo telemetry, no accountsWindows 10/11, Xiaomi notebooks

01 / What it does

Everything the vendor app didn't give you.

miControl talks to the embedded controller and driver stack directly, so the controls are real, not cosmetic.

Fan curves

Custom fan curves per sensor with hysteresis, so your laptop stays quiet when it can and cool when it matters.

Battery charge thresholds

Set charge limits to protect the battery from sitting at 100% all day, and watch health, cycle count and live charge rate.

Display brightness & HDR

Fine-grained brightness control beyond the OS slider, plus HDR toggle and calibration on supported panels.

Audio

Per-output volume and device management without digging through Windows settings.

Keyboard backlight

Adjust or disable the keyboard backlight timeout and level directly from the tray.

Touchpad

Tune touchpad behaviour the vendor utility never exposed.

EC RAM access

Read and write embedded-controller memory through a signed-driver proxy service, with every access logged.

Driver management

Inspect and manage the Xiaomi driver stack, including a clean-room replacement for the stock IoT service.

System info

CPU, GPU, memory and battery telemetry in one overview, with performance modes: Silence, Balance, Turbo.

AI advisor

Optional AI analysis with your choice of OpenAI or a local Ollama model. Off by default, and your data stays yours.

Privacy-first

No telemetry, no accounts, no phoning home. The AI advisor is the only optional network feature, and you point it where you want.

02 / Screenshots

A dashboard that stays out of the way.

miControl main panel showing CPU and GPU usage, battery status at 96% charging, and Silence, Balance and Turbo performance modes
Main panel: system overview, battery health and performance modes.
miControl system tray popup with quick controls
Tray popup for quick adjustments.
miControl running on the Windows taskbar and system tray
Lives quietly in the system tray.

03 / Under the hood

How miControl actually reaches the hardware.

Xiaomi's stock tooling locks hardware control behind a proprietary service. We reverse engineered the whole chain so miControl can speak to it directly, safely and locally.

STEP 01

EC RAM, via the driver

The embedded controller exposes command and status windows in physical memory at 0xFE0B0F00 and 0xFE0B0F01, plus a 120-byte sensor region at 0xFE0B0F08. Access goes through the Xiaomi driver's IOCTLs (0x22E000 read, 0x22E004 write) so no raw kernel mapping is needed.

STEP 02

The IoTService proxy

The stock IoTService.exe is a LocalSystem service that proxies EC RAM reads and writes for the driver. miControl ships a clean-room Rust replacement that passes the driver's process-name and path checks and exposes the same capability over a local named pipe.

STEP 03

Named-pipe IPC

The app talks to the service over \\.\pipe\ecram_service using small JSON requests, e.g. {"op":"read","addr":"0xFE0B0F00","size":8}. Every request is scoped, validated and answered locally. Nothing leaves the machine.

STEP 04

The 4-phase EC command protocol

Each command runs a state machine recovered by static analysis: write a 7-byte command (cmd_id plus device UID), trigger with 0x55, poll for the ACK (0x55, cmd_id, 01, 02), then read the 8-byte RET frame carrying the result. 16 command IDs cover bind status, WiFi, firmware version, model and laptop status reporting.

04 / Get it

Download and documentation.

Grab the latest release, read the source, or dig into the reverse-engineering notes that made it possible.

05 / FAQ

Questions, answered.

Which laptops are supported?

miControl targets Xiaomi notebooks, developed and tested on a Xiaomi Notebook Pro 14 (2026, Intel Core Ultra + Arc). Hardware access depends on the Xiaomi EC driver and IoT service being present. If your model works (or doesn't), issues and PRs are welcome.

Is it safe to write to EC RAM?

EC access goes through the vendor driver and a dedicated proxy service, using the same command protocol the stock software uses. Fan curves and charge thresholds are bounded by sane limits. As with any hardware tool, use sensible values and keep an eye on temperatures.

Does it collect any data?

No. There is no telemetry, no analytics and no account system. The only optional network feature is the AI advisor, which is off by default and uses whatever endpoint you configure: OpenAI or a fully local Ollama model.

Does the AI advisor need an API key?

Not necessarily. Point it at a local Ollama instance and nothing ever leaves your machine. If you prefer OpenAI, you bring your own key, which stays in your local configuration.

Is it really free?

Yes, MIT licensed. The full source is public, the release binaries are free to download, and there are no paid tiers.

Where do I report bugs?

Open an issue on GitHub. Include your laptop model, Windows version and the app version; crash reports are stored locally on your machine so you can attach them yourself.