Bumblebee Status with NVidia Temperature Display

by pdcurtis
UUID: bumblebee@pdcurtis
Score: 1
Last edited: 1 month ago
Last commit: bbb74c12dd0f53b8292733a295b111a1acc425bd

Displays Status of Bumblebee and nVidia GPU Temperature with associated support functions including starting selected programs with optirun or primusrun

Bumblebee And NVidia Display applet (BAND)

Summary

The Bumblebee And NVidia Display (Band) Applet is a relatively simple applet I wrote for my Chillblast Defiant 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 switching is done by use of Bumblebee. This Applet allows one to monitor whether the power consuming discrete graphics is on and display the GPU temperature, but only when it is enabled. Monitoring the temperature requires the graphics processor to be turned on every time it is measured - some applets do this all the time and that uses a significant extra amount of power.

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.

The latest versions of Cinnamon provide more support to Bumblebee but the option of running programs from the applet is still important if you want to use primus instead of optirun or use additional parameters to optimise the transport mechanism used by VirtualGL to copy the image generated by the nVidia GPU to your display which can offer significant improvements in speed. I wrote about this at http://www.pcurtis.com/defiant.htm#bumblebee_options

Status

I have recently reloaded Bumblebee using the instructions at http://www.webupd8.org/2016/08/how-to-install-and-configure-bumblebee.html under Mint 17.3 (32 bit) and 18.1 (64 bit) (I have a dual boot system) and it all seems to still work fine under both. The use of vertical panels has only been tested under Mint 18.1 with Cinnamon 3.2.

Features

The latest versions 3.2.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.

The Right Click (Context menu) gives the ability to easily run the nVidia Settings program without use of the terminal and also the System Monitor and Power Statistics, all useful for monitoring Bumblebee and Power consumption which is paramount when using a laptop on batteries.

The standard Left Click menu provides a configurable list of programs which one can run using the discrete nVidia graphics through Bumblebee. This list is configured using the standard applet configuration mechanism. Currently there are two examples - glxspheres64 is a very good test of the speed of the graphics but may need to be installed. The other example is the nVidia Settings program. There are 5 'slots' currently and if you do not require a slot set the Display Name to null or leave it completely empty.

There is error checking to ensure bumblebee is loaded and does not fill the error logs with messages when that is the case. It displays a message of Err if bumblebee is not loaded and a message when you hover.

Requirements

The applet requires at least Cinnamon 2.0. Mint versions with less than Cinnamon 2.2 have now passed their end of life so all current version including 3.4 are supported. Cinnamon 3.2 or higher is required to support a vertical panel but not to support other features of the applet.

The Bumblebee and the nVidia graphics packages obviously need to be installed but no other packages are essential.

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. 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 when it is active.

Translations and other Contributions

The internal changes required in the applet to allow translations have been implemented and Chinese and Croatian translations are already available. Translations are contributed by people fluent in the language and are very much appreciated but users please note I am unable to take responsibility for the accuracy of translations!

Although comments and suggestions are always welcome any contributions which are contemplated should follow discussion.

Manual Installation:

  • Make sure Bumblebee is installed and working.
  • Download from the Spices Web Site
  • Unzip and extract folder bumblebee@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.2.4

Fix to allow use with early versions of Cinnamon

  • Inhibit use of hide_applet_label() unless Cinnamon version 3.2 or higher in use.

3.2.3

  • Change to the check added in 3.2.1 that bumblebee is installed. This solves an issue reported when applet used with LMDE (issue #1136).

3.2.2

  • Allow GPU temperature to be displayed in vertical panels but shorten (by removing the degree symbol) if over 100 degrees on vertical panels.
  • Update bumblebee.pot to identify changes which need to be translated

3.2.1

  • Use CHANGELOG.md instead of changelog.txt in context menu
  • Add symbolic link from UUID folder to applet folder so it is displayed on latest spices web site.
  • Add initial check that bumblebee daemon is installed.

3.2.0

Major changes to support vertical panels and to use icons instead of text to harmonise with other cinnamon applets.

  • 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/.gpuTemperatureBB

3.1.2

Changes to README.md to:

  • Strengthen Rationale for Applet
  • Add Status section noting testing under Mint 17.3 and 18.1 with Cinnamon 3.2
  • Acknowledge first translations.

3.1.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...'

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.4

Completion of changes to work with Mint 18 and Cinnamon 3.0

  • Added version checks and selection of text editor to display help and changlog (gedit -> xed)
    • Minor enhancements and bugs corrected.

Previous versions

These versions were developed using my own github repository at https://github.com/pdcurtis where full details can still be found. In summary:

  • This applet uses a standard framework I first developed for stopwatch@pdcurtis.

  • The Release candidate was available in December 2013 and relatively little further development was required other than some additional error checking.

  • They were comprehensively tested with Cinnamon 2.4 in Mint 17.1, the last LTS version currently supported.

Log In To Comment!

1 Comments

Peter Curtis
Peter Curtis-5 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