Before we start
We’ll list a few different methods for checking CPU temperature in FreeBSD, and in each, we’ll use the command line option. Whichever command line you choose to check CPU the temperature, you’ll be activating the driver for the coretemp device if you’re using an Intel processor CPU or the amdtemp device driver if you’re using AMD. This is for detecting the digital thermal sensoring.
Open the /boot/loader.conf file to launch the coretemp/amdtemp driver as a module upon boot, and see the CPU temperature.
Check CPU temperature on FreeBSD
Issue the following command into the terminal, and the system will show you the CPU temperature:
You can also type the following to check the CPU temperature:
Launch the temp driver upon boot
The coretemp driver issues the CPU temperature for Intel processors. To load the coretemp driver upon boot, type in the following command:
Add the following if you’re using an Intel CPUs:
And if you’re using an AMD CPU, add:
To apply changes, save the file and exit.
You can also load the driver without restarting. Use the command below if you’re using Intel:
And if you’re using AMD, type:
To check if the drivers have been loaded, type:
Now check the CPU temperature with the command below:
Lastly, you can view more details with the ipmitool, and abbreviation for Intelligent Platform Management Interface. It’s a command-line that’ll fill you in on the temperature details.
In summary
This tutorial has shown you how to check CPU temperature on FreeBSD. The CPU temperature for both AMD and Intel processors can be checked with the sysctl command. The driver that’s responsible for maintaining temperature reports on Intel is tempcore, whereas AMD processors use the tempcore driver. For both processors, this driver has to be loaded upon boot before you can check the CPU temperature.