You are not logged in.

#1 2009-12-17 03:33:41

JMS
Member
Registered: 2009-09-16
Posts: 11

[SOLVED] Wine can't initialize DirectX

Whenever I start up a 3D game in Wine (other Wine programs work fine, ie Steam) I get errors like this in the console:

err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
fixme:advapi:SetSecurityInfo stub
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
err:d3d:WineDirect3DCreate Direct3D8 is not available without opengl
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
err:d3d:WineDirect3DCreate Direct3D8 is not available without opengl

Anyone else having this issue?  Any help would be appreciated!

Last edited by JMS (2009-12-17 16:14:00)

Offline

#2 2009-12-17 03:42:19

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Wine can't initialize DirectX

Looks like you are missing 3d acceleration. What gfx card do you have, and what drivers are you running?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2009-12-17 04:36:12

JMS
Member
Registered: 2009-09-16
Posts: 11

Re: [SOLVED] Wine can't initialize DirectX

NVIDIA Geforce 7900GS
NVIDIA Driver Version: 190.42
Wine 1.1.34

I know this problem isn't exclusive to this hardware though, my friend has a Geforce G105M and he has identical error messages.

Offline

#4 2009-12-17 05:57:08

drama
Member
From: muscatine, iowa, USA
Registered: 2009-12-07
Posts: 12

Re: [SOLVED] Wine can't initialize DirectX

Are you running a x64 os? I only ask because when you run arch64 and install wine id you have an nivida card and use the nvidia drver you also have to install lib32-nvidia-utils. If you dont do this you wont get hardware acceleration (dri) in wine. Of course this only applies to x64.

So i would give that a try.

pacman -S lib32-nvidia-utils

If that dont solve it post the following:

glxinfo

(just run this command from a terminal)

as well as the contents of your xorg.conf

gedit /etc/X11/xorg.conf

(just copy and paste the contents of that file).

Hope this helps.

Last edited by drama (2009-12-17 05:58:19)


OS: Archlinux 64Bit Hardware: Cpu: Amd Sempron 3500+(2.0ghz) (socket 939), Ram: Kingston 1gb dual channel ddr (512mb x2), Gpu: BFG Nvidia 8400gs PciE 512mb (G98), Mobo: Asus a8ae-le/amberine-m (factory hp), Optical: LiteOn Dvd writer, HDD: Western Digital 160GB Sata, Soundcard: Dynex 5.1 Channel (VIA Envy24/ICE1724 chip), Monitor: MAG 565 15 inch Lcd

Offline

#5 2009-12-17 08:35:35

JMS
Member
Registered: 2009-09-16
Posts: 11

Re: [SOLVED] Wine can't initialize DirectX

@drama
Thank you so much, installed the lib32 fixed everything!

Now I just have one last question, and it's unrelated, but it seems like I'm not an administrator on my computer because whenever I use pacman I have to use sudo.  How can I fix that?

Thanks again for all the help!

Offline

#6 2009-12-17 09:04:51

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: [SOLVED] Wine can't initialize DirectX

That is how its supposed to be. Unless you allow your account to be able to access all root access commands you'll always have to either sudo or su for pacman because it could potentially be system altering.

The only problem with making your account 'admin' as you put it is that anyone can run up to your terminal and start typing away potentially harmful commands and wont be asked for a password and KABOOMY smile

Last edited by SiegeMachine (2009-12-17 09:07:12)

Offline

#7 2009-12-17 09:17:06

JMS
Member
Registered: 2009-09-16
Posts: 11

Re: [SOLVED] Wine can't initialize DirectX

Yeah, I realize the dangers of being an admin, I just thought there was a way to make pacman run without sudo.  Whatever, it's fine, I can deal with typing 4 extra letters if there isn't a "fix".

Offline

#8 2009-12-17 09:50:18

drama
Member
From: muscatine, iowa, USA
Registered: 2009-12-07
Posts: 12

Re: [SOLVED] Wine can't initialize DirectX

JMS wrote:

Yeah, I realize the dangers of being an admin, I just thought there was a way to make pacman run without sudo.  Whatever, it's fine, I can deal with typing 4 extra letters if there isn't a "fix".

You can also use a bash alias.

As an example:

alias supac='sudo pacman'

You would place the above in the bashrc of your profile

gedit /home/YOURUSERNAME/.bashrc

Then to use it right away

source /home/YOURUSERNAME/.bashrc

Otherwise you can just logout then back in.

Then using the example you could just do

supac -Syy
supac -Syu

You just use supac in place of sudo pacman (the rest stays the same). You can use a different alias though. It doesnt have to be supac.


P.s. Glad the lib32-nvidia-utils fixed your issue. I had the same problem when i first started with arch so i assumed that was the issue.

Last edited by drama (2009-12-17 09:50:36)


OS: Archlinux 64Bit Hardware: Cpu: Amd Sempron 3500+(2.0ghz) (socket 939), Ram: Kingston 1gb dual channel ddr (512mb x2), Gpu: BFG Nvidia 8400gs PciE 512mb (G98), Mobo: Asus a8ae-le/amberine-m (factory hp), Optical: LiteOn Dvd writer, HDD: Western Digital 160GB Sata, Soundcard: Dynex 5.1 Channel (VIA Envy24/ICE1724 chip), Monitor: MAG 565 15 inch Lcd

Offline

#9 2009-12-17 13:07:32

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: [SOLVED] Wine can't initialize DirectX

this article is for those who want to set up your wine configs of your graphics card and opengl
http://linuxgamingtoday.wordpress.com/2 … g-in-wine/

btw:
you may want to use visudo to edit the sudoers file and disable password authentication to use pacman for example.

and mark your topic as [SOLVED]

Last edited by quarkup (2009-12-17 13:12:30)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

Board footer

Powered by FluxBB