devhome
devhome copied to clipboard
Add a CPU temperature monitor
Description of the new feature / enhancement
To check CPU temperatures right now, we need to install 3rd party apps like CoreTemp, as there is no native implementation. This feature in PowerToys could be used to quickly check CPU temps, probably have it pinned to the taskbar and/or a widget. eg. CoreTemp's monitor
Scenario when this would be used?
This can be used to quickly check on CPU temperature, and also other stats (like CoreTemp).
Supporting information
No response
Sounds like a nice feature. I'm not sure, but maybe this helps:
There is a command for cmd and powershell to do this. wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature It's result devided by 10 is the temperature in kelvin. From kelvin it shouldn't be that hard, to get to celsius or fahrenheit for our american friends. But this command needs admin privileges.
You could either execute this command in your .net code basis or it might guide you to the correct .net library or WMI. Sadly my C# and C++ knowledge is a bit rusty.
for reference, better APIs may need to be created, see - https://github.com/microsoft/Windows-Dev-Performance/issues/101
For now, I've used typeperf.exe to fetch throttling info:
typeperf.exe -sc 1 "\Processor Information(_Total)\Processor Frequency"
REM "(PDH-CSV 4.0)","\\DELL_DE_VADIM\Processor Information(_Total)\Processor Frequency"
REM "08/09/2023 13:43:32.695","1358.000000"
typeperf.exe -qx | findstr.exe Frequency
But I agree, more user-facing controls in Task Monitor or DevHome are needed: for throttling, cpu temperature, fan usage etc. Ideally these should be displayed directly when minimized into the toolbar as well