Nvidia Prime Display Applet for Cinnamon Versions up to 3.8
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. NOTE: Use is currently restricted to Cinnamon versions less than 3.8 due to changes in the way that nVidia Prime is integrated into Cinnamon.
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.
NOTE: Use is currently restricted to Cinnamon versions less than 3.8 due to changes in the way that nVidia Prime is now integrated into Cinnamon without use of bbswitch. A well tested patch from a user of Nvidia Prime would be welcome as the author is commited to using Bumblebee on his only Optimus machine and is not prepared to offer changes which are untested.
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.
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.
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.
- 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
- 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
- Restrict to Cinnamon versions less than 3.8 using cinnamon version in metadata.json
- Add multiversion to support future development for 3.8 and higher
- Use xdg-open in place of gedit or xed to allow use on more distros
Fix to allow use with early versions of Cinnamon
- Inhibit use of hide_applet_label() unless Cinnamon version 3.2 or higher in use.
- Updates to some tooltips and README.md to reflect the latest changes better.
- 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.
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
- 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
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.
- 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!