nVidia Prime GPU Display

by pdcurtis
UUID: nvidiaprime@pdcurtis
Score: 0
Last edited: 3 weeks ago
Last commit: b3601c8be7df91adc139f572d41094a9f2870713

Displays which Graphics processor is active and nVidia GPU Temperature when active and in a horizontal panel

Nvidia Prime Display Applet

Summary

The Nvidia Prime Display Applet is a cut down version of the Bumblebee Applet I wrote a couple of years ago to enable me to monitor the temperature of the nVidia Discrete Graphics Processor Unit on my laptop which has an Core i7 Haswell architecture and Optimus technology to switch between the integrated Intel 4600 graphics and discrete nVidia GTX 765M graphics.

The preferred method of switching with the latest kernels and nVidia drivers no longer uses Bumblebee but utilises nVidia Prime which is simpler to install and use. This Applet allows one to monitor whether the power consuming discrete graphics is on and display the nVidia GPU temperature, but only when it is enabled as monitoring the temperature requires the graphics processor to be turned on. The Bumblebee applet is still available for those who wish to use Bumblebee, which still has some advantages over nVidia Prime, although it is more difficult to install.

Rationale

It is useful to have continuous indication of whether the Discrete Graphics Processor Unit is in use and its temperature which is a concern on some laptops.

Features

The latest versions 3.3.0 and higher work with horizontal and vertical panels. The indication of which GPU is active has changed to be an icon. The GPU temperature display is beside the icon on horizontal panels and below on vertical panels. The display is shortened (by removing the degree symbol) if over 100 degrees on vertical panels because of width restrictions.

The temperature display in the panel can now be inhibited to save space if required in settings. One can also configure the update rate of the applet in settings.

Clicking the applet opens nvidia-settings which allows one to change GPU in the same way as the built in NVIDIA Prime applet.

The right click context menu also gives the ability to run the nVidia Settings program as well as the System Monitor and Power Statistics, all useful for monitoring and controlling power consumption which is paramount when using a laptop on batteries.

There is error checking to ensure the nvidia drivers, nvidia-settings and bbswith are loaded. It displays a message of Err if these are not found.

Requirements

The applet requires at least Cinnamon 2.0 to access the configuration from within the applet. Mint versions with less than Cinnamon 2.2 have now passed their end of life so all current version are supported.

the nVidia graphics packages must be installed and working before installing this applet but no other packages are essential. Cinnamon 3.2 or higher is required to support a vertical panel but not to support other features of the applet.

There is a tick box option on the configuration screen to access enhanced functionality through the Right Click Context Menu. This needs a Cinnamon Restart or log out/in before the change is visible. Currently this adds the glxspheres64 Graphics Processor Test to the menu.

glxsheres64 only needs to be installed if you want to use the applet to test the relative performances of the Intel and nVidia graphics processors. glxsheres64 is part of the VirtualGL package which needs to be installed from http://sourceforge.net/projects/virtualgl/files/VirtualGL/ - download the latest version and install using gdebi (should be the default for a right click on the downloaded file). It should run about five times faster when the nVidia GPU is active and is a very good test as to how good your cooling is for both the CPU and nVidia GPU.

Translations and other Contributions

The internal changes required in the applet to allow translations are being implemented but no translations are available at this time. Translations are usually contributed by people fluent in the language and will be very much appreciated. Users please note I am rarely able to take responsibility for the accuracy of translations!

Although comments and suggestions are always welcome any contributions which are contemplated must follow discussion. Changes can have many unintended consequences and the integrity of the applet is paramount. Unsolicited Pull Requests will never be authorised other than for urgent and critical bug fixes from the Cinnamon Team or for translations.

Manual Installation:

  • The nVidia drivers and nVidia Prime must be installed and working before installing this applet.
  • Download from the Spices Web Site
  • Unzip and extract folder nvidiaprime@pdcurtis to ~/.local/share/cinnamon/applets/
  • Install glxspheres64 if required.
  • Enable the applet in System Settings -> Applets
  • You can also access the Settings Screen from System Settings -> Applets or from the Applets Context menu

Changelog for recent versions

3.3.2

  • Updates to some tooltips and README.md to reflect the latest changes better.

3.3.1

  • Add checks that Nvidia drivers and nvidia-settings are loaded
  • Allow GPU temperature to be displayed in vertical panels but shorten (by removing the degree symbol) if over 100 degrees on vertical panels.
  • Update nvidiaprime.pot to identify changes which need to be translated.

3.3.0

Major changes to support vertical panels and to use icons instead of text to harmonise with other cinnamon applets such as nvidia-prime

  • Allow use of vertical as well as horizontal panels after version number check to see if they are supported ie Cinnamon 3.2 and higher
  • Change to TextIcon applet
  • Addition of setting to hide temperatures on horizontal panel.
  • Improved Translation function and translation strings.
  • Changed temporary output file to /tmp/.gpuTemperaturePrime
  • changelog.txt changed to CHANGELOG.md in applet and a symbolic link to provide CHANGELOG.md in UUID folder where it now displays on the web site.
  • CHANGELOG.md now restricted to recent changes whilst older ones remain in applet.
  • Added symbolic link to README.md

3.2.1

  • Add translation support to applet.js
  • Identify strings for translation and remove leading and trailing spaces and replace with separate spaces where required.
  • Version numbering harmonised with other Cinnamon applets and added to metadata.json so it can show in 'About...'
  • icon.png copied back into applet folder so it can show in 'About...'
  • Updated README.md

3.1.0

Initial changes to harmonise with new Cinnamon Applets web site and use of new Spices Github Repository for applets.

  • Changed help file from help.txt to README.md and copied from applet folder to UUID folder so it shows on web site.

3.0.0

  • Based on Bumblebee 3.0.0 but modified to use nVidia Prime.
  • Changes to work with Mint 18 and Cinnamon 3.0 - (gedit -> xed)
  • Tested with Cinnamon 2.8.8 in Mint 17.3 and Cinnamon 3.0 in Mint 18 (nVidia drivers 352.63 and 361 respectively)
  • Released July 2016

Log In To Comment!

1 Comments

Peter Curtis
Peter Curtis-2 months ago
As the author, I am committed to maintaining and developing this and all my other applets.

I can be contacted here however posting a comment does not automatically cause me to be notified so if you want a rapid response please also alert me via http://www.pcurtis.com/contact_form.htm?applets . On github, @pdcurtis in any conversation should cause a copy to be emailed to me.

Please take the time to 'like' applets you find useful even if you do not comment, it is a great motivator for the authors