primusrun not working after flawless bumblebee installation

Hi Community,

I just installed bumblebee for a Geforce 325m graphics card using the proprietary driver (340.96).

Then I wanted to use primusrun to start steam, which resulted in the folliwing output:

~] λ primusrun steam
Running Steam on opensuse 42.1 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1465948400)
primus: fatal: failed to load any of the libraries: /usr/$LIB/nvidia/ falsche ELF-Klasse: ELFCLASS64
[2016-06-30 12:29:00] Startup - updater built Jun 14 2016 23:23:08

I was able to start steam using optirun but it crashed after a short amount of time.

What do I need to do to get primus working?


Reading from SDB:NVIDIA Bumblebee:

Running Steam

Steam requires usage of a newer command line tool called “primusrun”.
NOTE: You absolutely must have installed nvidia-bumblebee-32bit for this to work.

So the root cause is clear: you need the 32 bit GL libraries to run a 32 bit application like Steam.
Unfortunately, I never used Steam and I don’t know how to install the 32 bit stuff with the 340.96 driver.
There should be a way running the /usr/src/ with appropriate options, but I never did that and cannot help you any further.

I already have the required libraries I believe:

~] λ readelf -h /usr/src/NVIDIA-Linux-x86_64-340.96/32/
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2’s complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: DYN (Shared object file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x47f90
Start of program headers: 52 (bytes into file)
Start of section headers: 1074536 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 4
Size of section headers: 40 (bytes)
Number of section headers: 15
Section header string table index: 14

I think it is more a matter of steam/primus not finding them.


Exactly, they are NOT INSTALLED.
IMHO you must figure out what the nvidia-bumblebee-32bit package does to install the 32bit libraries and then do the same using the nvidia-installer with appropriate options.
Please check:

./usr/src/NVIDIA-Linux-x86_64-340.96/nvidia-installer -A

to see available options.