Switch graphics card via Wine?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
r3son
Newbie
Newbie
Posts: 4
Joined: Sun Jun 12, 2011 1:22 am

Switch graphics card via Wine?

Post by r3son »

Hi,

I have a PC with two graphic cards one Intel onboard and one Nvidia dedicated card. lspci shows me both and both graphics drivers are installed.

Code: Select all

> lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
01:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 9300M GS] (rev a1)
wine.log shows me:

Code: Select all

trace:wgl:wglGetProcAddress func: 'glAccum'
trace:wgl:X11DRV_WineGL_InitOpenglInfo GL version             : 2.1 Mesa 7.10.2.
trace:wgl:X11DRV_WineGL_InitOpenglInfo GL renderer            : Mesa DRI Mobile Intel® GM45 Express Chipset GEM 20100330 DEVELOPMENT x86/MMX/SSE2.
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:     : Mesa Project and SGI.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Direct rendering enabled: True
trace:wgl:has_opengl GLX is up and running error_base = 170
I think, Wine only uses the slow Intel card. Is it possible to force Wine to use the NV card instead and how?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Re: Switch graphics card via Wine?

Post by jjmckenzie »

r3son wrote:Hi,

I have a PC with two graphic cards one Intel onboard and one Nvidia dedicated card. lspci shows me both and both graphics drivers are installed.

Code: Select all

> lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
01:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 9300M GS] (rev a1)
I think, Wine only uses the slow Intel card. Is it possible to force Wine to use the NV card instead and how?
Wine will detect and use the card that is in slot 0 first. In this case the Intel card will be detected and used (this is not a Wine feature, it is a feature of Linux.) The only sure method is to swap which card is detected first or to completely disable the Intel card if possible.
r3son
Newbie
Newbie
Posts: 4
Joined: Sun Jun 12, 2011 1:22 am

Post by r3son »

Thing why I'm also asking for this is, that the hybrid-graphics switchers like 'bumblebee' make it possible to use both graphics cards the same time.

http://www.omgubuntu.co.uk/2011/05/bumb ... s/?amp&amp

https://launchpad.net/~hybrid-graphics-linux

I guess, that there must be an option to switch the right card via Wine. If this is the case, maybe someone with more Wine experience can open a feature request or bugreport for this?!

Or, have I misunderstood something?
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

r3son new idea. Not enough developers have the hardware.

Yes it brings some new and interesting problems.

Wine does not rule hardware. X11 does and its backing drivers do.

Applications are told what features video card supports. Problem is some applications install those settings in registry and not check the card again.
We need items like bumblebee to support auto activation.

Auto activation wine uses a feature if the intel cannot do it wake the Nvidia up. Infact the user running wine may not have the right to switch a video card on and off.

Sorry to say r3son items like bumblebee are not developed far enough to be used effectively with wine yet. The key feature of auto activation is missing.

All video card control is not Wine issue basically. Its a X11 configure and driver issue.
r3son
Newbie
Newbie
Posts: 4
Joined: Sun Jun 12, 2011 1:22 am

Post by r3son »

Ok,
so we have to wait for further developments.

Thanks for your explanation.
Locked