turing-smart-screen-python icon indicating copy to clipboard operation
turing-smart-screen-python copied to clipboard

AMD APU used instead of dedicated GPU

Open StanimirS opened this issue 3 years ago • 5 comments

Describe the bug
I am getting no gpu load and gpu temperature stats, and my gpu memory is not displayed correctly. I am using amd 7900xtx. The console long for warning is :

4/3/2023 3:30:40 [WARNING] Your GPU load is not supported yet
4/3/2023 3:30:40 [WARNING] Your GPU temperature is not supported yet

Environment:
master branch -Release 2.4.0 -OS windows 11 Untitled-1

-Python version 3.8 -AMD 7900XTX with 7950X3D and Asus rog strix x670e-f gaming wifi mobo

StanimirS avatar Apr 03 '23 00:04 StanimirS

Have a solitions ?

ooemir23 avatar Apr 24 '23 02:04 ooemir23

Hi, for new hardware support on Windows you need to get the latest Release 2.4.1 with upgraded LibraHardwareMonitor library. This project relies on LibreHardwareMonitor to get hardware sensors. You also need to run the program as Administrator, otherwise it will use Python libraries to get hardware sensors which does not support recent hardware.

mathoudebine avatar Apr 24 '23 06:04 mathoudebine

That was not the issue. In fact I found a few issues and fixed them for my system specifically.

So first of all my cpu is 7950X3D and it has an integrated graphics card. As a result of that I had 2 gpus. And the app always picked the integrated graphics card which libra hadrware monitor did not support temp and utilization (which is normal) so what I did was filter out the integrated gpu by its name in the get_hw_and_update in sensors_librehardwaremonitor.py.

Second issue I found was as following: I have 64GB of ram, which is more than enough to run my system without a page file. But you seem to take in virtual memory measurements as if they are the physical memory values, which actually results in decision by 0 in the Memory class. So what I did was just use the actual memory instead. You should probably add a check there and calculate based on actual memory if virtual memory is 0.

StanimirS avatar Apr 26 '23 21:04 StanimirS

I have 0 experience with python so all my fixes are basically hacks, but I would appreciate it if you fixed them properly.

StanimirS avatar Apr 26 '23 21:04 StanimirS

Thanks for the feedback, I will fix the bug for the discrete GPU. I had not taken it into account when this program was created. Can you share here your fix for the memory? Thanks

mathoudebine avatar Apr 27 '23 06:04 mathoudebine