# Hardware Monitoring

### Problem
When running Linux, especially older 6.x kernels, you might find that there are no thermal/power sensors available.

### Solution
I tried several different options, but the only thing that worked was [CoreFreq](https://github.com/cyring/CoreFreq). It has its own kernel module, daemon and console client. The installation is pretty straightforward, just follow the official installation guide (note that there is [a separate instruction for Proxmox](https://github.com/cyring/CoreFreq?tab=readme-ov-file#proxmox)). Don't forget to enable the daemon afterwards with `systemctl enable corefreqd`.

![](./corefreq-sensors.png)

If you need to access some individual values to be used elsewhere, `corefreq-cli` supports JSON output. For example, here's how you can get current CPU temprature and power limit:
```bash
corefreq-cli -j | jq -c "{cputemp: ([.Cpu[].FlipFlop[].Thermal.Temp] | add/length | round ), cpupower: (.Proc.State.Power[0] | round)}"
```

### Relevant Pages
 - [[Guides/Power-Mode-and-Fan-Control]]
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9