ucc-rusted 1.1.3 is the Rust system control suite for Uniwill, Clevo, Mechrevo, and TUXEDO laptops (Linux-first x86_64, with L1/L2 Windows port checks in CI), migrated from Uniwill Control Center (UCC). The 10-crate Rust workspace (MSRV 1.89 in Cargo.toml, pinned CI toolchain 1.99.1 in rust-toolchain.toml, edition 2021) delivers the background daemon, /dev/uwcc + tuxedo-drivers + sysfs/BlueZ/NVML backends, direct USB HID lighting engine, CLI, SNI tray, session agent, and systemd sleep/recovery helpers, alongside the in-tree Rust-for-Linux kernel driver (kernel/uwcc-rs, GPL-2.0-only). The configuration window (ucc-gui) is a standalone on-demand C++20 / Qt6 D-Bus client with zero KF6 or QML dependencies per ADR-01. Pre-GA security hardening and optimization audit logs live in docs/hardening/, and the post-GA roadmap is tracked in docs/architecture/UCC_V1_1_TO_V2_0_MASTER_PLAN.md.
All privileged hardware operations execute inside a single root daemon (uccd) serialized through an internal command path. Desktop clients run unprivileged in the user session and communicate exclusively over the system D-Bus (com.uniwill.uccd at /com/uniwill/uccd, with a transparent legacy alias de.uniwill.uccd at /de/uniwill/uccd exposing 130 methods—including read-only HasTemporaryFanCurves—and 7 signals).
| Binary | Installed Path | Language / Stack | Privilege | Responsibility |
|---|---|---|---|---|
uccd |
/usr/bin/uccd |
Rust (crates/uccd) |
root (systemd) |
System daemon: hardware IO, fan curves, power/device policies, lighting, Bluetooth LCT cooler, telemetry, D-Bus server |
ucc-cli |
/usr/bin/ucc-cli |
Rust (crates/ucc-cli) |
User | Scriptable CLI (clap 4.5): status, live monitor, profiles, state map, fans, keyboard, water cooler, charging |
ucc-desktop-tray |
/usr/bin/ucc-desktop-tray |
Rust (crates/ucc-desktop) |
User | Standalone StatusNotifierItem (SNI) tray: power modes, signal-driven sync & live HasTemporaryFanCurves fan-auto state, battery watts, user NVIDIA process list (pidfd termination), Wayland activation-token forwarding |
ucc-session-agent |
/usr/bin/ucc-session-agent |
Rust (crates/ucc-session-agent) |
User | Session D-Bus observer: Lightbar notification triggers, KDE (kscreen) / Hyprland (hyprctl) refresh-rate offers, driver-health login alert |
ucc-hardware |
/usr/lib/ucc/ucc-hardware |
Rust (crates/uccd) |
root (helper) |
Direct hardware helper invoked by uccd.service ExecStopPost (--fan-auto) to restore firmware fan control on exit or crash |
ucc-sleep |
/usr/lib/ucc/ucc-sleep |
Rust (crates/uccd) |
root (helper) |
Suspend/resume hook invoked by uccd-pre-sleep.service and uccd-sleep.service |
ucc-import-check |
/usr/lib/ucc/ucc-import-check |
Rust (crates/uccd) |
User / root |
Offline configuration importer and schema validator |
ucc-gui |
/usr/bin/ucc-gui |
C++20 / Qt6::Widgets + Qt6::Charts |
User (on-demand) | Standalone settings window (ADR-01): zero KF6, QML, Qt6::Bluetooth, or libucc-dbus.so; 0 MB background footprint when closed |
The deprecated Plasma C++/QML applet (ucc-tray) is excluded from packaged builds (-DBUILD_TRAY=OFF, ADR-03); ucc-desktop-tray replaces it across KDE Plasma, Hyprland, Sway/Waybar, and GNOME (with an SNI/AppIndicator host). ucc-gnome remains an optional external GJS D-Bus adapter.
| Crate | Type | Role |
|---|---|---|
ucc-core |
Library | Domain types, profiles, fan curves, telemetry structs, error definitions (#![forbid(unsafe_code)]) |
ucc-config |
Library | /etc/ucc/settings (with /etc/ucc/settings.json fallback) and ~/.config/ucc/settings.json persistence, dirfd-pinned O_NOFOLLOW atomic saves with .bak recovery, offline importer (#![forbid(unsafe_code)]) |
ucc-hardware |
Library | DMI/platform detection, /dev/uwcc (uwcc-rs) & tuxedo-drivers ioctl, O_NOFOLLOW sysfs/procfs CPU/PCI/USB/ASPM/charging control, NVML (libloading, D3cold-safe), BlueZ GATT cooler, Windows WMI/WinRT seams |
ucc-lighting |
Library | Per-key RGB keyboard state, Mechrevo physical LED mapping, front Lightbar state machine and 5 notification animations, direct USB hidraw & Windows HID transports (048D:600B, CE00, 7001, 7000) |
ucc-dbus |
Library | zbus 5.5 D-Bus interface (com.uniwill.uccd + de.uniwill.uccd, 130 methods / 7 signals including HasTemporaryFanCurves), typed client proxies, unified Polkit authorizer |
uccd |
Binaries | uccd, ucc-hardware, ucc-sleep, ucc-import-check |
ucc-cli |
Lib + Bin | ucc-cli, shell completion and man-page generation |
ucc-desktop |
Lib + Bin | Desktop utilities + ucc-desktop-tray |
ucc-session-agent |
Lib + Bin | Session integration + ucc-session-agent |
xtask |
Tooling | Workspace build/staging/release automation (install-runtime, check-versions, parser-check, release, dist, dist-cli, build-fixtures, capture-gallery) |
ucc-gui exposes 11 functional tabs plus an inline driver-health warning banner on Overview:
| GUI Tab / State | Scope |
|---|---|
| Overview | CPU/GPU telemetry, active profile, water-cooler quick controls, driver status |
| Profiles | CPU cores/frequencies, power limits, TCC/Dynamic Boost, charging, display refresh, keyboard, state assignments |
| Cooler Settings | CPU/GPU fan curves, copy/save presets, sameSpeed shared fan duty |
| Watercool Settings | Bluetooth LCT connection, fan/pump manual overrides, LED, temperature curves |
| Keyboard & Hardware | Per-key RGB editor, brightness, hardware toggles (webcam, Fn Lock, display) |
| Lightbar | Per-power-mode color/brightness, 5 notification animations, Silent, Welcome, Test |
| Power & Devices | Independent AC / Type-C / Battery CPU & device policies (governor, EPP, turbo, ASPM, PCI/USB PM, Wi-Fi) |
| Battery & Processes | Battery discharge watts, current user's NVIDIA processes, startup & KDE refresh preferences |
| Monitor | Time-series history (temperature, power, clocks, fans, voltage) with zoom and markers |
| Experimental | Hardware WMI hotkey remapper and experimental EC/platform controls |
| About | Build version/commit, Qt version, repository links, credits, licenses, diagnostic logs |
| Driver Warning | Red Overview banner displayed when uwcc_rs / tuxedo-drivers hardware checks fail |
Rendered from the isolated read-only preview fixture (1440×1000):
- Platform families: Uniwill, Clevo, Mechrevo, and TUXEDO laptops exposed through compatible
tuxedo-driverskernel interfaces. Feature availability (TDP/cTGP limits, per-key RGB, Lightbar, charging profiles, webcam/Fn-Lock toggles, Bluetooth liquid cooler) is probed dynamically from driver and firmware capabilities. - Primary verified target: MECHREVO YAOSHI Series-X6AR55xY (Intel Core Ultra 9 275HX, NVIDIA RTX 5080 Laptop, CachyOS, Qt 6.12, KDE Wayland). Upstream Uniwill/Clevo/TUXEDO device tables are preserved, though full hardware re-testing on other models has not been executed.
- Mechrevo physical keyboard calibration: Sparse physical LED indices are preserved: Enter =
56, Left Shift =21, Left Ctrl =0. - Bluetooth water cooler (LCT): Supported for Uniwill liquid-cooled chassis (
STELLARIS1XI04,STEPOL1XA04,STELLARIS1XI05,STELLARIS16I06,STELLARIS17I06,STELLARIS16A07,STELLARIS16I07,PCS_X6FR559Y,XNE16A25,XNE16E25) via BlueZ GATT. - Kernel driver prerequisite: Install either the in-tree
uwcc-rsDKMS driver (seedocs/UWCC_DRIVER.md) or compatibletuxedo-driversand matching kernel headers. Seedocs/HARDWARE_MATRIX.mdfor the full device matrix. - Explicitly excluded features:
gpu-runis omitted by design.
Repository and source releases: https://github.com/Frixlt/UCC (branch main).
Signed binary packages ucc-rusted and uwcc-dkms are published on every tagged release to GitHub Pages (https://frixlt.github.io/UCC/arch/$arch). Before adding the repository, download ucc-rusted.gpg and KEY_FINGERPRINT.txt out-of-band from the GitHub Release assets and verify the key fingerprint matches before trusting it in pacman:
curl -fsSLO https://github.com/Frixlt/UCC/releases/latest/download/ucc-rusted.gpg
curl -fsSLO https://github.com/Frixlt/UCC/releases/latest/download/KEY_FINGERPRINT.txt
gpg --show-keys --with-fingerprint ucc-rusted.gpg
cat KEY_FINGERPRINT.txt
sudo pacman-key --add ucc-rusted.gpg
sudo pacman-key --lsign-key "$(tr -d '[:space:]' < KEY_FINGERPRINT.txt)" # after comparing with gpg output aboveAdd the signed repository to /etc/pacman.conf:
# /etc/pacman.conf
[ucc-rusted]
SigLevel = Required
Server = https://frixlt.github.io/UCC/arch/$archsudo pacman -Syu ucc-rusted uwcc-dkms
# subsequent updates work via pacman or yay:
yay -SyuThe root PKGBUILD builds package ucc-rusted (provides uniwill-control-center and frixit-control-center, replaces frixit-control-center, conflicts with uniwill-control-center, uniwill-control-center-mechrevo, and frixit-control-center):
git clone https://github.com/Frixlt/UCC.git
cd UCC
UCC_SOURCE_DIR="$PWD" makepkg -siPackaging metadata resides in debian/ (requires rustc >= 1.89, cargo, cmake >= 3.20, g++ >= 9, pkgconf, qt6-base-dev, qt6-charts-dev, qt6-tools-dev, nlohmann-json3-dev, libsystemd-dev, libxrandr-dev, libudev-dev):
make debPackaging metadata resides in ucc.spec:
make rpmflake.nix exports packages.ucc (default), overlays.default, and nixosModules.uccd (default):
nix build .#ucc
nix flake checkNote: DEB, RPM, and Nix recipes are maintained in-tree but are not published as prebuilt binary releases.
Prerequisites: Rust toolchain >= 1.89 (CI pinned to 1.99.1 via rust-toolchain.toml), CMake >= 3.20, Ninja, C++20 compiler, qt6-base, qt6-charts, nlohmann-json, systemd / dbus / polkit headers.
git clone https://github.com/Frixlt/UCC.git
cd UCC
# 1. Build all 7 Rust runtime binaries + xtask
CARGO_TARGET_DIR=/tmp/ucc-cargo-target \
cargo build --workspace --bins --release --locked
# 2. Build standalone Qt6 GUI (KF6-free, Plasma applet disabled, normal mode)
cmake -S . -B /tmp/ucc-build-normal -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_GUI=ON \
-DBUILD_TRAY=OFF \
-DBUILD_CLI=OFF \
-DUCC_PACKAGE_RUST_RUNTIME=ON \
-DUCC_READ_ONLY_PREVIEW=OFF
cmake --build /tmp/ucc-build-normal --parallel 2
# 3. Verify standalone ucc-gui ldd invariants (M12.7 / ADR-01)
bash scripts/check_gui_ldd.sh /tmp/ucc-build-normal/bin/ucc-gui
# 4. Install GUI assets + Rust runtime binaries, completions, and man pages
sudo cmake --install /tmp/ucc-build-normal
sudo /tmp/ucc-cargo-target/release/xtask install-runtime /usr /tmp/ucc-cargo-target/releaseEnable and start the system daemon and suspend/resume hooks:
sudo systemctl daemon-reload
sudo systemctl enable --now uccd.service
sudo systemctl enable uccd-sleep.service
systemctl status uccd.serviceucc-cli status # System dashboard (CPU, GPU, fans, cooler, charging)
ucc-cli monitor # Live telemetry stream (alias: mon)
ucc-cli profile list # List available profiles (alias: prof)
ucc-cli statemap # View AC / Battery / Type-C / Water Cooler mapping
ucc-cli fan # Fan profile and curve status
ucc-cli keyboard # Keyboard backlight state (alias: kb)
ucc-cli cooler # Bluetooth water cooler status (aliases: watercooler, wc)
ucc-cli charging # Battery charging thresholds (alias: charge)ucc-gui # Launch on-demand Qt6 configuration window
ucc-desktop-tray # Start standalone SNI tray (autostarted via XDG)
ucc-session-agent # Start session agent (autostarted via XDG)Inspect ucc-gui against an isolated fixture without touching /etc/ucc or live hardware:
./run-preview.sh- Automated CI Metrics: The
Tests,D-Bus API, andSPDXbadges in the header are generated automatically by.github/workflows/build.yml(scripts/badge_stats.py) from the canonicalrust-primaryworkspace test run, the primaryRelWithDebInfoCTest JUnit XML report,crates/ucc-dbus/src/interface.rs, and the repository SPDX audit, and published to the orphanbadgesbranch only after all checks onmainsucceed. - Supply Chain & Coverage: All GitHub Actions are 40-character SHA-pinned; OpenSSF Scorecard (
.github/workflows/scorecard.yml) uploads SARIF results to GitHub Security, Codecov (.github/workflows/coverage.yml) tracks Rust workspace line coverage viacargo-llvm-cov,cargo-auditandcargo-deny(deny.toml) enforce advisory and license compliance across Linux and Windows targets, andmake distemits a CycloneDX SBOM.
The repository ships 1,196 Rust workspace tests across 10 crates plus 13 host-testable no_std unit tests in kernel/uwcc-rs/src/ (1,209 Rust tests total), and 27 CTest targets (3 C++ unit tests, 5 Python contract suites, 4 GNOME Shell tests, 12 Qt6 GUI tests including 5 test_gui_audit_* shards, libucc_dbus_async, test_rust_uccd_interop, and test_gui_ldd_invariants verifying zero KF6, QML/Qt6Qml/Qt6Quick, Qt6Bluetooth, or libucc-dbus.so links per M12.7 / ADR-01). CI enforces real MSRV 1.89 alongside the pinned 1.99.1 toolchain (rust-toolchain.toml), 40-char SHA-pinned GitHub Actions, cargo-audit, cargo-deny (deny.toml), strict SPDX enforcement (401/401), reproducible make dist + CycloneDX SBOM, and Windows L1/L2 checks (windows-check.yml). Detailed hardening/v1.0-ga audit logs are recorded in docs/hardening/.
export CARGO_TARGET_DIR=/tmp/ucc-cargo-target
cargo run -p xtask -- check-versions
cargo clippy --workspace --all-targets -- -D warnings
dbus-run-session -- cargo test --workspace --locked --offline --no-fail-fastFull CTest (normal -DUCC_READ_ONLY_PREVIEW=OFF and preview -DUCC_READ_ONLY_PREVIEW=ON), Python/GNOME suites, and hardware checklists are documented in docs/TESTING.md.
- System configuration:
/etc/ucc/settings(primary path, with/etc/ucc/settings.jsonfallback; owned byroot, created/imported locally; private settings and Bluetooth addresses are never shipped in packages). - User preferences:
~/.config/ucc/settings.json. - Atomic
O_NOFOLLOWwrites: Configuration, runtime lockfile, and deployment I/O use dirfd-pinnedO_DIRECTORY | O_NOFOLLOW | O_CLOEXECdescriptors with FIFOO_NONBLOCKguards, syncing temporary files before atomic rename while maintaining a.bakbackup for automatic corruption recovery.
- Privilege separation: Only
uccd(and root helper hooksucc-hardware,ucc-sleep) executes privileged hardware operations.ucc-gui,ucc-cli,ucc-desktop-tray, anducc-session-agentrun unprivileged. - Polkit authorization: D-Bus and IPC access is uniformly gated by
com.uniwill.uccd.read,com.uniwill.uccd.control, andcom.uniwill.uccd.manage-hardware(with legacyde.uniwill.uccd.*fallback), backed by fail-closedPolkitCancelGuardand isolated per-UID / per-sender read quotas. Active local sessions are authorized for standard control. - Process termination boundary:
ucc-desktop-tray/ucc-guiterminate only the current unprivileged user's NVIDIA client processes viapidfdafter confirmation. No privileged process-kill D-Bus API exists inuccd. - Supply-chain & udev hardening:
deny.tomlenforces license, crate-source, and RustSec advisory checks across Linux and Windows CI targets (cargo-deny), andkernel/uwcc-rs/udev/99-uwcc.rulesrestricts the ITE HID lighting device (048d:ce00) toMODE="0660", GROUP="root". - Systemd sandboxing:
uccd.serviceenforcesProtectSystem=strict,ProtectHome=yes,NoNewPrivileges=true,ProtectKernelModules=yes,ProtectControlGroups=yes,RestrictNamespaces=yes,LockPersonality=yes,MemoryDenyWriteExecute=yes,ReadOnlyPaths=-/proc/sys -/proc/sysrq-trigger -/sys/firmware,RestrictAddressFamilies=AF_UNIX AF_NETLINK, andCapabilityBoundingSet=CAP_SYS_RAWIO CAP_NET_ADMIN CAP_SYS_ADMIN.
- Single hardware controller:
uccd.servicedeclaresConflicts=tccd.service tuxedo-power.service. Only one hardware controller may run at a time. - Crash-safe fan recovery:
uccd.servicerunsExecStopPost=-/usr/lib/ucc/ucc-hardware --fan-auto, returning fan duty control to firmware even after an abnormal daemon exit. - Fan curve semantics & live tray sync: With
sameSpeedenabled, both internal fans followmax(cpu_fan_duty, gpu_fan_duty). A third fan is not exposed as a separate editable curve by the current backend.ucc-desktop-traysynchronizes its livefan_autotoggle directly fromuccdvia read-onlyHasTemporaryFanCurveson connect, reconnect, and snapshot refresh (with gracefulUnknownMethodfallback for older daemons). Manual water-cooler Fan/Pump values apply immediately and persist when saved into a system profile;Autorestores temperature curves. - Power policy precedence: Manual power mode (
AC/Type-C/Battery) overrides automatic physical power-source detection. Connection-scoped D-Bus application requests can raise the effective mode and are automatically cleared when the requesting D-Bus client disconnects. When device/CPU policy management is enabled, its CPU settings take precedence over the active profile. - Lightbar privacy & state:
Flash (stays off)keeps the Lightbar dark between notifications across Save, power transitions, and daemon startup.Silentsuppresses regular animations whileTestbypassesSilentusing the saved settings of the effective power mode. Notification text/content is never forwarded touccd.
| Document | Contents |
|---|---|
docs/ARCHITECTURE.md |
System architecture, crate boundaries, actor/serialization model, ADR-01 / ADR-03 |
docs/architecture/UCC_V1_1_TO_V2_0_MASTER_PLAN.md |
v1.1 to v2.0 architecture & release roadmap master plan |
docs/hardening/ |
v1.0.0 GA (hardening/v1.0-ga) 4-agent security hardening & optimization audit logs (Agent 1, Agent 2, Agent 3, Agent 4) |
docs/HARDWARE_MATRIX.md |
Supported Uniwill/Clevo/Mechrevo/TUXEDO chassis, capability probes, LED calibration |
docs/UWCC_DRIVER.md |
In-tree uwcc-rs Rust-for-Linux kernel driver (/dev/uwcc, GPL-2.0-only, SMRW, PWUP, RamFan 1.5, hwmon, DKMS) |
docs/rust/WINDOWS_PORT.md |
Windows L1/L2 port architecture (ADR-06): Named Pipe IPC, WindowsWmiEcBackend, WinRT BLE, Windows HID, CI checks |
docs/DBUS_API.md |
Complete reference for com.uniwill.uccd / de.uniwill.uccd (130 methods including HasTemporaryFanCurves, 7 signals, Polkit actions) |
docs/CLI_REFERENCE.md |
ucc-cli subcommands, flags, JSON output schemas, exit codes |
docs/BUILDING.md |
Build dependencies, CMake/Cargo flags, packaging (Arch/DEB/RPM/Nix), preview mode |
docs/TESTING.md |
Workspace tests (1,196+13 Rust / 27 CTest), ucc-gui ldd invariants, D-Bus interop, GUI audit fixtures |
docs/MIGRATION_AND_RECOVERY.md |
Offline config migration, backup/rollback procedures, kernel driver recovery |
docs/COMPARISON.md |
Feature and architectural comparison against 0.3.0, upstream UCC Revorked (eb98bfa), and 6 tools |
docs/releases/1.1.3.md |
v1.1.3 Release Notes (RU) |
docs/releases/1.0.1.md |
v1.0.1 Hotfix Release Notes (RU) |
docs/releases/1.0.0.md |
v1.0.0 GA Release Notes (RU) |
docs/releases/1.0.0-rc2.md |
v1.0.0-rc2 Pre-Release Notes & rc1 vs rc2 summary (RU) |
docs/releases/1.0.0-rc1.md |
v1.0.0-rc1 Pre-Release Notes & main (0.3.0) vs 1.0.0-rc1 comparison (RU) |
CHANGELOG.md |
Release history (1.1.3, 1.0.1, 1.0.0, 1.0.0-rc2, 1.0.0-rc1, 0.3.0, upstream 0.2.0) |
docs/AI_AGENT_GUIDE.md |
Codebase navigation, test harnesses, and modification constraints for automated agents |
AGENTS.md |
Repository commit discipline, pre-commit Cargo checks, fixture rules, privilege rules |
ucc-rusted preserves upstream copyright headers, Git history, and open-source notices from:
noteMASTER11/UCC-Revorked(upstream baseline commiteb98bfa)nanomatters/ucc(original Uniwill Control Center foundation)tuxedocomputers/tuxedo-control-center(TUXEDO IO layer; external kernel drivers retain their own licenses)
Detailed provenance and third-party attributions are documented in PROJECT_ORIGINS.md and THIRD_PARTY.md.
Maintainer / Author: frixit <05mba0622@gmail.com>. Userspace suite & GUI are licensed under GPL-3.0-or-later (COPYING); the in-tree kernel driver (kernel/uwcc-rs/) is licensed under GPL-2.0-only (WITH Linux-syscall-note on UAPI headers).




















