You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default Distribution: Ubuntu
Default Version: 2
WSL1 is not supported with your current machine configuration.
Please enable the "Windows Subsystem for Linux" optional component to use WSL1.
Did the problem occur during installation?
Yes
What happened?
Ubuntu in WSL2 works as expected, the only problem is when launching desktop applications on my laptop I run into issues, and I think it is related to the nvidia drivers (and maybe hardware acceleration?). On my desktop I have exactly the same set-up, and everything seems to work fine.
The weird thing is some applications seems to work fine, and I think it has to do with the 2 GPUs that I have in my laptop.
An onboard GPU: Intel(R) Arc(TM) Graphics
And a nvidia GPU: NVIDIA RTX A500 Laptop GPU
For instance, firefox launches without problems (however it gives some warnings, but it launches):
ramon@LT03-5CG4241K0Y ~ $ firefox
[4238] Wayland Proxy [0x7fc0baf54ce0] Error: CheckWaylandDisplay(): Failed to connect to Wayland display '/run/user/1000/snap.firefox/wayland-0' error: No such file or directory
Error: Failed to open Wayland display, fallback to X11. WAYLAND_DISPLAY='wayland-0' DISPLAY=':0'
[GFX1-]: glxtest: Could not connect to wayland display, WAYLAND_DISPLAY=(null)
[GFX1-]: More than 1 GPU from same vendor detected via PCI, cannot deduce device
[GFX1-]: More than 2 GPUs detected via PCI, secondary GPU is arbitrary
On the other hand google-chrome, and a lot of other applications (e.g. wezterm, spotify, slack) all throw the following message somewhere in their logs:
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (NVIDIA RTX A500 Laptop GPU)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization
Maybe there is a way to fully disable the nvidia GPU for WSL usage? And only use the intel GPU?
What was expected?
To run most desktop application on Ubuntu WSL2 without problems.
Steps to reproduce
Running either spotify, google-chrome, or wezterm (probably a lot more applications, however I tested these) on a laptop with the following GPU: NVIDIA RTX A500 Laptop GPU.
ramon@LT03-5CG4241K0Y ~ $ google-chrome
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
[5249:5275:1008/083127.315431:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[5249:5275:1008/083128.336004:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Created TensorFlow Lite XNNPACK delegate for CPU.
Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#141 is a dynamic-sized tensor).
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (NVIDIA RTX A500 Laptop GPU)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization
Logs when launching spotify:
Click
ramon@LT03-5CG4241K0Y ~ $ spotify
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (NVIDIA RTX A500 Laptop GPU)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization
The text was updated successfully, but these errors were encountered:
For other people running into this issue, I found a small workaround. It isn't the desired solution, because I am disabling the NVIDIA GPU and purely switch to using the onboard intel GPU for WSL2, but it seems to work fine.
Add the following to your C:\Users\<user>\.wslconfig :
cmd /c ver
Microsoft Windows [Version 10.0.22621.4169]
wsl --status
Default Distribution: Ubuntu
Default Version: 2
WSL1 is not supported with your current machine configuration.
Please enable the "Windows Subsystem for Linux" optional component to use WSL1.
Did the problem occur during installation?
What happened?
Ubuntu in WSL2 works as expected, the only problem is when launching desktop applications on my laptop I run into issues, and I think it is related to the nvidia drivers (and maybe hardware acceleration?). On my desktop I have exactly the same set-up, and everything seems to work fine.
The weird thing is some applications seems to work fine, and I think it has to do with the 2 GPUs that I have in my laptop.
An onboard GPU: Intel(R) Arc(TM) Graphics
And a nvidia GPU: NVIDIA RTX A500 Laptop GPU
For instance, firefox launches without problems (however it gives some warnings, but it launches):
On the other hand google-chrome, and a lot of other applications (e.g. wezterm, spotify, slack) all throw the following message somewhere in their logs:
Maybe there is a way to fully disable the nvidia GPU for WSL usage? And only use the intel GPU?
What was expected?
To run most desktop application on Ubuntu WSL2 without problems.
Steps to reproduce
Running either
spotify
,google-chrome
, orwezterm
(probably a lot more applications, however I tested these) on a laptop with the following GPU:NVIDIA RTX A500 Laptop GPU
.Additional information
glxinfo output:
Click
Logs when launching chrome:
Click
Logs when launching spotify:
Click
The text was updated successfully, but these errors were encountered: