Jump to content
Ultimaker Community of 3D Printing Experts

Cura AppImage with NVIDIA Optimus under Ubuntu / Linux Mint


Ugg
 Share

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
 Share

  • Our picks

    • New here? Get ahead with a free onboarding course
      Hi,
       
      Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
      Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
      They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
      Ready? Register your product here in just 60 seconds.
        • Like
      • 11 replies
×
×
  • Create New...