Unable to get GPU acceleration for GUI applications #463
Replies: 2 comments
-
From whatever digging I found out, the WSL system distro connects to and keeps alive the dedicated GPU (or whatever GPU it finds out?) even though it may not be the default renderer/the renderer being used. From your glxinfo output, it seems that software rendering is being used. |
Beta Was this translation helpful? Give feedback.
-
@hemanth981 thx. But this doesn't seem to work. system info debian@debian:~$ glxinfo -B
name of display: localhost:10.0
display: localhost:10 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Microsoft Corporation (0xffffffff)
Device: D3D12 (NVIDIA GeForce RTX 3060) (0xffffffff)
Version: 22.3.6
Accelerated: yes
Video memory: 44776MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.2
Max compat profile version: 4.2
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.1
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (NVIDIA GeForce RTX 3060)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 22.3.6
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.2 (Compatibility Profile) Mesa 22.3.6
OpenGL shading language version string: 4.20
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 22.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
debian@debian:~$ uname -a
Linux debian 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 GNU/Linux
Launch ms-edge debian@debian:~$ export MESA_D3D12_DEFAULT_ADAPTER_NAME="NVIDIA"
debian@debian:~$
debian@debian:~$ microsoft-edge-beta
[18256:18350:0807/150727.343341:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[18256:18350:0807/150727.343545:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[18256:18350:0807/150727.343749:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[18302:18302:0807/150727.430230:ERROR:ui/gl/angle_platform_impl.cc:47] Display.cpp:1089 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1089 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[18302:18302:0807/150727.430368:ERROR:ui/gl/egl_util.cc:92] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[18302:18302:0807/150727.430455:ERROR:ui/gl/gl_display.cc:640] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[18302:18302:0807/150727.440944:ERROR:ui/gl/angle_platform_impl.cc:47] Display.cpp:1089 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1089 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[18302:18302:0807/150727.441021:ERROR:ui/gl/egl_util.cc:92] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[18302:18302:0807/150727.441067:ERROR:ui/gl/gl_display.cc:640] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[18302:18302:0807/150727.441120:ERROR:ui/gl/gl_display.cc:675] Initialization of all EGL display types failed.
[18302:18302:0807/150727.441166:ERROR:ui/ozone/common/gl_ozone_egl.cc:27] GLDisplayEGL::Initialize failed.
[18302:18302:0807/150727.452942:ERROR:ui/gl/angle_platform_impl.cc:47] Display.cpp:1089 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1089 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[18302:18302:0807/150727.453019:ERROR:ui/gl/egl_util.cc:92] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[18302:18302:0807/150727.453059:ERROR:ui/gl/gl_display.cc:640] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[18302:18302:0807/150727.453774:ERROR:ui/gl/angle_platform_impl.cc:47] Display.cpp:1089 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1089 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[18302:18302:0807/150727.453828:ERROR:ui/gl/egl_util.cc:92] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[18302:18302:0807/150727.453868:ERROR:ui/gl/gl_display.cc:640] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[18302:18302:0807/150727.453927:ERROR:ui/gl/gl_display.cc:675] Initialization of all EGL display types failed.
[18302:18302:0807/150727.453958:ERROR:ui/ozone/common/gl_ozone_egl.cc:27] GLDisplayEGL::Initialize failed.
[18302:18302:0807/150727.454873:ERROR:components/viz/service/main/viz_main_impl.cc:189] Exiting GPU process due to errors during initialization
Warning: Vulkan shaderUniform*ArrayDynamicIndexing required.
- While initializing adapter (backend=BackendType::Vulkan)
at InitializeImpl (../../third_party/dawn/src/dawn/native/vulkan/PhysicalDeviceVk.cpp:211)
[18361:18361:0807/150734.971624:ERROR:ui/gl/egl_util.cc:92] EGL Driver message (Error) eglCreateContext: Requested version is not supported
Warning: eglCreateContext failed with EGL_BAD_ATTRIBUTE
- While trying to discover a BackendType::OpenGL adapter.
at CheckEGL (../../third_party/dawn/src/dawn/native/opengl/UtilsEGL.cpp:98)
debian@debian:~$
![]() P.S. PyTorch can run normally on Tensor Core. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
__Hello guys I am pretty new here and to WSL in general. I recently upgraded to the Windows 11 preview 22000.194 and upgraded my ubuntu 20.04 LTS WSL for WSLG capabilities. I was able to run the NVIDIA examples for CUDA compute workloads here without any problems. I was clearly seeing GPU activity in task manager. However, for GUI applications such as google-chrome, I do not get any GPU acceleration. I am running a Notebook PC with an AMD apu and NVIDIA RTX 2060 maxq (using NVIDIA optimus). Strangely when a GUI application is opened, even though there is no GPU acceleration, It seems like my GPU gets "activated" according to the "NVIDIA GPU Activity" windows application. Hopefully someone here knows how to fix that so I can run gui applications with gpu rendering. I will try to post as much relevant lnfo/logs here
Beta Was this translation helpful? Give feedback.
All reactions