Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

zurrty/primer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED LOL!!!

just type DRI_PRIME=1 as an env variable!!

Primer

PRIME GPU offload helper for Wayland systems, written in Rust.

Table of Contents

Installation

A dialog library is recommended. See if your distribution has zenity or dialog.

Arch Linux (AUR)

# for yay
yay -S primer-git

# for paru
paru -S primer-git

Binary

Binary downloads are included with each release.

From Source

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.

Usage

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.

Supported Drivers

  • nvidia-open
  • radeon
  • i915

Tested Hardware

NVIDIA

GPU Driver Enclosure Working
3070 nvidia-open-dkms-520.56.06-1 Core X yes