Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
I’m sorry to hear you’re experiencing issues with a transparent window when starting Torizon on WSL. Let’s try a few steps to resolve this:
-
Verify WSLg Installation: Ensure that WSLg is properly installed and configured, as it handles GUI applications in WSL2. You can check the version by running
wsl --version
and confirm it matches your expectations. -
Check Display Server Settings: Sometimes, the display server settings might need adjustment. Try setting the
DISPLAY
environment variable manually in your WSL terminal:export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
-
Update WSL and Windows: Ensure both your Windows OS and WSL are up to date, as updates can improve WSLg functionality.
-
Reinstall Torizon Extension: If the issue persists, consider reinstalling the Torizon extension in Visual Studio Code. Make sure to install it on the Windows side, not within WSL.
-
Check VSCode Logs: Open the Developer Tools in VSCode (Help > Toggle Developer Tools) and review the console for any error messages that might provide more insight.
-
Test with a Simple GUI Application: To determine if the issue is specific to Torizon, try running a simple GUI application like
xclock
orgedit
in WSL2 to see if they display correctly.
I hope these steps help you resolve the issue. If you have any further questions, feel free to ask.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem: