Skip to content

Architecture

G-Helper Linux is a C# app with an Avalonia UI, built as one Native AOT binary. Small native helpers do the work that needs root or real-time audio.

Part Language What it does
ghelper C# The UI, the tray, the settings and the hardware logic
gpu-helper C Root operations: GPU switching, eBPF filter, PCI, WMI, EC fan, MSR, Lenovo WMI
ryzenadj C AMD SMU power limits (bundled RyzenAdj)
ghelper-audio C The PipeWire virtual microphone and its effects
wlr-randr C Refresh rate on wlroots Wayland compositors
Boot service Shell Applies a pending GPU mode before the display manager

The binary carries the helpers and all system files: udev rules, scripts, the boot service, the sudoers rule, the menu entry and the icon. At each start it checks them, and installs or repairs them behind one pkexec prompt (src/Install/). So the app needs no installer. The root helpers live in the root-owned /usr/local/lib/ghelper, and one sudoers rule lets the app run them.

Windows (G-Helper) Linux (this port)
\\.\ATKACPI DeviceIoControl asus-nb-wmi and asus-armoury sysfs
WMI Win32_* queries /sys/class/dmi/id/
EnumDisplaySettings xrandr, wlr-randr, kscreen-doctor, gdctl
NvAPIWrapper gpu-helper (NVML) and nvidia-smi
AMD ADL amdgpu hwmon sysfs
NAudio ghelper-audio (PipeWire)
Task Scheduler autostart ~/.config/autostart/*.desktop
WinForms Avalonia
Folder Contents
src/Install/ Self-install and repair of the system files
src/Mode/ Performance modes and the mode switch
src/Gpu/ GPU modes and the eBPF, PCI and firmware backends
src/Fan/ Fan curves and hysteresis
src/Display/ Refresh rate, brightness, gamma, MiniLED
src/USB/ ASUS HID: Aura lighting, per-key RGB, XG Mobile
src/AnimeMatrix/ AniMe Matrix and Slash lid displays
src/Ally/ ROG Ally controller and handheld features
src/Input/ Special keys, FN-Lock remap, NumberPad, gamepad
src/Peripherals/ ASUS mice and Logitech HID++
src/Platform/Linux/ sysfs access, ASUS and Lenovo drivers, undervolting
src/I18n/ 38 languages and the hover help texts
src/UI/ Windows, dialogs and controls
vendor/gpu-helper/ The root helper and the eBPF filter source
audio-helper/ The PipeWire helper, RNNoise and GTCRN
install/ Install scripts, udev rules, boot service
nixos/ Flake, package and module
tests/ C# scenario tests
  1. You click Turbo. The window calls the mode control.
  2. It sets the thermal policy and the platform profile through sysfs.
  3. A background task writes the fan curves, power limits and undervolt for the mode.
  4. Root operations, for example the AMD SMU limits or the Intel undervolt, go through the root helpers with the sudoers rule.
  5. The UI and the tray update.

The app stores settings in ~/.config/ghelper/config.json with the keys of Windows G-Helper. See Config file.