nvidia-driver and bumblebee install

Kernels & Hardware, configuring network, installing services

nvidia-driver and bumblebee install

Postby jef » 2020-12-22 23:55

I've tried installing as normal with
apt install nvidia-kernel-dkms

My gpu, 940MX, is on the supported list for nvidia driver version 418.152.00-1. So I assume that I shouldn't worry about other versions.

Code: Select all
lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)


Code: Select all
uname -a
Linux debian-laptop 5.9.0-0.bpo.2-amd64 #1 SMP Debian 5.9.6-1~bpo10+1 (2020-11-19) x86_64 GNU/Linux


Code: Select all
modprobe nvidia
modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/5.9.0-0.bpo.2-amd64
modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for nvidia
modprobe: ERROR: could not insert 'nvidia': Operation not permitted


Code: Select all
primusrun glxgears
/usr/bin/primusrun: line 41: warning: command substitution: ignored null byte in input
primus: fatal: Bumblebee daemon reported: error: Could not load GPU driver


Code: Select all
optirun glxgears
[ 2070.534747] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver
jef
 
Posts: 5
Joined: 2020-12-22 23:39

Re: nvidia-driver and bumblebee install

Postby jef » 2020-12-23 00:13

Alright I installed 450.80.02-1~bpo10+1 from backports since I read it works best with the newer kernel. New errors below:

Code: Select all
modprobe nvidia
returns nothing

Code: Select all
optirun glxgears
[   85.533967] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d"

[   85.534027] [ERROR]Aborting because fallback start is disabled.

Code: Select all
primusrun glxgears
primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d"


Installed bumblebee-nvidia, optirun and primusrun from backports too.

optirun glxgears now works and so does primusrun glx gears.

I suppose that means everything is installed driver wise. However, the game i'm trying to start (age of empires 2 de) isn't launching (says display is not dx11 compatible).
I have no idea how this all relates to vulkan. If I need to re-install that from backports or what.

Code: Select all
Xlib:  extension "NV-GLX" missing on display
when i try to run the game using primusrun
jef
 
Posts: 5
Joined: 2020-12-22 23:39

Re: nvidia-driver and bumblebee install

Postby stevepusser » 2020-12-23 00:49

Usually that error is due to the game being 32-bit and a 64-bit user neglecting to also install the Nvidia driver 32-bit GLX libraries. It is a very common omission.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12182
Joined: 2009-10-06 05:53

Re: nvidia-driver and bumblebee install

Postby jef » 2020-12-23 01:26

stevepusser wrote:Usually that error is due to the game being 32-bit and a 64-bit user neglecting to also install the Nvidia driver 32-bit GLX libraries. It is a very common omission.

nvidia-driver-libs:i386 is already the newest version (450.80.02-1~bpo10+1).

I can run applications using primusrun but not the specific game. It might be a steam issue...
Code: Select all
Xlib:  extension "NV-GLX" missing on display
.
jef
 
Posts: 5
Joined: 2020-12-22 23:39

Re: nvidia-driver and bumblebee install

Postby jef » 2020-12-23 02:54

Does being able to run glxgears with both optirun and primusrun prove that the drivers are set up correctly?

Should I then assume it's a steam issue? I've been looking around and I really can't find anything to help with the "NV-GLX" missing error.
jef
 
Posts: 5
Joined: 2020-12-22 23:39

Re: nvidia-driver and bumblebee install

Postby jef » 2020-12-23 06:05

I'm so confused with the different packages.
For examples what's the difference between nvidia-driver-libs-i386 and nvidia-driver-libs:i386? Or did you mean to install nvidia-driver:i386? I can't figure out which packages i even need.

I can barely keep track of what is mesa, vulkan, glx, bumblebee, nvidia-driver vs nvidia-kernel-dkms vs driver-libs, primus, optimus etc

Since i installed the main driver using backports it's even more confusing, since I don't understand if every single package to do with the graphics driver now needs to be from backports? :lol: :lol: :lol:
jef
 
Posts: 5
Joined: 2020-12-22 23:39


Return to System configuration

Who is online

Users browsing this forum: No registered users and 15 guests

fashionable