How patrickmeerssche/dell-galien-controller works
Dell GAlien Controller is a Linux GUI for keyboard lighting and Dell laptop performance controls. The user changes settings in the app; it applies lighting over USB, sends privileged power-control requests to a root helper, and displays live system readings. Separate branches cover NVIDIA PowerMizer, CPU governor and Ubuntu power profiles, tray behavior, and saved preferences. Model detection is an install-time workflow, not a runtime hardware probe. The graph reflects README capabilities and indexed module references; some app dispatch details were not sampled, so those links rely on documented behavior.
Main entry points: src/main.rs App state and dispatch · src/main.rs Root helper · sensors.rs System sampler · tuning.rs Performance tuning
Components 19
Desktop app
- App state and dispatch
crates/app/src/main.rs - Control pages
crates/app/src/view.rs - Preferences
crates/app/src/settings.rs - Tray controls
crates/app/src/tray.rs
Device controls
- Keyboard lighting
crates/app/src/hid.rs - ACPI firmware interface
- Laptop keyboard controller
Monitoring and tuning
- System sampler
crates/app/src/sensors.rs - Linux sensor sources
- NVIDIA telemetry
- Performance tuning
crates/app/src/tuning.rs - Ubuntu power profiles
Helper and protocol
- Helper client
crates/app/src/client.rs - Request protocol
crates/proto/src/lib.rs - Root helper
crates/helper/src/main.rs
Model setup
- Supported model table
crates/proto/src/model.rs - Install-time detection
crates/helper/src/detect.rs - Installed model config
Other components
- Laptop user
Connections 24
- Laptop user → Control pages: uses controls
README.md - App state and dispatch → Control pages: renders
crates/app/src/main.rs - App state and dispatch → Preferences: loads and updates
crates/app/src/main.rs - App state and dispatch → Tray controls: starts tray
crates/app/src/main.rs - App state and dispatch → Keyboard lighting: applies lighting
README.md - App state and dispatch → Helper client: sends controls
crates/app/src/main.rs - App state and dispatch → System sampler: samples readings
crates/app/src/main.rs - App state and dispatch → Performance tuning: reads tuning state
crates/app/src/main.rs - Keyboard lighting → Laptop keyboard controller: controls over USB
crates/app/src/hid.rs - System sampler → Helper client: requests snapshot
crates/app/src/sensors.rs - System sampler → Linux sensor sources: reads metrics
crates/app/src/sensors.rs - System sampler → NVIDIA telemetry: samples GPU
crates/app/src/sensors.rs - Helper client → Root helper: sends socket requests
README.md - Helper client → Request protocol: encodes requests
crates/app/src/client.rs - Root helper → Request protocol: decodes requests
crates/helper/src/main.rs - Root helper → ACPI firmware interface: executes firmware calls
crates/helper/src/main.rs - Root helper → Supported model table: checks installed model
crates/helper/src/main.rs - Root helper → Performance tuning: sets privileged tuning
README.md - Performance tuning → NVIDIA telemetry: sets PowerMizer
crates/app/src/tuning.rs - Performance tuning → Ubuntu power profiles: sets power profile
crates/app/src/tuning.rs - Install-time detection → Supported model table: selects model
crates/helper/src/detect.rs - Install-time detection → Installed model config: writes model choice
crates/helper/src/detect.rs - Root helper → Install-time detection: runs install detection
crates/helper/src/main.rs - Supported model table → Installed model config: loads saved choice
crates/proto/src/model.rs