It sounds like you have a configuration issue as the "not using direct rendering" message usually means that OpenGL is confused and not able to make a good connection between the app and the driver. Note that Steam is a 32-bit app so you need to have all of your 32-bit binaries set up properly for things to work. When you run glxspheres you're probably running the 64-bit version and so you're not going through the same path as Steam or a 32-bit game.
As for what exactly your configuration is I can't say, so all the advice I can give is double-check your 32-bit setup and try running 32-bit apps.
Good point! I had not installed the necessary packages for 32-bit support. Will do now and will test.
It works! Installing the 32-bit version of VirtualGL and primus fixed the issue. I was able to confirm this as with Cogs the menu was way faster than before as it was incredibly slow on integrated graphics and when I used the command primusrun steam it had the correct driver name.
Thanks very much! I will definitely need to read the tutorial more thoroughly next time.
Nothing extracted yet.
Situation:
glxspheresviaprimusrunI get a nice consistent 60 fps. Also, if I run Minecraft with primusrun I again get a nice consistent 60 fps. However, if I set a launch configuration for a game such as Osmos or Cogs toprimusrun %command%, the game results in a black screen. If I don't and it uses my integrated graphics, it runs normally. For Osmos it can run under integrated graphics, but I want to be able to run other games with my NVIDIA card, when it is needed. I use the proprietary drivers.Specs:
primusrun glxsphereslistedOpenGL Renderer: GeForce GT 555M/PCIe/SSE2) and integrated graphicssteam):Driver: Intel Open Source Technology Center Mesa DRI Intel(R) Sandybridge Mobile Driver Version: 3.0 Mesa 9.2.0 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 59 Hz VendorID: 0x10de DeviceID: 0xdcd Number of Monitors: 1 Number of Logical Video Cards: 2 Primary Display Resolution: 1366 x 768 Desktop Resolution: 1366 x 768 Primary Display Size: 12.17" x 6.85" (13.94" diag) 30.9cm x 17.4cm (35.4cm diag) Primary VRAM Not Detectedprimusrun steam):primusrun steamI get the error messageOpenGL GLX context is not using direct rendering, which may cause performance problems.Driver: Intel Open Source Technology Center Mesa DRI Intel(R) Sandybridge Mobile Driver Version: 1.4 (3.0 Mesa 9.2.0) Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 59 Hz VendorID: 0x10de DeviceID: 0xdcd Number of Monitors: 1 Number of Logical Video Cards: 2 Primary Display Resolution: 1366 x 768 Desktop Resolution: 1366 x 768 Primary Display Size: 12.17" x 6.85" (13.94" diag) 30.9cm x 17.4cm (35.4cm diag) Primary VRAM Not DetectedLogs:
steamthus using my integrated graphics. Launch Osmos with no special launch configuration, all goes well, exit, then edit launch configuration toprimusrun %command%and terminate game due to black screen after a wait.primusrun steamthus using the NVIDIA driver. Launch Osmos with no special launch configuration, and after awhile terminate game due to black screen.Please help! Thanks!