How cyear/nuctool works
NUCtool is a Windows Tauri control panel for supported Uniwill/Intel NUC X15 laptops. Users select monitoring, tuning, fan, system, display, keyboard, and lighting controls; the web UI invokes Rust commands that read or change hardware state, with telemetry/status returned to the interface. Rust connects to ACPI/EC and Uniwill WCF/WMI interfaces; supporting capabilities include startup-task management, driver checks, localization, and an OSD. The map reflects README capabilities, but unsampled command bodies and modules limit precise subsystem wiring.
Main entry points: lib.rs Tauri runtime · main.js Control panel · osd.rs OSD service · bootstrap.js Page bootstrap
Components 21
Desktop interface
- Page bootstrap
src/bootstrap.js - Control panel
src/js/main.js - UI localization
src/js/i18n.js - Feature pages
src/pages - OSD display
src/osd.html
Control services
- Tauri runtime
src-tauri/src/lib.rs - Fan control
src-tauri/src/fan_control.rs - Fan configuration
src-tauri/src/config.rs - OSD service
src-tauri/src/osd.rs
Hardware access
- ACPI access
src-tauri/src/acpi/uniwillacpi.rs - WCF interface
src-tauri/src/acpi/uniwillwcf.rs - WMI interface
src-tauri/src/acpi/uniwillwmi.rs - Fn key hooks
src-tauri/src/acpi/uniwillfnhook.rs
Runtime support
- Startup tasks
src-tauri/src/win/task.rs - Windows language
src-tauri/src/win/language.rs - GSC driver check
src/js/gsc-check.js - OSD translations
src-tauri/locales
Other components
- Laptop user
- Uniwill WCF driver
- ACPI driver
- Windows services
Connections 25
- Laptop user → Page bootstrap: opens
- Page bootstrap → Feature pages: loads pages
- Page bootstrap → Control panel: starts
- Control panel → Tauri runtime: invokes commands
- Control panel → UI localization: initializes
- Control panel → GSC driver check: initializes
- Tauri runtime → Fan control: dispatches control
- Tauri runtime → Fan configuration: loads and saves
- Tauri runtime → ACPI access: reads and writes
- Tauri runtime → WCF interface: calls hardware API
- Tauri runtime → WMI interface: queries
- Tauri runtime → Fn key hooks: uses key hooks
- Fan control → ACPI access: reads sensors
- Fan control → WMI interface: reads GPU data
- WCF interface → Uniwill WCF driver: calls
- ACPI access → ACPI driver: device I/O
- WMI interface → Windows services: queries
- Fn key hooks → Windows services: registers hooks
- Tauri runtime → OSD service: creates and signals
- OSD service → OSD display: updates window
- OSD service → Windows language: detects language
- OSD service → OSD translations: loads translations
- Tauri runtime → Startup tasks: manages autostart
- Startup tasks → Windows services: schedules task
- GSC driver check → Tauri runtime: checks driver data