quner
Portable Linux efficiency daemon. Install it once and it quietly keeps your machine at its work-per-joule optimum — the same work, fewer joules — adapting between idle and heavy compute automatically.
quner probes what levers your host exposes (CPU governor, Intel RAPL package
power, NVIDIA power-cap) and tunes the ones present to an interior operating
point — not max clock / max TDP — then holds it. Absent levers are reported, not
silently ignored. Everything is reversible; nothing destructive happens without
you asking for it.
Recommended — install system-wide so root/sudo finds it directly:
sudo pipx --global install quner # or: sudo pip install quner
sudo quner install # just works — drops the service + timer
quner doctor # what levers this host exposes
sudo quner selftest # transient, auto-reverting proof
Alternative — per-user pipx install:
pipx install quner
quner doctor
sudo "$(which quner)" install # see note below
Why
sudo "$(which quner)"for a per-user install?pipxputs the binary in your user~/.local/bin, which isn't onroot'sPATH— so a baresudo qunergivescommand not found.sudo "$(which quner)"(orsudo env "PATH=$PATH" quner …) runs the binary you installed. After that first install, quner drops a/usr/local/bin/qunerlauncher, so plainsudo quner …works from then on (uninstallremoves it).PATH note:
pipx ensurepathappends to~/.bashrc, which only a login shell sources — open a new login shell / re-login (a plain terminal tab or a non-interactivessh host 'cmd'may not pick it up). The system-wide install above avoids this entirely.
The efficiency principle derives from QIG experiment EXP-132 (work-per-joule
peaks at an interior operating point); quner re-measures the optimum on your
hardware — no imported constants.
Honest expectation: single-digit-to-~30% energy savings, workload-dependent. This is an efficiency tool (same work, fewer joules), never energy creation.
Safety model
- Reversible. Every apply snapshots the prior governor / RAPL / GPU-cap to
/var/lib/quner/rollback.json;quner uninstalland the service's stop hook restore it.quner apply --restorereverts on demand. - Fail-loud. A lever the host doesn't expose is reported
unavailable, never silently no-op'd.quner doctorshows exactly what's controllable. - Dry-run everywhere. Every mutating command takes
--dry-run(prints the exact writes, changes nothing). - Inspectable / testable. All hardware paths are env-overridable
(
QUNER_SYSFS_ROOT,QUNER_NVIDIA_SMI,QUNER_STATE_DIR, …), so the real code runs against a fake tree with zero host impact — seesandbox/run_sandbox.sh. - reverse-PRIME is opt-in. The one reboot-level change never fires on install
or in the daemon; only via
quner prime enable(dry-run first, reboot-gated, with a TTY recovery path).
Validation ladder
- Sandbox (
bash sandbox/run_sandbox.sh) — proves ~all code with the real/sysbyte-identical before/after. Safe to run anywhere. quner selftest— transient, auto-reverting proof the levers move on your hardware (2-second governor flip, RAPL/GPU set-to-current, restore).sudo quner install— hold the operating point continuously.
See docs/design/ for the full design.
Release files for quner 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quner-0.1.3.tar.gz | 47.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quner-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 78.4 kB
Release files / quner-0.1.3.tar.gz
| Download URL | quner-0.1.3.tar.gz |
|---|---|
| Size | 47.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9aea5b5b283ce94ef4cb71276ba5c2ca5bd481cb2abeabe6823a8c50d88a2bab
|
|
BLAKE2b-256 checksum How to use checksums |
8012ba234066a268d75eaae51971f7322ee94837b58924655611d441b79424a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / quner-0.1.3-py3-none-any.whl
| Download URL | quner-0.1.3-py3-none-any.whl |
|---|---|
| Size | 30.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff9c2ef1c6abc3630079befb33bf1fe5b86284c3fd846bebd97c735352d9a02a
|
|
BLAKE2b-256 checksum How to use checksums |
96f183369545150ecd149829bca785387ab5fe5e8647930518afd394b1358fac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|