Wine does not recognise Optimus hardware acceleration

Questions about Wine on Linux
Locked
Aethyr
Newbie
Newbie
Posts: 3
Joined: Mon Jun 04, 2012 7:10 pm

Wine does not recognise Optimus hardware acceleration

Post by Aethyr »

Hello

I just replaced Mint 12 (Ubuntu 11.10) with Arch (both 64-bit) today. I'm on a laptop with Optimus as the title states - on Mint I was using Ironhide to manage it (worked flawlessly), on Arch I am using Bumblebee now. My problem is that Wine cannot see the Nvidia dedicated GPU when I run it with optimus. The application I am trying to run is the Guild Wars 2 client.

So, I'll give an example which should hopefully clarify that this is NOT the same problem as wine not recognising OpenGL at all.

Code: Select all

wine Gw2.exe
works fine. Guild Wars 2 is designed to run on Intel HD graphics, so without optirun it works. Of course, not ideal, since the dedicated GPU is much more powerful. But, it works.

Code: Select all

optirun wine Gw2.exe
crashes midway. From the log, I cherrypicked the problem for you guys:

Code: Select all

trace:wgl:X11DRV_WineGL_InitOpenglInfo GL version             : 1.4 (3.0 Mesa 8.0.3).
trace:wgl:X11DRV_WineGL_InitOpenglInfo GL renderer            : Mesa DRI Intel(R) Sandybridge Mobile .
trace:wgl:X11DRV_WineGL_InitOpenglInfo GLX version            : 1.4.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Server GLX version     : 1.4.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Server GLX vendor:     : SGI.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Client GLX version     : 1.4.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Client GLX vendor:     : NVIDIA Corporation.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Direct rendering enabled: False
err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly (using GL renderer "Mesa DRI Intel(R) Sandybridge Mobile ", version "1.4 (3.0 Mesa 8.0.3)").
trace:wgl:has_opengl GLX is up and running error_base = 171
This shouldn't be happening. Wine should be seeing the Nvidia GPU. And yes, Bumblebee works properly for native 3d apps. So this is a wine issue. Any ideas how I can tell wine where to look?
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

Try with optirun32, if you have it.
Aethyr
Newbie
Newbie
Posts: 3
Joined: Mon Jun 04, 2012 7:10 pm

Post by Aethyr »

jorl17 wrote:Try with optirun32, if you have it.
Bumblebee only uses optirun, which works both for 32 and 64 bit apps. the 32/64 suffixes are Ironhide only additions.
Aethyr
Newbie
Newbie
Posts: 3
Joined: Mon Jun 04, 2012 7:10 pm

Post by Aethyr »

My mistake. The 32-bit nvidia drivers for bumblebee were not installed properly. A short reinstall from AUR and everything works.

Goodbye Ubuntu!
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

Aethyr wrote:
jorl17 wrote:Try with optirun32, if you have it.
Bumblebee only uses optirun, which works both for 32 and 64 bit apps. the 32/64 suffixes are Ironhide only additions.
Alright. I said that because I use an old version of Bumblebee and it included that 32-bit version. Anyway, that's way I said "if you have it".

Glad you managed to get it to work.
Locked