Nvidia Optimus, Bumblebee not working.

Post Reply
Message
Author
User avatar
awarewolf
Posts: 1
Joined: Mon Jul 15, 2019 9:35 am

Nvidia Optimus, Bumblebee not working.

#1 Post by awarewolf »

Hi there friends,

I have a alienware m14xr1 and its perfomance is fantastic on MX Linux, however, at random times primusrun just does not work.
When i try to do a "primusrun glxgears" i get the following message in the terminal:

"primusrun glxgears
/usr/bin/primusrun: line 44: warning: command substitution: ignored null byte in input
primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) Failed to load module "nvidia" (module does not exist, 0)
"
I have done the following also to check that the environment variables point to the right directory etc:
"
Edit " /etc/environment "
sudo nano /etc/environment
add the following line:
__GLVND_DISALLOW_PATCHING=1


Edit " /etc/bumblebee/bumblebee.conf " :
sudo nano /etc/bumblebee/bumblebee.conf
Replace the corresponding lines with the following:
LibraryPath=/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
XorgModulePath=/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules/input


Blacklist drivers in " /etc/modprobe.d/blacklist-nvidia.conf "
sudo nano /etc/modprobe.d/blacklist-nvidia.conf
add the following lines:
blacklist nvidia
blacklist nvidia-drm
blacklist nvidia-modeset


#alias nvidia off
alias nvidia-drm off
#alias nvidia-modeset off


Fixing primusrun:
edit /usr/bin/primusrun and add
sudo nano /usr/bin/primusrun


add the following lines:
export PRIMUS_libGLa=${PRIMUS_libGLa:-'/usr/$LIB/libGL.so.1'}
export PRIMUS_libGLd=${PRIMUS_libGLd:-'/usr/$LIB/libGL.so.1'}
"

And now sadly its still not working.
I have also tried to purge and remove all nvidia and bumblebee related packages.
Still nothing.

Could anyone please help me in the right direction?
OR
Is it possible to install nvidia prime and switch around like that?
Much appreciated.

User avatar
JayM
Qualified MX Guide
Posts: 6793
Joined: Tue Jan 08, 2019 4:47 am

Re: Nvidia Optimus, Bumblebee not working.

#2 Post by JayM »

Please run MX Tools/Quick System Info then simply right-click and paste into a reply. No need to copy/paste. just paste. Quick System Info copies the output to your clipboard for you, already formatted for posting in the forum. Thanks.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
Stevo
Developer
Posts: 12843
Joined: Fri Dec 15, 2006 8:07 pm

Re: Nvidia Optimus, Bumblebee not working.

#3 Post by Stevo »

Does using optirun work instead?

Post Reply

Return to “Software / Configuration”