Problems starting Torizon WSL

Hi,
i have the same Problem as described here:

When i start Troizon on WSL i just get a transparent Window.

Is there maybe a solution to this already?

This is the Version output from wsl:

WSL-Version: 2.3.26.0
Kernelversion: 5.15.167.4-1
WSLg-Version: 1.0.65
MSRDC-Version: 1.2.5620
Direct3D-Version: 1.611.1-81528511
DXCore-Version: 10.0.26100.1-240331-1435.ge-release
Windows-Version: 10.0.26100.2454

Any help would be very much appreciated

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


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:

  1. 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.

  2. 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
    
  3. Update WSL and Windows: Ensure both your Windows OS and WSL are up to date, as updates can improve WSLg functionality.

  4. 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.

  5. 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.

  6. Test with a Simple GUI Application: To determine if the issue is specific to Torizon, try running a simple GUI application like xclock or gedit 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:

VSCode Extension Problem with WLS2 GUI.

I tried the above but the problem is still there.

Hey @Christian

sorry to hear that you are having issues. Could you please try to resize the window when it show up? Please tell me if after resize the window render the content.

BR,

Hi Matheus,
thanks for your help. Resizing does not help.

Thanks for try it @Christian , so, should be there a workaround. Let’s try another way.

1- Create a folder with the name .torizon at:

C:\Users\Public

2- Create a file called password.txt at:

C:\Users\Public\.torizon

3- Into the file add the follow content:

newUser:newPassword

Here you can set preferred name and password for your new distro login.

This is a mechanism that exist for automate tests. Please try and report if this works.

EDIT: and please do not forget to remove the password.txt file as soon the distro configures the new user.

BR,

Hi Matheus,
i tried with the .torizon file but i get the same result, no change…

Hi Matheus,
i made a mistake the last time. It works now with the password file. Thank you.