Installation
Arch
using AUR:
yay -S cardwire
then enable and start the service
sudo systemctl enable cardwired.service
sudo systemctl start cardwired.service
Note
cardwire-git is also available, this one is built from the dev branch, rather than a fixed release tag
Important
i’m also looking for an official maintainer for both AUR, since i do not use Arch.
Nix
Using the repo’s flake:
flake.nix:
cardwire = {
url = "github:opengamingcollective/cardwire";
inputs.nixpkgs.follows = "nixpkgs";
};
configuration.nix:
imports = [ inputs.cardwire.nixosModules.default ];
services.cardwire = {
enable = true;
settings = {
auto_apply_gpu_state = true;
experimental_nvidia_block = true;
battery_auto_switch = true;
};
};
Fedora
Using Terra
sudo dnf install cardwire
sudo systemctl enable cardwired.service
sudo systemctl start cardwired.service
Other distros
For now, other distros must clone the repo and use make to build and install Cardwire.
Build dependencies:
- cargo
- clang
- libbpf
git clone https://github.com/OpenGamingCollective/cardwire.git
make build
sudo make install
Caution
Makefile wasn’t tested, use with caution.
Important
For mainstream distros, i will be making an official install methods, like a copr for Fedora and a .deb for Debian based.
Non-systemd distros
Warning
Cardwire only supports systemd-based distros. If you want to use it on a non-systemd distro, either open a PR with patches for non-systemd or get it working on your setup.