Skip to content

Build from source

Terminal window
sudo apt install dotnet-sdk-10.0 clang zlib1g-dev libpipewire-0.3-dev libwayland-dev pkg-config
Terminal window
git clone https://github.com/utajum/g-helper-linux.git
cd g-helper-linux
./build.sh

The output is a Native AOT binary at dist/ghelper. It contains the native helpers (gpu-helper, ryzenadj, the audio helper and wlr-randr).

Terminal window
sudo ./install/install-local.sh

It installs the same system files as install.sh, but uses the binary from dist/.

Terminal window
./build.sh --fast && ./dist/ghelper

--fast (or --no-aot) makes a folder build with fast incremental rebuilds.

Terminal window
GHELPER_DEV=1 ./dist/ghelper

GHELPER_DEV=1 shows two buttons in the main window footer. Dev Windows opens any window without the matching hardware. Dev Panels shows panels that need hardware you do not have, for example the GPU, AniMe Matrix or Ally panels.

Terminal window
cd nixos
nix build .#ghelper

The package builds from source, with no build.sh step. To use the module in a flake, add github:utajum/g-helper-linux?dir=nixos as an input and set services.ghelper.enable = true;. scripts/update-nix-deps.py updates nixos/deps.json after NuGet changes.

Run these before you open a pull request. CI runs them too.

Terminal window
dotnet run -c Debug --project tests/GHelper.Linux.Tests
bash install/tests/test-ghelper-gpu-boot.sh
bash install/tests/test-gpu-block-helper.sh
bash install/tests/test-gpu-helper.sh
./scripts/i18n-check.sh

The tests never run sudo or pkexec on your machine.

  1. Fork utajum/g-helper-linux
  2. Make your change on a branch
  3. Run the tests above
  4. Open a pull request with a short description of the change

Every new control needs two kinds of text:

  1. Label: add a key to src/I18n/Languages/English.cs, then the same key to all other language files in that folder.
  2. Hover help (tooltip): add a short explanation to src/I18n/HelpText/English.cs, then to all other files in that folder. The key is WindowType.controlName, for example MainWindow.buttonEco. Controls made in code use the bare name.

Write the help text for a user: what the control does, and what it changes. Users see it when Extra > General > Show help on hover is on.

Then run the check. It fails on missing keys, extra keys and unused text:

Terminal window
./scripts/i18n-check.sh

Open an issue. Say your laptop model and what you want the app to do.