Optirun Could not load GPU driver

Kernels & Hardware, configuring network, installing services

Optirun Could not load GPU driver

Postby twkamz » 2017-07-28 22:02

Hi, today I made a fresh Debian 9 install, and the first thing I did after installing the system was installing the proprietary nvidia drivers(I'm running on a laptop with intel graphics and nvidia 940m). But after installing the driver and following the wiki's page on bumblebee, when I tried to do
Code: Select all
optirun glxgears
I got
Code: Select all
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver
.
I know this is a common issue, but I can't seem to solve it. I tried editing
Code: Select all
/etc/bumblebee/bumblebee.conf
and setting KernelDriver=nvidia-current, but it didn't work. I tried rebooting after each change to the file.
Also, don't know if it matters, but although I can see my nvidia card with lspci, when I run nvidia-detect, it doesn't detect any card, maybe it's related somehow.

Any ideas?
Thanks in advance!
twkamz
 
Posts: 5
Joined: 2017-07-28 21:56

Re: Optirun Could not load GPU driver

Postby stevepusser » 2017-07-28 22:22

nvidia-detect only sees the primary video card, which is going to be the Intel card for Optimus systems.

Please do an "apt-get install --reinstall nvidia-kernel-dkms" in the terminal as sysadmin, then provide us the output in a code box. A common problem is that the kernel headers aren't installed. If it goes right, there should be a noticeable delay while it builds the driver. If it zips through, it failed.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8799
Joined: 2009-10-06 05:53

Re: Optirun Could not load GPU driver

Postby twkamz » 2017-07-28 22:46

This is the output:
Code: Select all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/6,707 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 191542 files and directories currently installed.)
Preparing to unpack .../nvidia-kernel-dkms_375.66-2~deb9u1_amd64.deb ...

-------- Uninstall Beginning --------
Module:  nvidia-current
Version: 375.66
Kernel:  4.9.0-3-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia-current.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.9.0-3-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-modeset.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.9.0-3-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-drm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.9.0-3-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-uvm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.9.0-3-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 375.66
completely from the DKMS tree.
------------------------------
Done.
Unpacking nvidia-kernel-dkms (375.66-2~deb9u1) over (375.66-2~deb9u1) ...
Setting up nvidia-kernel-dkms (375.66-2~deb9u1) ...
Loading new nvidia-current-375.66 DKMS files...
Building for 4.9.0-3-amd64
Building initial module for 4.9.0-3-amd64
Done.

nvidia-current:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.0-3-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.0-3-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.0-3-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.0-3-amd64/updates/dkms/

depmod...

DKMS: install completed.

It took some time so I'm pretty sure it must have fixed something. I will immediately reboot and check if it worked.

EDIT: It didn't work, I'm still getting the same error.
The headers are installed, because one step of the installation of nvidia drivers was:
Code: Select all
aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-driver

Also, I'm not really sure, but maybe it has something to do with having powertop and tlp installed?
Last edited by twkamz on 2017-07-28 23:04, edited 1 time in total.
twkamz
 
Posts: 5
Joined: 2017-07-28 21:56

Re: Optirun Could not load GPU driver

Postby stevepusser » 2017-07-28 23:00

Can you try having it use the "xserver-xorg-video-intel" driver instead, with the 20-intel.conf file, per this thread?

viewtopic.php?f=17&t=134083
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8799
Joined: 2009-10-06 05:53

Re: Optirun Could not load GPU driver

Postby twkamz » 2017-07-28 23:16

I created the file with the same contents specified on the thread and rebooted, not sure what is it supposed to do tough, I'm still getting the exact same error.

Code: Select all
$cat /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
   Identifier  "Device0"
   Driver      "intel"
   BusID       "PCI:0:2:0"
   Option      "AccelMethod" "sna"
   Option      "DRI"    "true"
   Option      "TearFree"  "true"
   Option "DRI" "3"
EndSection

Isn't it possible to use bumblebee without the nvidia driver? I'm not trying to do anything with the graphics card here, I just want to be sure it's draining as little battery as possible(and thought the nvidia driver with bumblebee was the best option), perhaps I'm approaching it the wrong way. Thanks for your time!
twkamz
 
Posts: 5
Joined: 2017-07-28 21:56

Re: Optirun Could not load GPU driver

Postby stevepusser » 2017-07-29 01:06

Well, it's supposed to work at the outset like it does with the MX Live session, where it's just using the Intel GPU (low power), and then you have to set up Bumblebee if you want to use that for a program's 3D rendering. But I gather you are saying that you're not getting any desktop GUI at all from Debian 9? What does "inxi -G" say about the graphics situation on your Debian install? The current Debian version is outdated and will not detect the modesetting driver, but you can upgrade it in place with

Code: Select all
inxi -U


as root--I believe the new version fixes that.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8799
Joined: 2009-10-06 05:53

Re: Optirun Could not load GPU driver

Postby twkamz » 2017-07-29 02:18

stevepusser wrote:But I gather you are saying that you're not getting any desktop GUI at all from Debian 9?

I'm sorry, I think I haven't explained myself properly. GUI is working fine, I was just trying to make sure the nvidia graphics card is not being used at all to save some battery life. That's why I installed nvidia's drivers and bumblebee, but I'm not able to use optirun now. I'm not so concerned about the nvidia gpu actually working, I just don't want it draining battery, so I want to make sure it's off.
twkamz
 
Posts: 5
Joined: 2017-07-28 21:56

Re: Optirun Could not load GPU driver

Postby stevepusser » 2017-07-29 02:48

OK...I'm pretty sure the system won't turn on the Nvidia GPU unless something like Bumblebee tells it to. Do you know if you have any settings concerning the GPUs in your machine's UEFI setup? There aren't any on my laptop.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8799
Joined: 2009-10-06 05:53

Re: Optirun Could not load GPU driver

Postby twkamz » 2017-07-29 14:31

Nope, I checked before but unfortunately there's no option to disable optimus on the BIOS. Thanks for the help!
twkamz
 
Posts: 5
Joined: 2017-07-28 21:56


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable