GPU_profile_selector
GPU_profile_selector copied to clipboard
A simple gnome shell extension which provides a simple way to switch between GPU profiles on Nvidia Optimus systems (i.e laptops with Intel + Nvidia or AMD + Nvidia configurations) in a few clicks. In...
GPU profile selector Gnome-Shell-Extension
Description
A simple gnome shell extension which provides a simple way to switch between GPU profiles on Nvidia Optimus systems (i.e laptops with Intel + Nvidia or AMD + Nvidia configurations) in a few clicks. In particular this extension is a graphic interface for envycontrol program.
Dependencies
- bash
- pkexec command
- envycontrol (make sure to have EnvyControl installed globally!)
Installation
Gnome-shell Extension website
- Install all the dependencies
- Enable extension in official Gnome Extension store
AUR (not personally tested)
Manual
- Install all the dependencies
- Clone this repo with:
- If you are using Gnome 43 or above:
git clone https://github.com/LorenzoMorelli/GPU_profile_selector.git ~/.local/share/gnome-shell/extensions/[email protected]
- Else (Gnome 42 or below):
git clone --depth 1 --branch gnome-42-or-below https://github.com/LorenzoMorelli/GPU_profile_selector.git ~/.local/share/gnome-shell/extensions/[email protected]
Debuging and packaging
For looking command line logs
journalctl -f -o cat /usr/bin/gnome-shell
For debugging using wayland
- To show all messages:
export G_MESSAGES_DEBUG=all
- To set window size:
export MUTTER_DEBUG_DUMMY_MODE_SPECS=1366X768
- To open 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 [email protected] \
--extra-source="README.md" \
--extra-source="prefs.xml" \
--extra-source="LICENSE" \
--extra-source="img" \
--extra-source="ui" \
--extra-source="lib"
TODO
- Add setting for choosing shell path.
- In "AttachedToBatteryView" change the title by getting it directly from envycontrol.
- Automatically install envycontrol tool during extension installation phase.
- Detect if envycontrol is not installed instead of prompting a restart popup in anycase.
- Add a setting for allowing user to choose where to place the extension view between topbar and menu panel.
- Change the big V close the gpu profile with icon.