diff --git a/README.md b/README.md index 9524ca5..889e5a4 100644 --- a/README.md +++ b/README.md @@ -5,23 +5,33 @@ A Gnome extension to show Nvidia GPU information (https://extensions.gnome.org/extension/1320/nvidia-gpu-stats-tool/) -# Supported Gnome versions +## Supported Gnome versions The "master" branch supports only Gnome v45+. For older shell versions, please check out the "legacy" branch. -# Requirements -nvidia-settings and nvidia-smi +## Requirements +The extension requires `nvidia-smi`, which should be included with the drivers. +Additionally, `nvidia-settings` is supported as a data source. -# Installation from git +If you still use [Bumblebee](https://wiki.archlinux.org/title/Bumblebee), the data can also be sourced through `optirun` (this is untested and may be deprecated in future versions). + +## Installation from git git clone https://github.com/ethanwharris/gnome-nvidia-extension.git cd gnome-nvidia-extension make make install -Use `alt + f2`, `r`, `Enter` to restart the gnome shell (if this is not allowed then log out and log back in) -Enable the extension in the gnome tweak tool. +Restart gnome shell to load the extension: +- On Wayland, log out and back in. +- On X11, you can also use `alt + f2`, `r`, `Enter` to reload more quickly. + +Afterwards, you can enable the extension in gnome-extensions. + +## Selecting Properties +By default, no measurements are displayed in the menu bar. +You can open the dropdown menu and select the properties to be shown. -# Icons +## Icons For icons we use font-awesome: http://fontawesome.io/ diff --git a/src/nvidiautil@ethanwharris/settingsAndSmiProvider.js b/src/nvidiautil@ethanwharris/settingsAndSmiProvider.js index 8961f98..3a57873 100644 --- a/src/nvidiautil@ethanwharris/settingsAndSmiProvider.js +++ b/src/nvidiautil@ethanwharris/settingsAndSmiProvider.js @@ -20,18 +20,11 @@ export class SettingsAndSmiProvider { } getProperties(gpuCount) { - this.storedProperties = [ - new SettingsProperties.UtilisationProperty(gpuCount, Processor.NVIDIA_SETTINGS), - new SettingsProperties.TemperatureProperty(gpuCount, Processor.NVIDIA_SETTINGS), - new SettingsProperties.MemoryProperty(gpuCount, Processor.NVIDIA_SETTINGS), - new SettingsProperties.FanProperty(gpuCount, Processor.NVIDIA_SETTINGS), - new SmiProperties.PowerProperty(gpuCount, Processor.NVIDIA_SMI), - ]; - return this.storedProperties; + return this.smi.getProperties(gpuCount); } retrieveProperties() { - return this.storedProperties; + return this.smi.retrieveProperties(); } hasSettings() {