Jump to content

Cura AppImage with NVIDIA Optimus under Ubuntu / Linux Mint


Ugg

Recommended Posts

Posted · Cura AppImage with NVIDIA Optimus under Ubuntu / Linux Mint

Below is a workaround for running Cura under Ubuntu / Linux Mint on laptops with with NVIDIA Optimus (hybrid Intel and NVIDIA graphics).

 

My laptop's gen 4 Intel CPU only supports OpenGL 3.3, at least under Linux Mint Mate 18.3 (based on Ubuntu 16.04 LTS) which means Cura defaults to the "Compatibility Mode" layer view.  I tried several MESA versions including the native Ubuntu repository and various PPA's including oibaf-graphics-drivers with no success.  I have not tried running Cura under Ubuntu Mate 18.04, so it's possible the newer distro supports OpenGL 4.x for my older CPU.

 

If you have a newer generation Intel CPU that supports OpenGL 4.x, there is no need for this workaround unless you want Cura to run under your NVIDIA card.

To check your OpenGL version: glxinfo | grep -i version

NVIDIA Optimus OpenGL version: optirun glxinfo | grep -i version

 

The workaround is to extract the AppImage and modify cura.sh to run with "optirun".

 

Example: Cura-3.2.1.AppImage

sudo mkdir /mnt/Cura
sudo mount -o loop ./Cura-3.2.1.AppImage /mnt/Cura
sudo mkdir /opt/Cura/Cura-3.2.1
sudo cp -a /mnt/Cura/* /opt/Cura/Cura-3.2.1

sudo umount /mnt/Cura

 
sudo nano /opt/Cura/Cura-3.2.1/usr/bin/cura.sh
Change the line:
cura $@
to:
optirun -b primus cura $@
Ctrl+x and Enter to save the file
 
Note: “optirun cura $@" runs Cura but the drop-down menus do not work correctly without "-b primus".

To run the extracted AppImage:
/opt/Cura/Cura-3.2.1/AppRun
 
For this to work, you need NVIDIA drivers and bumblebee. The clearest instructions I have found for installing bumblebee are here: http://lenovolinux.blogspot.com.au/
I am using the following:
nvidia-384 and supporting libraries from https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
bumblebee, primus, and virtualgl from https://launchpad.net/~bumblebee/+archive/ubuntu/testing
intel, mesa, and supporting libraries from https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
 
 

 

 

  • Like 1
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Introducing Universal Cura Projects in the UltiMaker Cura 5.7 beta
      Strap in for the first Cura release of 2024! This 5.7 beta release brings new material profiles as well as cloud printing for Method series printers, and introduces a powerful new way of sharing print settings using printer-agnostic project files! Also, if you want to download the cute dinosaur card holder featured below, it was specially designed for this release and can be found on Thingiverse! 
        • Like
      • 10 replies
    • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
      (Sorry, was out of office when this released)

      This update is for...
      All UltiMaker S series  
      New features
       
      Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
        • Like
      • 0 replies
×
×
  • Create New...