#nvidia #driver #switching #intel #fedora #prime #gpu

app fedora-prime

Switching between intel/nvidia drivers made simple

2 releases

0.1.1 Jul 18, 2019
0.1.0 Jul 12, 2019

#483 in Unix APIs

MIT license

6KB
109 lines

Fedora prime

Switching between intel/nvidia drivers made simple.

Fedora prime is a program that allows you to switch between intel/nvidia drivers in simple way. When you're switching to intel, it blacklists all nvidia modules and sets nouveau options to run intel gpu and disable nvidia gpu. Whe you switch to nvidia, it does the opposite.

The only thing that it touches is /etc/modprobe.d/fedora-prime.conf and /var/lib/fedora-prime/mode. In the first file is done all the switching and the second one contains info about current mode.

Getting started

Prerequesites

Installation

Fedora prime isn't yet available as rpm package (but it will), so you need to build it from source. Don't worry it's very simple :)

First you'll need to install rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install rust toolchain and set is as default:

rustup default stable

Add $HOME/.cargo/bin to your path.

echo 'export PATH="$PATH:$HOME/.cargo/bin"' >> ~/.bash_profile

Install fedora prime:

cargo install fedora-prime

Usage

To use intel run:

fedora-prime intel

To use nvidia run:

fedora-prime nvidia

After switching you must reboot.

To check if it's working run:

glxinfo | grep 'OpenGL renderer'

License

This project is licensed under MIT License. See LICENSE file for details.

No runtime deps