Nothing will run through wine on laptop; dual GPUs seem to be at faul, but cannot find solution

Questions about Wine on Linux
Locked
CaptainD54321
Newbie
Newbie
Posts: 2
Joined: Sat Dec 10, 2022 7:03 pm

Nothing will run through wine on laptop; dual GPUs seem to be at faul, but cannot find solution

Post by CaptainD54321 »

I recently switched a laptop of mine (that I had had for a while, running Windows), to Linux, and since then have not been able to get any software to run through wine. Any attempt to launch with wine gives an "Application tried to create a window, but no driver could be loaded" error, as seen here (user and system names redacted for anonymity):

Code: Select all

[REDACTED]@[REDACTED]:~$ wine notepad.exe
002c:fixme:winediag:LdrInitializeThunk wine-staging 7.22 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
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."
After much internet searching, I have found various other people having similar issues, with the commonality seeming to be systems with multiple GPUs (usually an integrated Intel one and a dedicated NVIDIA one), much like this laptop. I have tried uninstalling and reinstalling wine several times, running in a clean wine prefix, and have not been able to get wine to work at all. Any assistance would be appreciated here.

System specs here:

Code: Select all

inxi -MSCG
System:
  Host: [REDACTED] Kernel: 5.15.0-56-generic x86_64 bits: 64
    Desktop: Cinnamon 5.4.12 Distro: Linux Mint 21 Vanessa
Machine:
  Type: Laptop System: Alienware product: Alienware m15 v: 2.12.0
    serial: <superuser required>
  Mobo: Alienware model: 01F1MV v: A00 serial: <superuser required>
    UEFI: Alienware v: 2.12.0 date: 01/11/2022
CPU:
  Info: 6-core model: Intel Core i7-8750H bits: 64 type: MT MCP cache:
    L2: 1.5 MiB
  Speed (MHz): avg: 800 min/max: 800/4100 cores: 1: 800 2: 800 3: 800
    4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] driver: nvidia
    v: 525.60.11
  Device-3: Sunplus Innovation Integrated_Webcam_FHD type: USB
    driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 resolution: 1920x1080~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    v: 4.6 Mesa 22.0.5
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Nothing will run through wine on laptop; dual GPUs seem to be at faul, but cannot find solution

Post by jkfloris »

Does Wine work if you set the "VK_ICD_FILENAMES" variable?

Code: Select all

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json wine notepad.exe
CaptainD54321
Newbie
Newbie
Posts: 2
Joined: Sat Dec 10, 2022 7:03 pm

Re: Nothing will run through wine on laptop; dual GPUs seem to be at faul, but cannot find solution

Post by CaptainD54321 »

Wow, not sure why I didn't notice this reply until just now, could've sworn I checked this thread several times over the last few days, just gave that solution a try and it seems to work pretty well, I'm a bit of a Linux noob still, I assume there's an easy way to set that variable by default so I don't have to add that every time I need to run something through wine?
Time4Tea
Level 3
Level 3
Posts: 56
Joined: Sat Apr 25, 2020 11:32 am

Re: Nothing will run through wine on laptop; dual GPUs seem to be at faul, but cannot find solution

Post by Time4Tea »

Add it to your ~/.bashrc script. Then the variable will be set automatically, whenever you open a terminal window.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Nothing will run through wine on laptop; dual GPUs seem to be at faul, but cannot find solution

Post by jkfloris »

If you put the variable in bashrc, other programs will also use the incorrect value.
However, you can create an alias in bashrc

I'm wondering if you can use Wine when you run it on the Nvidia card?
I don't know exactly how to do that, but it's probably something like:

Code: Select all

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia wine notepad.exe
Locked