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.
- bash
- pkexec command
- envycontrol (make sure to have EnvyControl installed globally!)
- Install all the dependencies
- Enable extension in official Gnome Extension store
- 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/GPU_profile_selector@lorenzo9904.gmail.com
- 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/GPU_profile_selector@lorenzo9904.gmail.com
journalctl -f -o cat /usr/bin/gnome-shell
- 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
gnome-extensions pack GPU_profile_selector@lorenzo9904.gmail.com \
--extra-source="README.md" \
--extra-source="prefs.xml" \
--extra-source="LICENSE" \
--extra-source="img" \
--extra-source="ui" \
--extra-source="lib"
- 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.