A CLI based cpu monitoring application inspired by Throttlestop.
Cpumon monitors quantities like frequency, load, temperature, voltage and power draw of your CPU.
It can be used to investigate CPU-related issues with the system regarding performance or battery life.
The application accesses various parts of sysfs and machine specifiyc registers (MSR) of the CPU. The ectool is used to the display the fan speed on the Framework Laptop.
To run the CPU monitor directly enter:
cd bin
sudo ./cpumon
Fan speed is only available after install.
First you may need to make the install script executable:
chmod +x install
To install copy the cpumon binary into /usr/local/bin/
:
sudo ./install
Now it should be possible to run the monitor from anywhere in the system by entering sudo cpumon
.
Users of the Framework Laptop that want to monitor fan speed also need to install the ectool. They run this command instead:
sudo ./install f
To uninstall, remove the binaries from usr/local/bin
with this command:
sudo ./install remove
To build the binary from source files this project uses cmake and make.
Create a build directory inside the rootfolder, generate the makefiles and build the project:
mkdir build
cd build
cmake ..
make
Tested with i7-1165G7 on Pop!OS 22.04. The application aims to be compatible with a variety of CPUs. If the application doesn't display certain quantities on your system, feel free to submit a screenshot and the cpu model. Maybe I can work out the problem.