WINE Worked Great ... Until I Switched Graphics Drivers

Questions about Wine on Linux
Locked
hungryhobbit
Newbie
Newbie
Posts: 1
Joined: Sat Apr 29, 2023 4:08 pm

WINE Worked Great ... Until I Switched Graphics Drivers

Post by hungryhobbit »

I have a Linux Mint laptop with two graphics cards: a (separate) Nvidia one, and a built-in (to the motherboard) Intel one.

For awhile I was using the Intel one, and it worked great, including with WINE. But then I wanted to try using the NVidia one to make a game work, so I installed the latest Nvidia drivers.

Everything went smoothly, except ... now WINE doesn't work. When I even just do:

Code: Select all

WINEPREFIX=${HOME}/wine-test wine winecfg
I get:

Code: Select all

0138:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0138:err:winediag:nodrv_CreateWindow L"The explorer process failed to start.
Also, the message:

Code: Select all

MESA-INTEL: warning: Haswell Vulkan support is incomplete
repeats several times after. If I run "winecfg" with no prefix, I get:

Code: Select all

0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00e0:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00e0:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
I tried uninstalling and reinstalling WINE, but that didn't help. Can anyone suggest anything I could try to make WINE work again?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: WINE Worked Great ... Until I Switched Graphics Drivers

Post by jkfloris »

You can probably run Wine with your Intel card with:

Code: Select all

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json WINEPREFIX=${HOME}/wine-test wine winecfg
To use the NVIDIA GPU, something like NVIDIA Prime have to be used. Probably something like:

Code: Select all

export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json
WINEPREFIX=${HOME}/wine-test wine winecfg
Locked