So, I changed my POL_Wine () function from wine.lib to use the optirun command on a laptop with nvidia card:
[...]
if [ "$LOGFILE" = "/dev/null" ] || [ "$KeepOutput" = "True" ]
then
optirun wine "$@"
else
optirun wine "$@" >> "$LOGFILE" 2>> "$LOGFILE"
fi
errors="$?"
[...]
I am trying to run Counter-Strike Source on Steam, but I got weird problems (too bright on some textures, too dark on others). I read about this and it seems that it has something to do with the video card (if it is not good enough). But I don't think that my nVidia geforce gt 520m card is that bad, so I inferred that this is something to do with the card not being used.. and I say this because when I "lsmod | grep -i nvidia" it should output that the module is enabled when the card is used... which is not (it doesn't output anything).
So here is the debug mode output from steam using POL:
[POL_Wine_SetVersionEnv] Message: Setting wine version path: 1.3.33, x86
[POL_Wine_SetVersionEnv] Message: "/home/razvan/.PlayOnLinux//wine/linux-x86/1.3.33" exists
[POL_Wine] Message: Running wine-1.3.33 Steam.exe
wine: cannot find L"C:\\\\windows\\\\system32\\\\winemenubuilder.exe"
err:wineboot:ProcessRunKeys Error running cmd L"C:\\\\windows\\\\system32\\\\winemenubuilder.exe -a -r" (2)
fixme:process:SetProcessShutdownParameters (00000100, 00000000): partial stub.
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:Heap32ListFirst : stub
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 32 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 32 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
err:ole:CoGetClassObject class {77f10cf0-3db5-4966-b520-b7c54fd35ed6} not registered
err:ole:CoGetClassObject no class object {77f10cf0-3db5-4966-b520-b7c54fd35ed6} could be created for context 0x1
fixme:wbemprox:wbem_locator_ConnectServer 0x2046d0, L"ROOT\\\\CIMV2", (null), (null), (null), 0x00000080, (null), (nil), 0x4b5c638)
err:ole:CoGetClassObject class {dff32fea-3331-48da-a272-ccfc238695be} not registered
err:ole:CoGetClassObject class {dff32fea-3331-48da-a272-ccfc238695be} not registered
err:ole:create_server class {dff32fea-3331-48da-a272-ccfc238695be} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dff32fea-3331-48da-a272-ccfc238695be} could be created for context 0x17
fixme:winhttp:WinHttpDetectAutoProxyConfigUrl discovery via DHCP not supported
fixme:win:RegisterDeviceNotificationA (hwnd=0x100b6, filter=0x33d5b4,flags=0x00000004) returns a fake device notification handle!
fixme:win:EnumDisplayDevicesW ((null),0,0x33cff4,0x00000000), stub!
fixme:appbar:SHAppBarMessage unknown msg: 4
fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETSTATE): stub
fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=3): stub
fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=1): stub
fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=0): stub
fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=2): stub
So.. because I don't see any optirun command (which I think I sould in the debugger) I concluded that the video card is not enabled...
If anyone has any idea... please give it a try.
EDIT:
Well if I think about it.. is not the fact that I don't see any optirun command over there, but the fact that it should output some stuff about the video card being enabled...
Edité par razvanc87