/PRIME-GPU-Profile-Selector

A GNOME Extension for GNOME 43 and above to allow you to switch between integrated, discrete, and offloading hybrid graphics from the control panel.

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

PRIME GPU Profile Selector GNOME Shell Extension

based on this extension: https://github.com/LorenzoMorelli/GPU_profile_selector

Description

A GNOME Shell (version 41 and above) extension which provides a simple way to switch between GPU profiles on Nvidia Optimus systems (i.e laptops with Intel + Nvidia) in a few clicks.

Designed to work with suse-prime and similar NVIDIA PRIME implementations, i.e. anything that provides the prime-select commands.

Features

  • Switch between Intel, Nvidia and PRIME Offload mode
  • Nautilus script to run executables on nVidia GPU if running in offload mode

Dependencies

Installation

Gnome-shell Extension website

Manual

  • Install all the dependencies
  • Clone this repo with:
    git clone https://github.com/alexispurslane/PRIME-GPU-Profile-Selector.git ~/.local/share/gnome-shell/extensions/PRIME_GPU_profile_selector@alexispurslane.github.com
    

Debuging and packaging

For looking command line logs

journalctl -f -o cat /usr/bin/gnome-shell

For looking updates using wayland (it opens a new wayland session in a window)

dbus-run-session -- gnome-shell --nested --wayland

Packaging the extension source for gnome extension website

gnome-extensions pack PRIME_GPU_profile_selector@alexispurslane.github.com \
--extra-source="README.md" \
--extra-source="LICENSE" \
--extra-source="img" \
--extra-source="ui" \
--extra-source="lib"