NVIDIA最新显卡驱动和WSL2更新WSLG之后,WSL启动会自动调用NVIDIA独立显卡。
关闭方法:
在
c:\ProgramData\Microsoft\WSL\.wslgconfig
或
c:\Users\[your user name]\.wslgconfig
中添加
[system-distro-env]
;disable GPU in system-distro
LIBGL_ALWAYS_SOFTWARE=1
WSLG配置文档:
WSLg Configuration Options for Debugging · microsoft/wslg Wiki · GitHub