-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL not being usable after computer startup when Fast Startup enabled #6244
Comments
Please collect WSL logs and post the backlink to the feedback item here. Goal of the diagnostic run would be to catch the "odd input/output errors". |
Whenever I enable WSL2 along with Virtual Machine Platform and move the mouse the screen starts to flicker. I have tried it several times but the issue still persists. WSL1 works fine. |
I have the same issue. Windows Restart is a workaround for now. |
I was able to figure a workaround. Just disable the fast boot from BIOS. It will increase the boot time by 3-4 sec but the issue will be resolved. The issue is that the WSL is not getting initialized properly. |
I had the same exact problem with WSL1. |
Environment
Steps to reproduce
To reproduce this issue, you must have enabled (or left enabled, because it's default) the Fast Startup option in power settings.
WSL logs:
Expected behavior
When using the Visual Studio Code example, the editor would load up correctly and the opened bash terminal should wait for user input.
Actual behavior
We are getting some odd input/output errors probably due to Linux kernel not being recovered well from the "fast startup". If you disable this option, the whole Windows and Linux kernel are being shut down, like what "Restart" does (and which is why we never encounter this issue after a "Restart"), so everything is loaded up correctly at next boot.
At the moment, we either need to disable fast startup which can be pretty idiot because it offers a really great boot time on fast SSDs, or run "wsl --shutdown" when we login either ourselves or via a planned task (what I did for now).
I don't really know what would be a fix, maybe shutting down WSL properly when "Shutting computer down" or going deeper to find the actual root cause, no idea.
The text was updated successfully, but these errors were encountered: