Bug#756522: [SOLVED] Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Daniel BD
dani.bd at gmail.com
Wed Apr 15 08:45:31 UTC 2015
Hola Xavi,
Probably I've got the same laptop as you, Mountain Cobalt :) . The
important thing is that I've got the same hardware and finally I've manage
to get the nvidia 960M working with bumblebee.
The problem is not related with the DRM message. The main problem is that
we can't use the package bumblebee-nvidia because we need, at least, the
version 346.59 (released few days ago) and the package install the version
340.65-2. These are the steps I''ve followed after a fresh installation of
debian jessie.
1.- # aptitude install bumblebee primus
2.- # adduser <youruser> bumblebee
3.- Download the latest nvidia driver (at 15/04/2015 is 346.59) from
nvidia.com
4.- Install the driver. Be aware not to install the opengl files or you
will probably break your current X installation. Use the options
"./NVIDIAxxxxx.run --dkms -Z --no-opengl-files"
5.- Restart X to check if everything is OK
6.- Now starts the tricky part. We need to setup the system in a way that
bumblebee finds the nvidia driver and it doesn't break the intel
configuration. Extract the files of the nvidia installer "./NVIDIAxxxx.run
-x". To get everything in the same place I've copied all the files
extracted to "/nvidia" and created two folders within it "lib" and "lib32"
for 64bits and 32 bits respectively.
7.- # mkdir /nvidia/lib
8.- # cp /nvidia/libnvidia-tls.so.346.59 /nvidia/lib
9.- # cp -R /nvidia/tls /nvidia/lib
10.- # cp /nvidia/libnvidia-openglcore.so.346.59 /nvidia/lib
11.- # cp /nvidia/libGL.so.346.59 /nvidia/lib
12.- # ln -s /nvidia/lib/libGL.so.346.59 /nvidia/lib/libGL.so.1
13.- # ln -s /nvidia/lib/libGL.so.346.59 /nvidia/lib/libGL.so
14.- # ln -s /nvidia/lib/libnvidia-tls.so.346.59 /usr/lib/x86_64-linux-gnu
15.- # ln -s /nvidia/lib/tls /usr/lib/x86_64-linux-gnu
16.- # ln -s /nvidia/lib/libnvidia-openglcore.so.346.59
/usr/lib/x86_64-linux-gnu
17.- Repeat steps 7 to 16 with /nvidia/32, /nvidia/lib32 and
/usr/lib/i386-linux-gnu in case you want the 32bits working (for example
for steam)
18.- Edit /etc/bumblebee/bumblebee.conf and set up the driver=nvidia,
Kerneldriver=nvidia, LibraryPath=/nvidia/lib:/nvidia/lib32,
ModulePath=/nvidia/lib,/nvidia/lib32,/usr/lib/xorg/modules,/usr/lib/xorg/modules/drivers,/usr/lib/xorg/modules/input
19.- Edit /etc/bumblebee/xorg.conf.nvidia and uncomment bus pci line
20.- # /etc/init.d/bumblebee stop
21.- # /etc/init.d/bumblebee start
22.- $ glxgears -info (working with intel)
23.- $ primusrun glxgears -info (working with nvidia)
I hope this works for your too. I've written the steps by hearth, so
forgive if any file is not written properly. Any question don't hesitate to
contact me.
Un saludo,
Kind regards,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20150415/ef0fa73f/attachment.html>
More information about the pkg-nvidia-devel
mailing list