Wiki Table of Contents

2 graphics drivers

Installation

If your system has both a discrete graphics card, typically Intel and an nVidia graphics card, you can install the nvidia driver using the Nvidia Graphics Installer found in MX Tools. Your card will be detected and the app will offer to install the driver including Bumblebee. The process may take some time. Upon completion reboot.

Use

To run an application using the nVidia card issue the command “primusrun <app name>” in a user terminal. The application will open and use the nvidia card.

If you want to check if properly installed issue the command “primusrun inxi -G” in a user terminal. It will show the GlX Renderer with your nvidia card designation. If run as “inxi -G” GLX Renderer will show the Intel card.

Alternately the command “optirun <app name>” can be used. optirun can be run with options. Issue the command “optirun -h” in a user terminal for help.

Troubleshooting

Enable NVIDIA card after waking from suspend (from Arch WIki)

The bumblebee daemon may fail to activate the graphics card after suspending. A possible fix involves setting bbswitch as the default method for power management:

  • open /etc/bumblebee/bumblebee.conf in Leafpad as root
  • Find the section with and change the PM Method; currently lines 58 or 69:

[driver-nvidia]
PMMethod=bbswitch

  • Save and close

Project Bumblebee wiki

For more information refer to the Bumblebee wiki. However use the installation procedure detailed above.

1 thought on “2 graphics drivers”

  1. If:
    1. optirun works on your machine (test with optirun glxgears) but primusrun has issues locating libGL.so.1
    2. you are using non-free NVIDIA drivers, not noveau drivers (check this using optirun inxi -Gx, where NVIDIA drivers will look like OpenGL: renderer: GeForce GTX 950M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.116 direct render: Yes)
    then you may be able to fix primusrun by appending `:/usr/lib/x86_64-linux-gnu` to LibraryPath in /etc/bumblebee/bumblebee.conf. (If not the path /usr/lib/x86_64-linux-gnu, you can try to find libGL.so.1 with sudo find . -name “libGL.so.1” and use this path instead.)
    Once doing this, if primusrun starts, but displays a black window (with primusrun glxgears for example), you may be able to fix this by prefixing primusrun with __GLVND_DISALLOW_PATCHING=1. That is, you’d call __GLVND_DISALLOW_PATCHING=1 primusrun glxgears instead of primusrun glxgears.

    I have been able to reproduce this issue on a fresh live USB (with persist_static) of MX 18.3. I’m not sure what causes it, but serves as a fix.

Leave a Comment

Do NOT follow this link or you will be banned from the site!