just type DRI_PRIME=1
as an env variable!!
PRIME GPU offload helper for Wayland systems, written in Rust.
A dialog library is recommended. See if your distribution has zenity
or dialog
.
# for yay
yay -S primer-git
# for paru
paru -S primer-git
Binary downloads are included with each release.
git clone https://github.com/zurrty/primer.git
cd primer
cargo build --profile release
Dependencies:
- systemd (sorry artix users)
- rust (obviously)
- zenity (for GUI prompts)
Note that Rust needs to be installed to build primer. See if your distribution has a rustup
package.
To use, simply put primer
before any command you want to run.
If you want all of your Steam games to use your dedicated graphics (when available), you can launch Steam like so:
primer steam
The config is stored at ~/.config/primer/config.txt
.
Note for eGPU users: Don't disconnect your eGPU while primer is running, as it may cause your system to freeze.
nvidia-open
radeon
i915
GPU | Driver | Enclosure | Working |
---|---|---|---|
3070 | nvidia-open-dkms-520.56.06-1 | Core X | yes |