Quadro 2000m driver and Optimus

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Quadro 2000m driver and Optimus

Postby Hate029 » 2019-09-09 15:03

I'm trying to install Debian Buster to Lenovo W520. Everything works except my gpu setting and external display through the dock. With Nouveau bumblebee works. External display doesn't but I think I could get it done with xrandr. Anyway, no matter what other driver I install to my quadro 2000m and it stops working after reboot. I follow Debians own guide: https://wiki.debian.org/NvidiaGraphicsDrivers I can still boot into XFCE but can't use optirun anymore after reboot.

Code: Select all
optirun xrandr
[   23.146764] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

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

Nvidia-detect recommends driver nvidia-legacy-390xx-driver but it gives the same above error as I try to run optirun. I've tried nvidia-driver and nvidia-legacy-340xx-driver as well and as bad result.

As I noticed that it is a driver issue I changed my bios settings to use only the nvidia gpu and reinstalled Buster few times. Every time I install Nvidia proprieraty driver my pc got stuck in a black screen with a blinking cursor and fan blowing hot air. This is beyond my skill as I can't get any info after this. I've googled a lot found many who have same kind of problems but nothing works on me. Some suggest that I use only Nvidia gpu but that solution uses my battery in an hour. And without Nvidia gpu i can't use external display as they are used through quadro.

Here's a infopage from my laptop https://wiki.debian.org/InstallingDebianOn/Thinkpad/T520/wheezy

I hope that with little help and knowledge I get Buster up and running as it is very well supported otherwise. Thanks.
Posts: 38
Joined: 2011-08-04 12:27

Re: Quadro 2000m driver and Optimus

Postby ruwolf » 2019-09-15 10:21

What can you see by dmesg after xrandr failure?
User avatar
Posts: 429
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7

Re: Quadro 2000m driver and Optimus

Postby stevepusser » 2019-10-28 16:29

Several users of MX 19 (Buster based) also noted this issue with the same type of Nvidia GPU and Bumblebee, and one of them found the solution:

OK, I got the legacy-driver running properly on MX19 and antiX19 buster

Code: Select all
  Host: antix1 Kernel: 4.9.193-antix.1-amd64-smp x86_64 bits: 64
  compiler: gcc v: 8.3.0 Desktop: IceWM 1.5.5+git20190610 dm: SLiM 1.3.6
  Distro: antiX-19_x64-full Marielle Franco 16 October 2019
  base: Debian GNU/Linux 10 (buster)
  Device-1: NVIDIA G86M [GeForce 8400M GS] vendor: Wistron driver: nvidia
  v: 340.107 bus ID: 01:00.0 chip ID: 10de:0427
  Display: x11 server: X.Org 1.20.4 driver: nvidia resolution: 1280x800~60Hz
  OpenGL: renderer: GeForce 8400M GS/PCIe/SSE2 v: 3.3.0 NVIDIA 340.107
  direct render: Yes

It was loading the wrong glx-module, from /var/log/Xorg.log
Code: Select all
 LoadModule: "glx"
 Loading /usr/lib/xorg/modules/extensions/libglx.so

Code: Select all
 (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
 log file that the GLX module has been loaded in your X

/usr/lib/xorg/modules/extensions/libglx.so instead the one from nvidia

What I did is renamed the libglx.so

Code: Select all
sudo mv /usr/lib/xorg/modules/extensions/libglx.so /usr/lib/xorg/modules/extensions/libglx.so.bac

and symlinked the one from nvidia to libglx.so

Code: Select all
sudo ln -s /usr/lib/nvidia/legacy-340xx/libglx.so.340.107 /usr/lib/xorg/modules/extensions/libglx.so

Looks good to me now, no errors in Xorg.log

Code: Select all
10.911] (II) LoadModule: "glx"
[    10.922] (II) Loading /usr/lib/xorg/modules/linux/libglx.so
[    11.081] (II) Module glx: vendor="NVIDIA Corporation"

glxgears runs fine.

Is this a problem of the nvidia-driver, or buster or who ?

This is certainly worth a bug report to Debian, if one hasn't already been filed...
MX Linux packager and developer
User avatar
Posts: 12072
Joined: 2009-10-06 05:53

Return to Hardware

Who is online

Users browsing this forum: No registered users and 14 guests