Build from source
Prerequisites
Section titled “Prerequisites”sudo apt install dotnet-sdk-10.0 clang zlib1g-dev libpipewire-0.3-dev libwayland-dev pkg-configsudo dnf install dotnet-sdk-10.0 clang zlib-devel pipewire-devel wayland-devel pkg-configsudo pacman -S dotnet-sdk clang libpipewire wayland pkg-configgit clone https://github.com/utajum/g-helper-linux.gitcd g-helper-linux./build.shThe output is a Native AOT binary at dist/ghelper. It contains the
native helpers (gpu-helper, ryzenadj, the audio helper and
wlr-randr).
Install your build
Section titled “Install your build”sudo ./install/install-local.shIt installs the same system files as install.sh, but uses the binary
from dist/.
Fast development builds
Section titled “Fast development builds”./build.sh --fast && ./dist/ghelper--fast (or --no-aot) makes a folder build with fast incremental
rebuilds.
GHELPER_DEV=1 ./dist/ghelperGHELPER_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.
cd nixosnix build .#ghelperThe 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.
dotnet run -c Debug --project tests/GHelper.Linux.Testsbash install/tests/test-ghelper-gpu-boot.shbash install/tests/test-gpu-block-helper.shbash install/tests/test-gpu-helper.sh./scripts/i18n-check.shThe tests never run sudo or pkexec on your machine.
Contributing
Section titled “Contributing”- Fork utajum/g-helper-linux
- Make your change on a branch
- Run the tests above
- Open a pull request with a short description of the change
New controls need text and a tooltip
Section titled “New controls need text and a tooltip”Every new control needs two kinds of text:
- Label: add a key to
src/I18n/Languages/English.cs, then the same key to all other language files in that folder. - Hover help (tooltip): add a short explanation to
src/I18n/HelpText/English.cs, then to all other files in that folder. The key isWindowType.controlName, for exampleMainWindow.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:
./scripts/i18n-check.shFeature requests
Section titled “Feature requests”Open an issue. Say your laptop model and what you want the app to do.