NZXT Kraken on Linux: fans that stay off until the work starts
NZXT's software is Windows-only, so on Linux a Kraken Z63 just runs its firmware curve. Built with Claude: a small Python service that uses liquidctl and OpenRGB to keep the PC silent and dark when idle and wake it up only for real load. How the curves, the modes and the timers work.
On this page
- The hardware and the two tools that talk to it
- Rule 1: follow the liquid, not the CPU
- Rule 2: a CPU boost that reacts in seconds
- Rule 3: modes by load, and the max of three
- Rule 4: don’t react to every spike
- Quiet mode and dark mode (my preference)
- The pump screen
- What happens when it stops
- How it was built
- Try it
On Windows, an NZXT Kraken comes with NZXT CAM: fan curves, pump speed, the little round screen on the pump, the RGB. On Linux there is no CAM. The cooler still works, because the firmware runs a default curve, but you can’t tell it what you want, the screen shows a logo, and the fans hum at the same speed whether the machine is asleep or compiling.
I wanted the opposite of a gaming PC: silent and dark most of the day, and awake only when real work starts. So I asked Claude to build it with me. The result is one Python file, kraken_display.py, running as a systemd service. It’s open source: github.com/dev-mraj/kraken-display-linux.
This post explains how it decides what to do, with the real curves from my machine. “Quiet and dark until busy” is my preference; every number below is in a JSON settings file, so you can make yours loud and bright instead.
The hardware and the two tools that talk to it
The setup controls three things:
- Kraken Z63: the pump, its two radiator fans and its 320×320 LCD.
- NZXT Smart Device V2 (the fan and RGB hub inside NZXT cases): two more radiator fans, two case fans and the case lights.
- RAM sticks with RGB.
No custom driver is needed. Two open source projects already did the hard part:
- liquidctl talks to NZXT devices over USB HID. It can read the liquid temperature and fan/pump speeds (
get_status), set a fixed duty (set_fixed_speed), upload a temperature curve the device runs by itself (set_speed_profile), and put an image or a brightness on the Kraken’s screen (set_screen). It’s a Python library as well as a CLI, so the service imports it directly. - OpenRGB controls RGB on almost everything else, RAM included. It runs as a small local server (
openrgb --server, port 6742, bound to127.0.0.1), and the script sends it one colour through the Python client.
The CPU side comes straight from Linux: load from /proc/stat, temperature from hwmon (coretemp on Intel, k10temp or zenpower on AMD), package power from Intel RAPL, and GPU numbers from nvidia-smi (or the AMD/Intel sysfs files) when there is a GPU.
Every 5 seconds the loop reads all of that, decides a duty for each fan and the pump, sends only what changed, picks a light colour and draws the pump screen.
Rule 1: follow the liquid, not the CPU
The CPU temperature jumps 20 °C in a second when a core wakes up. The liquid, a few hundred millilitres of water, moves slowly: it’s what actually tells you how much heat the loop is carrying. So the main curves use liquid temperature.
Nothing moves until 34 °C, which my loop rarely passes when idle. Above that the pump rises fastest (it moves the heat to the radiator), then the radiator fans, then the case fans, which only need to keep fresh air coming in. Between points the duty is a straight line: at 37 °C the radiator fans run halfway between 35% and 55%, so 45%.
One honest note about the pump: NZXT advises against running it slowly for long periods, so the default pump curve in the repo starts at 80%. My own settings let it drop to 20% (the lowest the Kraken accepts) because I want silence. That’s a choice you should make knowingly.
Rule 2: a CPU boost that reacts in seconds
The liquid is slow on purpose, but that means a sudden heavy job would cook the CPU for a minute before the liquid warms up. So there’s a second curve, on the smoothed CPU temperature:
Below 65 °C it does nothing. At 75 °C it asks for at least 50% on every fan, at 92 °C for 100%. “Smoothed” means an average that moves 35% of the way toward each new reading (an exponential moving average), so a one-second spike doesn’t spin anything up.
Rule 3: modes by load, and the max of three
The third input is CPU load, grouped into six modes. Each mode has a colour for the lights (white when idle, deeper red as the load grows), a screen brightness and a minimum fan speed:
Then the whole fan logic is one line: each fan runs at the highest of its liquid curve, the CPU boost and the mode minimum. Whichever reason is strongest wins, and none can pull another down.
A real reading from my machine while it was rendering this blog’s videos (97% load, 142 W):
| Input | Reading | Asks for |
|---|---|---|
| liquid curve (radiator fans) | 37.6 °C | 51% |
| CPU boost | 65 °C smoothed | 0% |
| mode minimum | max (97% load) | 85% |
| result | 85% on all fans, pump 100% |
The CPU was cool and the liquid only warm, yet the fans were at 85% because the mode said a long heavy job was running. That’s the point of the mode floor: it starts moving air before the liquid heats up, so the liquid never gets to the steep part of the curve.
Rule 4: don’t react to every spike
If the mode followed the load directly, opening a browser tab would flash the lights red and rev the fans. So the mode has a timer (the ModeTimer class):
- Going up: the smoothed load must point higher for 1 minute. Then it jumps straight to the mode of the average load over that minute.
- Going down: it steps down one mode at a time, spread evenly over 3 minutes, so the fans keep cooling for a while after the job ends.
- Short dips don’t count: a pending change is cancelled only after 3 readings in a row (about 15 s) go the other way.
Here’s the real ModeTimer from the script, fed a made-up load: idle, a 30-second burst, then 5 minutes of steady work:
The burst at minute 2 changes nothing. The steady load from minute 4 lifts the mode to heavy at minute 5. When the work stops at minute 9 it walks back down, through busy, active and light, and is idle at minute 12.
Fan speed changes are limited too: up 20% per update, down only 4%. Fans speed up quickly when needed and slow down so gently you don’t notice. A fan that keeps changing pitch is more annoying than one that’s a bit loud.
Quiet mode and dark mode (my preference)
Two extra layers make the machine disappear when nothing is happening:
- Quiet: after 1 minute below 10% load, every fan drops to 10% and the lights and screen dim. It takes a full minute of real load to wake up, but it wakes immediately if the liquid reaches 38 °C or the CPU 60 °C. Safety beats silence.
- Dark: below a chosen mode (mine: busy) all lights are off and the pump screen is black. The fans keep working normally; only the show is off.
So most of the day my PC is dark and close to silent. When a big build or a video render starts, a minute later the case lights up red, the pump screen shows the temperatures and the fans come up. When it’s done, it fades back down over three minutes.
The pump screen
The Kraken’s LCD only accepts a static image, so every few seconds the script draws one with Pillow (320×320) and uploads it with set_screen("lcd", "static", ...). It shows the CPU and liquid temperatures, power, load, a gauge with the current mode, and a bottom line that cycles between the fan speed and what’s coming next (“up to heavy in 40 s”, “quiet in 1 min”). When the mode is changing, a dot glides along the gauge toward the target mode.
What happens when it stops
A fan controller has one job it must never fail at: don’t leave the fans stuck slow. If the service stops or USB hiccups:
- every device call is retried (NZXT devices sometimes drop a reply);
- on an error it reconnects, which re-uploads the Kraken’s own liquid curves first;
- on stop (
systemctl stop, or SIGTERM) it hands the radiator fans and pump back to those curves, which the Kraken then runs in firmware with no software at all, and sets the hub fans to 60% (the Smart Device has no curve of its own); - with no CPU temperature sensor, quiet mode never starts, because its “wake at 60 °C” check couldn’t work;
- the settings file is validated: a typo or missing value falls back to the built-in default instead of crashing.
How it was built
I built it with Claude. I described how I wanted the machine to behave (“quiet unless it’s really working”, “don’t flash the lights on every browser tab”, “never leave the fans stuck”), and Claude turned that into the logic above, checked against real readings from the status file.
Try it
One gotcha on newer kernels. Recent Linux kernels include an nzxt_kraken3 driver that grabs the Kraken as soon as it’s plugged in, and then liquidctl can’t control it. Block that driver and reboot:
echo "blacklist nzxt_kraken3" | sudo tee /etc/modprobe.d/no-kraken3.conf
The Smart Device’s kernel driver (nzxt_smart2) is fine: it runs alongside liquidctl without problems, so leave it loaded. If liquidctl finds your Kraken but every command fails, check this first.
You need Python 3, liquidctl, Pillow and (for RAM lights) OpenRGB with its server running. Copy kraken-display.example.json to /etc/kraken-display.json, change the curves and modes to taste, and install the two systemd units from the repo. kraken_display.py --print-config shows the settings it’s actually using, defaults included, and watch -n2 cat /run/kraken-display/status.txt shows what it’s doing right now.
If you’d rather have your PC loud and colourful all day: set dark.show_from to idle, set quiet.load_below to 0 (quiet never starts), and raise the curves. Same code, opposite personality.