Tags: #WSL2 #Ubuntu2404 #WSLg #NVIDIA #OpenGL #CUDA
🧩 Context
I’m using Windows 11 with WSL2 and Ubuntu 24.04 LTS, trying to run Gazebo / RViz / OpenGL apps with NVIDIA GPU acceleration through WSLg.
CUDA works, but OpenGL still falls back to software rendering (llvmpipe).
⚙️ Environment
| Component | Version / Info |
|---|---|
| Windows | 11 Pro – build 26100.6725 |
| WSL | 2.6.1.0 |
| Kernel | 6.6.87.2-microsoft-standard-WSL2 |
| WSLg | 1.0.66 |
| Ubuntu | 24.04.3 LTS |
| GPU | NVIDIA GeForce RTX 2050 |
| Driver (Windows) | 581.42 |
| CUDA | 13.0 |
🧪 What I have tested
-
✅ GPU detected
nvidia-smi→ Works fine, GPU and driver visible.
-
❌ No WSLg detected
echo $WSLG→ Empty output.
-
❌ OpenGL renderer = software
glxinfo | grep "OpenGL renderer"→ Output:
llvmpipe (LLVM 20.1.2, 256 bits)(CPU rendering only). -
✅ Fix attempts
-
Removed manual
DISPLAYandLIBGL_ALWAYS_INDIRECTfrom.bashrc -
Ran:
wsl --update wsl --shutdown -
Tried reinstalling WSLg manually:
Add-AppxPackage -Register "C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.66.0_x64__8wekyb3d8bbwe\AppxManifest.xml"→ Path not found (new WSL integrates WSLg).
-
-
❌ Alternative (VcXsrv)
-
xeyesworks, but still software rendering. -
OpenGL fallback remains
llvmpipe.
-
-
⚙️ NVIDIA bug report
sudo nvidia-bug-report.sh→ Report generated, but
/proc/driver/nvidia/versionmissing (expected in WSL2).
🚫 Current status
-
nvidia-smi✅ Works -
CUDA✅ Works -
OpenGL❌ Software rendering (no GPU acceleration) -
WSLg❌ Seems inactive on Ubuntu 24.04
❓ Question
Is there a known incompatibility between WSLg and Ubuntu 24.04 LTS?
If so, should I switch back to Ubuntu 22.04 LTS to get NVIDIA OpenGL hardware acceleration?
Or is there a way to force-enable WSLg on Ubuntu 24.04 under Windows 11?
📎 Logs available
here is my nvidia-bug-report
nvidia-bug-report.log.gz (191.9 KB)
