-
Notifications
You must be signed in to change notification settings - Fork 61
Add function to identify cpu temperature for unkown sensors #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add function to identify cpu temperature for unkown sensors #55
Conversation
* Add function cpuTempByFanMatching to identify cpu temperature by matching cpu name and fan name * Add function helperMatchFirstKey to compare cpu sensor names with fan sensor names * Call cpuTempByFanMatching and add result into temperature label
|
Hi, |
|
Oh okay, that sucks. But in case Otherwise a different library could be a good way or using the |
|
What about checking which of |
As you can see from #22 many identifiers result in multiple |
|
What do you think about the following? A. Read
B. Use PySensors (Not actively maintained)
C. Use PySensors (Actively maintained)
I think option B is the easiest way to get reliable results. We just have to test whether it works fine. Option C would be cool since it is still maintained, but it's far more difficult to implement since we have to build it on our own. |
|
Can you share what you have in the directory: I would like to go with option A for the short term if we can get some similarities and if it is easy to get temperature. Can you share what you have in the directory: Also, Can you run the sample code here and share the output. |
|
Unfortunately, I tested the None of them give me any temperature information: According to this conversation, another approach is On both of my systems (notebook and PC), the Still, idk how reliable this is. Nevertheless, the PySensors example code leads to the following output on my system: |
|
@KrispyCamel4u what do you think about the |
This one does provide us with temps. But just to be sure, how the temperature label is determined to be of cpu in |
By checking the symlink name. If it has |
|
@KrispyCamel4u shall I provide an implementation? |
|
Hi, first of all sorry for the late reply I was busy with endterms. |
|
I can totally relate, it will take some time for me to get started with the implementation since I have some upcoming deadlines as well. |
|
hi, |
|
Sure! But maybe we should revisit the approach. This example worked for me: |
|
pyspectator uses these files to get temps: I will try later this evening to see if it works for my system. |
|
Hi, If in worst case, we wanna show this What are the directories that is available on system and can you check what all these temp correspond to? |





With my setup, the core temperature could not be read correctly which leads to
NAas CPU temperature.I found this discussion of yours and tried to print my temperature via ps.util. The output is the following:
As you can find here the k10temp does not return the real temperature for me, but more of a relative value to control fan speed.
Accordingly, I figured out that
'f71889a'[0]is my "real" cpu temperature which comes from the mainboard. Since'f71889a'is a completely shitty identifier to search for (and I'm quite certain that it differs when you have a different CPU/Mainboard), I added a function which searches for the same identifier inps.sensors_fans(). Because usually, your CPU also has a fan which has the same identifier as the temperature sensor.I know this is kind of a hacky way which may not return the correct core temperature in any case, so I can understand if you don't want to merge this PR. Nevertheless, I think it doesn't really hurt to use this method as a last way if the previous identifiers
'coretemp'and'k10temp'don't match.So, here is my setup:
And the changes of this PR: