bouhaa
1f925a8328
Don't break when CPUPower k10temp is found
...
Vanilla upstream versions don't have any power management support. Also, if zenpower/zenergy are found in the AMD options always pick that over the k10temp version.
1 year ago
bouhaa
f964702aea
integrate zenergy into Mangohud
...
Reuses most of the RAPL code paths
1 year ago
Bouke Haarsma
05d3a6db04
fix: Use k10-temp power sensors if exist
1 year ago
Bouke Haarsma
f1a6753796
Use k10-temp power sensors if exist
1 year ago
FlightlessMango
6c46794496
cpu: core mhz: if scaling isn't available, use /proc/cpuinfo instead
1 year ago
sfrcorne
a98a402619
Fix for AMD Ryzen 7000 CPU when using the iGPU.
2 years ago
sfrcorne
cd74b27da2
Cleanup cpu.cpp and and support for gpu_metrics_v2_3
2 years ago
Emil Velikov
eecd451068
meson: build with -Werror=missing-declarations
...
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2 years ago
Alessandro Toia
f76527d14f
Revert "Fix reporting temp of AMD zen4 CPUs"
...
This reverts commit edac405d57
.
Didn't actually fix the issue oops
2 years ago
Alessandro Toia
edac405d57
Fix reporting temp of AMD zen4 CPUs, zen4 doesn't use Tdie, use Tctl instead
2 years ago
MasterDevX
99f0e4139c
Add support for it8603 sensor
2 years ago
jackun
e4b23c937e
Deal with disappearing cpus
...
Reinit if cpu is brought offline/online, e.g. `echo 0 > /sys/devices/system/cpu/cpu1/online`
Fix #737
2 years ago
jackun
d2d6787568
Cleanup some header inclusions
3 years ago
FlightlessMango
5b1bda770a
mangoapp: remove debug stuff
3 years ago
FlightlessMango
1940a83566
mangoapp: don't assume APU for temps
3 years ago
Emil Velikov
42de1edc22
Rework cpu freq node handling
...
Similar to the prior commit - fscanf directly into the required data
type.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
3 years ago
Alessandro Toia
fb97530965
cpu: Fix not reporting amd cpu power
3 years ago
FlightlessMango
d71dd74685
Fix amdgpu watt and make it more granular
3 years ago
FlightlessMango
d72099d1e7
Fixed issue with amdgpu metrics for APU
3 years ago
FlightlessMango
6983c2ec39
Use gpu_metrics instead of libdrm when available
3 years ago
Lukáš Horáček
4943129844
cpu: Add parentheses around assigment in if check
3 years ago
Lukáš Horáček
e0cee5dbe3
cpu: Remove unused _power variable
3 years ago
FlightlessMango
37e18279e7
mangoapp: use amdgpu metrics
3 years ago
FlightlessMango
e7c59c55a2
Rewrite reading core mhz files
3 years ago
FlightlessMango
337ecbc4cf
use scaling_cur_freq for cpu core mhz
3 years ago
FlightlessMango
872c3f03a4
Show highest cpu freq instead of cumulative
3 years ago
jackun
a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time
3 years ago
jackun
2f807a4c0d
Add `spdlog` wrap and logging
3 years ago
medusalix
560930214a
Fix CPU power calculations
3 years ago
jackun
ae410f01e7
Re-init cpu stats if core count changes; fix off-by one error
...
Helps with #438
4 years ago
jackun
6ad9791ceb
Deduplicate code for `find_*_input` functions
4 years ago
Witold Baryluk
26262e24ff
Improve initialization logic for cpu.cpp
...
Use smart pointers.
Get rid of gotos and labels.
4 years ago
Lukáš Horáček
3726c90c7a
Add cpu_power
4 years ago
FlightlessMango
553bf50e6a
Added cpu_mhz param
4 years ago
jackun
c75232389b
A little more "atomic" cpu temp update for hud renderer; whitespace
4 years ago
FlightlessMango
759c4aeed1
No need to 0 cpu temp every tick
4 years ago
jackun
6ee225ed66
Clear cpu temp hwmon path if no supported sensor is found
4 years ago
jackun
068157f3d8
Fix cpu fallback temp sensor logic
...
Break the for loop either way so `path` still points to sensor module's hwmon folder.
4 years ago
FlightlessMango
71cbd66afb
Fixing cpu temp for core 2 duo CPUs
4 years ago
jackun
d93a21589e
Find cpu temp sensor input by label or fallback to first `tempN_input`
4 years ago
jackun
768297b430
[editorconfig] Apply whitespace rules
4 years ago
FlightlessMango
bff9958284
Changed pthreads to std::thread
4 years ago
jackun
712590befe
Check if CPU sensor file handle is valid
5 years ago
jackun
9a7a4d99e0
Don't update CPU freq/temp if not enabled
5 years ago
jackun
4adb6ed25f
Convert tabs to spaces in cpu.cpp/cpu.h
5 years ago
jackun
05d61ee77e
Init CPUStats just once
5 years ago
FlightlessMango
a2735693ba
Merge opengl into develop
5 years ago
jackun
bf45bd9a02
Don't increment cpuData index inline
5 years ago
jackun
217b65f0e9
Some cpu/gpu stats parsing fixes
5 years ago
jackun
90416278e0
Total cpu periods
5 years ago