WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Is it possible to hook up some more /sys/class locations

Open sfoxover opened this issue 6 years ago • 3 comments

I wanted to use WSL 2 for developing in C++ on Windows 10. But I have found its not working like a full Linux Distro. I have upgraded to Ubuntu 19.10 server on WSL 2 but found it missing /sys/class folders.

I would like to be able to test and use "/sys/class/thermal/thermal_zone0/temp" to read the CPU temperature. I assumed WSL 2 would work exactly the same as Ubuntu 19.10.

Unfortunately it means I will need to use a real Linux box.

sfoxover avatar Jan 20 '20 00:01 sfoxover

Hi @sfoxover
Did you find a way to do this?

andreujuanc avatar Dec 22 '20 21:12 andreujuanc

This has not been fixed in WSL2, I am running Ubuntu 22.04 on WSL2 and do not have thermal_zone folders in /sys/class/thermal:

image image

Victormeriqui avatar Feb 13 '23 17:02 Victormeriqui

I'm running Debian (bullseye) on WSL2 and also do not have thermal_zone folders in sys/class/thermal :

screenshot-wsl2-thermal-list

screenshot-wsl2-running-state

eddie-m-m avatar Jul 02 '23 17:07 eddie-m-m