Change graphics card - Broken 3D acceleration of Wine

Questions about Wine on Linux
Locked
Turrican2k
Level 2
Level 2
Posts: 15
Joined: Sat Jan 15, 2022 4:27 am

Change graphics card - Broken 3D acceleration of Wine

Post by Turrican2k »

Hi! I swapped my graphics card from a Geforce GT 640M to a GTX 760. Everything works very well on Linux Mint (my operating system). But Wine doesn't allow 3D acceleration anymore. Games on Linux still work with 3D acceleration, but on Wine only programs and games start without 3D acceleration. C&C Generals z. B. reports a DirectX 8.1 error, other 3D games report nothing without starting. Do you have to adapt Wine separately to the new graphics card?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Change graphics card - Broken 3D acceleration of Wine

Post by jkfloris »

After swapping the graphics card, did you install any other drivers?
If so, did you also install the 32-bit parts of the driver?
Turrican2k
Level 2
Level 2
Posts: 15
Joined: Sat Jan 15, 2022 4:27 am

Re: Change graphics card - Broken 3D acceleration of Wine

Post by Turrican2k »

No, I didn't install anything after the swap. I don't know if the 32-bit drivers are installed. Can it be because of that? How do I see if these are installed?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Change graphics card - Broken 3D acceleration of Wine

Post by jkfloris »

If you are using the nvidia driver, then the nvidia-driver-libs:i386 package is installed.

Code: Select all

dpkg -l nvidia-driver-libs:i386
Turrican2k
Level 2
Level 2
Posts: 15
Joined: Sat Jan 15, 2022 4:27 am

Re: Change graphics card - Broken 3D acceleration of Wine

Post by Turrican2k »

I only use the Linux Mint Noveau driver. This driver works better for me. The Nvidia driver doesn't work with the GTX 760 and with the 640M the Nvidia driver runs very poorly (system gets hot, 3D acceleration lags).

I don't think the graphics card driver is causing the problem (?). Wine somehow doesn't need to recognize functional 3D acceleration. I don't know how to make Wine use it, other programs and games can do it without any problems.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Change graphics card - Broken 3D acceleration of Wine

Post by jkfloris »

The nouveau driver uses libglx-mesa0:i386, but I expect that package is already installed.

You could install one of the games in a clean wineprefix to rule out an issue in the wineprefix.
and/or post a terminal output.
Turrican2k
Level 2
Level 2
Posts: 15
Joined: Sat Jan 15, 2022 4:27 am

Re: Change graphics card - Broken 3D acceleration of Wine

Post by Turrican2k »

Code: Select all

/home/share/win/Games/C&C/Command & Conquer(tm) Generals Zero Hour$ wine generals
0100:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0080:fixme:imm:ImeSetActiveContext (0x3cca0, 0): stub
0080:fixme:imm:ImmReleaseContext (0000000000010020, 000000000003CCA0): stub
0100:fixme:imm:ImeSetActiveContext (0xa9f1d0, 1): stub
0100:fixme:imm:ImmReleaseContext (0002004E, 00A9F1D0): stub
0100:fixme:d3d:wined3d_swapchain_init The application requested more than one back buffer, this is not properly supported.
Please configure the application to use double buffering (1 back buffer) if possible.
0100:fixme:d3d:wined3d_swapchain_init The application requested more than one back buffer, this is not properly supported.
Please configure the application to use double buffering (1 back buffer) if possible.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Change graphics card - Broken 3D acceleration of Wine

Post by jkfloris »

This game stores its settings in "${HOME}/.wine/drive_c/users/$USER/Documents/Command and Conquer Generals Zero Hour Data". Make a backup of this folder and delete it. The folder will be created again after starting the game.

You will probably have to manually create the options.ini file again though.

From the AppDB:
When installed, create a file called "options.ini" in C:\users\\My Documents\Command and Conquer Generals Zero Hour" with content like this:

AntiAliasing = 0
DrawScrollAnchor =
FirewallBehavior= 0
GameSpyIPAddress = 192.168.0.1 (make sure you use your own IP)
Gamma = 50
IPAddress = 192.168.0.1 (make sure you use your own IP)
IdealStaticGameLOD = High
LanguageFilter = false
MoveScrollAnchor = 0
MusicVolume = 61
Resolution = 800 600
Retaliation = yes
SFX3DVolume = 58
SFXVolume = 53
ScrollFactor = 60
SendDelay = no
StaticGameLOD = lOW
UseAlternateMouse = no
UseDoubleClickAttackMove = no
VoiceVolume = 70
Turrican2k
Level 2
Level 2
Posts: 15
Joined: Sat Jan 15, 2022 4:27 am

Re: Change graphics card - Broken 3D acceleration of Wine

Post by Turrican2k »

That was the solution! Thank you!
Locked