Comments (5)
Is the issue perhaps "k10temp" vs "amdgpu-pci-2100" in https://github.com/AdnanHodzic/auto-cpufreq/blob/master/auto_cpufreq/core.py#L1281C42-L1281C51 ?
from auto-cpufreq.
The python package used returns this structure
{'amdgpu': [shwtemp(label='edge', current=62.0, high=97.0, critical=97.0)], 'nvme': [shwtemp(label='Composite', current=40.85, high=69.85, critical=84.85)], 'k10temp': [shwtemp(label='Tctl', current=49.125, high=None, critical=None), shwtemp(label='Tccd1', current=39.5, high=None, critical=None), shwtemp(label='Tccd3', current=41.75, high=None, critical=None), shwtemp(label='Tccd5', current=40.25, high=None, critical=None), shwtemp(label='Tccd7', current=40.5, high=None, critical=None)], 'kraken3': [shwtemp(label='Coolant', current=35.0, high=None, critical=None)], 'iwlwifi_1': [shwtemp(label='', current=41.0, high=None, critical=None)]}
It contains k10temp
from auto-cpufreq.
The temperatures loaded by psutil are unsurprisingly accurate
print(psutil.sensors_temperatures()['k10temp'][0].current )
90.75
from auto-cpufreq.
Nevermind. The nixpackages code is just very old
# temperatures
core_temp = psutil.sensors_temperatures()
temp_per_cpu = [float("nan")] * online_cpu_count
try:
if "coretemp" in core_temp:
# list labels in 'coretemp'
core_temp_labels = [temp.label for temp in core_temp["coretemp"]]
for i, cpu in enumerate(cpu_core):
# get correct index in core_temp
core = cpu_core[cpu]
cpu_temp_index = core_temp_labels.index(f"Core {core}")
temp_per_cpu[i] = core_temp["coretemp"][cpu_temp_index].current
else:
# iterate over all sensors
for sensor in core_temp:
# iterate over all temperatures in the current sensor
for temp in core_temp[sensor]:
if temp.label == 'CPU':
temp_per_cpu = [temp.current] * online_cpu_count
break
else:
continue
break
else: # if 'CPU' label not found in any sensor, use first available temperature
temp = list(core_temp.keys())[0]
temp_per_cpu = [core_temp[temp][0].current] * online_cpu_count
except Exception as e:
print(repr(e))
pass
from auto-cpufreq.
Works with the flake
from auto-cpufreq.
Related Issues (20)
- How to enable Battery Threshold on Asus Vivobook K3502ZA_S3502ZA HOT 4
- KeyError on updating auto-cpufreq during exhausted GitHub API calls HOT 4
- System doesn't boot after disabling intel_pstate HOT 9
- CPU Frequency on battery power very low on a Intel 12gen HOT 2
- Intel CPU: Spamming of 'line 105: echo: write error: Device or resource busy HOT 14
- Not setting EPP (not supported by the system) HOT 1
- Intel CPU: Dell fans cycling
- Do not set any Turbo boost flags when using amd_pstate_epp driver HOT 3
- No "Warning: CPU turbo is not available" when using amd-pstate-epp
- service stops on nixos after boot HOT 7
- [FEATURE] Add battery threshold option for HP Victus 16 HOT 2
- Intel i7-1260p on Asus Laptop won't go past 2.5GHz
- Bluetooth disabled after reboot HOT 2
- Should warn about the threshold feature can not be applied. HOT 21
- scaling_min_freq doesnt work HOT 1
- Issue with auto-cpufreq-gtk when packaged as RPM HOT 5
- performance mode not working like a performance HOT 2
- Max frequency and gui not working HOT 1
- auto-cpufreq locks up on Fedora/Gnome HOT 5
- auto-cpufreq Ubuntu 24.04 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-cpufreq.