PDA

View Full Version : Wine and Counter Strike Source


Filter
27th May 2010, 04:31 PM
Im having issues with trying to startup counter strike
running on fedora 12 x86_64

installed wine 1.44 from source with these dev pkgs as mentioned here http://wiki.winehq.org/WineOn64bit#head-96832b689255a0b357c311ceeb2fd37f3ce4359c

yum install alsa-lib-devel.i686 alsa-lib-devel audiofile-devel.i686 audiofile-devel cups-devel.i686 cups-devel dbus-devel.i686 dbus-devel esound-devel.i686 esound-devel fontconfig-devel.i686 fontconfig-devel freetype-devel.i686 freetype-devel giflib-devel.i686 giflib-devel hal-devel.i686 hal-devel lcms-devel.i686 lcms-devel libICE-devel.i686 libICE-devel libjpeg-devel.i686 libjpeg-devel libpng-devel.i686 libpng-devel libSM-devel.i686 libSM-devel libusb-devel.i686 libusb-devel libX11-devel.i686 libX11-devel libXau-devel.i686 libXau-devel libXcomposite-devel.i686 libXcomposite-devel libXcursor-devel.i686 libXcursor-devel libXext-devel.i686 libXext-devel libXi-devel.i686 libXi-devel libXinerama-devel.i686 libXinerama-devel libxml2-devel.i686 libxml2-devel libXrandr-devel.i686 libXrandr-devel libXrender-devel.i686 libXrender-devel libxslt-devel.i686 libxslt-devel libXt-devel.i686 libXt-devel libXv-devel.i686 libXv-devel libXxf86vm-devel.i686 libXxf86vm-devel mesa-libGL-devel.i686 mesa-libGL-devel mesa-libGLU-devel.i686 mesa-libGLU-devel ncurses-devel.i686 ncurses-devel openldap-devel.i686 openldap-devel openssl-devel.i686 openssl-devel zlib-devel.i686 pkgconfig sane-backends-devel.i686 sane-backends-devel xorg-x11-proto-devel glibc-devel.i686 prelink fontforge flex bison libstdc++-devel.i686 pulseaudio-libs-devel.i686 gnutls-devel.i686 libgphoto2-devel.i686 openal-soft-devel.i686 isdn4k-utils-devel.i686 gsm-devel.i686 samba-winbind libv4l-devel.i686 cups-devel.i686 libtiff-devel.i686


installed nvidia driver
kmod-nvidia xorg-x11-drv-nvidia-libs.i686

edited grub
title Fedora (2.6.32.12-115.fc12.x86_64)
root (hd1,0)
kernel /boot/vmlinuz-2.6.32.12-115.fc12.x86_64 ro root=UUID=6c86774f-2c60-4325-b390-385f8b394ae4 noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rdblacklist=nouveau iommu=soft rhgb quiet
initrd /boot/initramfs-2.6.32.12-115.fc12.x86_64.img

installed steam then counter strike source
launched with
WINEDEBUG=-all wine C:/Program\ Files/Steam/Steam.exe -fullscreen \
-width 1024 -height 768 -applaunch 240 \
-heapsize 512000 -opengl -dxlevel 80 -nojoy +map_background none "$@"

The loading screen window disappears and then wine shows errors
err:ole:CoGetClassObject class {9a5ea990-3034-4d6f-9128-01f3c61022bc} not registered
err:ole:CoGetClassObject no class object {9a5ea990-3034-4d6f-9128-01f3c61022bc} could be created for context 0x1
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
Direct3D9 is not available without OpenGL.
err:wgl:X11DRV_WineGL_InitOpenglInfo couldn't initialize OpenGL, expect problems
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
Direct3D9 is not available without OpenGL.
err:ole:RevokeDragDrop invalid hwnd (nil)
err:ole:RevokeDragDrop invalid hwnd 0x1012c
err:ntdll:RtlpWaitForCriticalSection section 0x14676dc "?" wait timed out in thread 001e, blocked by 001f, retrying (60 sec)


Weird that it isnt resolving the device id 0618 to nvidia 260m
[saturn@localhost ~]$ lspci|grep VGA
01:00.0 VGA compatible controller: nVidia Corporation Device 0618 (rev a2)

[saturn@localhost ~]$ rpm -qa |grep nvidia
kmod-nvidia-195.36.24-1.fc12.2.x86_64
nvidia-settings-1.0-4.fc12.x86_64
xorg-x11-drv-nvidia-libs-195.36.24-1.fc12.x86_64
kmod-nvidia-2.6.32.12-115.fc12.x86_64-195.36.24-1.fc12.2.x86_64
xorg-x11-drv-nvidia-libs-195.36.24-1.fc12.i686
nvidia-xconfig-1.0-2.fc12.x86_64
xorg-x11-drv-nvidia-195.36.24-1.fc12.x86_64

sirdilznik
27th May 2010, 11:30 PM
Have you tested any other games or programs that require 3D acceleration under wine? Does any of those other apps work under wine or is this just limited to Counter Strike Source?

The reason I ask is that for the last couple of years I've always had problems running programs under wine when using the distribution packaged (RPM Fusion in this case) nVidia drivers. Mind you this is only with running games through wine, native games worked fine. Maybe this is because I've needed to compile wine myself (like you had to) due to needing the latest version and/or patches. Maybe it would have worked fine with the wine.i686 available in the repos ? (I'm on 64-bit also)

Anyhow what I did is removed all the nVidia driver packages from my system and installed the nVidia binary blob manually via nVidia's own installer and viola wine worked fine again. Mind you this is across both Fedora and Ubuntu (though I haven't run Ubuntu since 9.04). Anyway this isn't the cleanest solution since it forces you to manually reinstall the nVidia driver any time you do a kernel update or xorg-x11 update by dropping into run level 3 and rerunning nVidia's installer. I generally do this by rebooting and temporarily changing the kernel line in the grub menu and removing 'rhgb quiet' from the line (you can go into the grub menu upon restart even if your grub is setup with timeout=0 by pressing the up or down direction keys repeatedly right after your BIOS splash screen pops up until the grub menu shows up). Removing 'rhgb quiet' from the kernel line allows Fedora to bootup without any graphical splash and if it gets to a point where it stops and seems to hang you can switch to a different console terminal with 'Ctrl+Alt+F2', login as root (or user and run the installer as sudo), cd to the installer directory, run the installer, and reboot.

Kind of an ugly workaround, but it's always worked for me. I wonder if others have had this kind of issue and if there is a much cleaner solution? If so I'd love to hear about it since it would be nice to use the packages from RPM Fusion and not have to manually reinstall the nVidia driver after every kernel and xorg-x11 update.

Edit: You may also need to recompile wine after manually installing the nVidia drivers, not sure I'd try running it without recompiling it first. You'd only have to do this once though and not after every kernel or xorg-x11 update.

Filter
29th May 2010, 06:10 PM

everything works, looks like there was conflicting issues between 2 drivers
I tried installing the nvidia driver by hand and had a bunch of issues. The nouveau driver didnt want to die so i had to completely remove it and rename the nouveau.ko