Skip to content

WSLG doesn't release unused GPUs and doesnt autoshutdown #492

Answered by hemanth981
hemanth981 asked this question in Q&A
Discussion options

You must be logged in to vote

I think I found a solution: force software rendering in WSL system distro by adding LIBGL_ALWAYS_SOFTWARE=1 in .wslgconfig
So I assume the system distro is connecting to and acting as a keepalive for the GPU, eventhough the renderer actually being used by my user distro is the intel one. (Maybe it keeps alive all the GPUs it enumerated?)
(Wouldn't it be better if it kept alive only the preferred renderer/the one last used, rather than all the GPUs?)

Also, now I can start gui apps from within the wsl terminal using the intel GPU and not kick start the Nvidia one after exporting MESA_D3D12_DEFAULT_ADAPTER_NAME="INTEL" . I don't know if this is actually a good solution, or what all other imp…

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by hemanth981
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@hemanth981
Comment options

@McBride-SallyJoeBob
Comment options

@hemanth981
Comment options

@McBride-SallyJoeBob
Comment options

@McBride-SallyJoeBob
Comment options

Comment options

You must be logged in to vote
1 reply
@McBride-SallyJoeBob
Comment options

Comment options

You must be logged in to vote
4 replies
@hemanth981
Comment options

@McBride-SallyJoeBob
Comment options

@hemanth981
Comment options

@luciandf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants