System: Laptop
Debian Stretch
intel i7-7700HQ
NVidia 1060GTX
16GB RAM
I have been fighting for days trying to get Primusrun or VIrtualGL to use the NVidia card in 32-bit applications. 64-bit applications run perfectly fine. I can run glxgears and the -info shows NVidia running and glxpheres64 also run perfectly fine also showing the NVidia GPU running. If I try and run glxspheres (32-bit) however it errors out. Steam errors out and defaults to the integrated intel. The uengine Tropics (also 32-bit) benchmark also fails to run when issued through primusrun or virtualgl but works fine if you invoke it using the integrated intel.
dpkg -add-architecture i386 was given at the start of the system, so i386 apps should be installing.
Installation for for this system was done following these guides:
https://wiki.debian.org/NvidiaGraphicsD ... figuration
https://wiki.debian.org/Bumblebee (nvidia-driver installation)
i386 was included for Primus and Virtualgl32 was also installed (as an attempted workaround) via dpkg (not in the debian repositories)
Test examples:
1. Intel runs fine:
Code: Select all
./glxspheres
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0xc2
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Kabylake GT2 x86/MMX/SSE2
60.813859 frames/sec - 67.868267 Mpixels/sec
59.930044 frames/sec - 66.881929 Mpixels/sec
Code: Select all
primusrun ./glxspheres
/usr/bin/primusrun: line 41: warning: command substitution: ignored null byte in input
primus: fatal: failed to load any of the libraries: /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1:/usr/lib/i386-linux-gnu/nvidia/libGL.so.1:/usr/lib/nvidia/libGL.so.1
/usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1: wrong ELF class: ELFCLASS64
/usr/lib/i386-linux-gnu/nvidia/libGL.so.1: cannot open shared object file: No such file or directory
/usr/lib/nvidia/libGL.so.1: cannot open shared object file: No such file or directory
Code: Select all
optirun -b virtualgl ./glxspheres
./glxspheres: error while loading shared libraries: libXv.so.1: cannot open shared object file: No such file or directory
Code: Select all
primusrun ./glxspheres64
/usr/bin/primusrun: line 41: warning: command substitution: ignored null byte in input
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0xc2
Context is Direct
OpenGL Renderer: GeForce GTX 1060/PCIe/SSE2
64.845535 frames/sec - 72.367617 Mpixels/sec
59.984805 frames/sec - 66.943042 Mpixels/sec
Searching the web is of little help either. I have also completely reloaded the system and started from scratch twice now and that has not helped. I am only posting here because I have run out of ideas and hope someone else has solved this.