You are not logged in.

#1 2012-05-16 21:06:20

ThisNameWasFree
Member
Registered: 2011-10-21
Posts: 11

wine + OpenGL + Optimus | fullscreen games

Hello, I'm trying to run a fullscreen game on my laptop with Optimus. Cards are:

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Samsung Electronics Co Ltd Device c0a5
	Flags: bus master, fast devsel, latency 0, IRQ 52
	Memory at f6400000 (64-bit, non-prefetchable) [size=4M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at e000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 2
	Capabilities: [a4] PCI Advanced Features
	Kernel driver in use: i915



01:00.0 3D controller: NVIDIA Corporation GF108 [GeForce GT 540M] (rev a1)
	Subsystem: Samsung Electronics Co Ltd Device c0a5
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at f5000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at d000 [size=128]
	[virtual] Expansion ROM at f6000000 [disabled] [size=512K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Capabilities: [b4] Vendor Specific Information: Len=14 <?>
	Capabilities: [100] Virtual Channel
	Capabilities: [128] Power Budgeting <?>
	Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
	Kernel driver in use: nvidia

Example of running:

[look@me Warcraft III]$ cd ~/.wine/drive_c/Warcraft\ III/ && optirun wine Frozen\ Throne.exe -opengl
err:ole:CoCreateInstance apartment not initialised
fixme:advapi:SetSecurityInfo stub
fixme:win:EnumDisplayDevicesW ((null),0,0x33f378,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f5bc,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f5f4,0x00000000), stub!
[look@me Warcraft III]$ fixme:win:EnumDisplayDevicesW ((null),0,0x33ea2c,0x00000000), stub!
XIO:  Fatal IO error 11 (Resource temporarily unavailable) on X server ":8"
      after 111 requests (111 known processed) with 0 events remaining.

dmesg:

[ 6608.179686] vgaarb: this pci device is not a vga device
[ 6608.628577] vgaarb: this pci device is not a vga device

So that's a problem :-\

Some information about my system and packets:

[look@me Warcraft III]$ uname -a
Linux me 3.3.6-1-ARCH #1 SMP PREEMPT Sun May 13 10:52:32 CEST 2012 x86_64 GNU/Linux
[look@me Warcraft III]$ wine --version
wine-1.5.4
[look@me Warcraft III]$ yaourt -Ss bumblebee | grep installed
aur/bumblebee 3.0-3 [installed] (113)
aur/lib32-nvidia-utils-bumblebee 295.49-1 [installed] (39)
    NVIDIA drivers utilities and libraries (32-bit). Repacked and installed in away that won't break LibGL from mesa.
aur/nvidia-utils-bumblebee 295.49-1 [installed] (81)
    NVIDIA drivers utilities and libraries. With LibGL and xorg modules installed in a different directory.
[look@me Warcraft III]$ yaourt -Ss nvidia | grep installed
extra/libvdpau 0.4.1-2 [installed]
extra/nvidia 295.49-1 [installed]
aur/bumblebee 3.0-3 [installed] (113)
aur/lib32-nvidia-utils-bumblebee 295.49-1 [installed] (39)
    NVIDIA drivers utilities and libraries (32-bit). Repacked and installed in away that won't break LibGL from mesa.
aur/nvidia-utils-bumblebee 295.49-1 [installed] (81)
    NVIDIA drivers utilities and libraries. With LibGL and xorg modules installed in a different directory.
[look@me Warcraft III]$ yaourt -Ss virtualgl | grep installed
aur/bumblebee 3.0-3 [installed] (113)
aur/lib32-virtualgl 2.3-3 [installed] (23)
aur/virtualgl 2.3-2 [installed] (54)

How to solve this problem? :-c

----------------------------------------------------

UPD: the game is working well with

cd ~/.wine/drive_c/Warcraft\ III/ && wine Frozen\ Throne.exe -opengl

... instead of

cd ~/.wine/drive_c/Warcraft\ III/ && optirun wine Frozen\ Throne.exe -opengl

Something wrong with dedicated card and it's drivers or bumblebee config. But what?

Last edited by ThisNameWasFree (2012-05-16 21:37:33)

Offline

Board footer

Powered by FluxBB