Skip to content

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.

License

Notifications You must be signed in to change notification settings

LorenzoMorelli/GPU_profile_selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

screenshot example

Dependencies

Installation

Gnome-shell Extension website

AUR

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/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
    

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 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"

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks