To find the fan speed in Linux for the CPU and GPU, you can use the sensors
command. This command can display information about the temperature, voltage, and fan speed of various sensors on your system.
To display information about the CPU and GPU fan speeds, run the sensors
command with the -u
option to display the output in units of degrees Celsius and RPM (revolutions per minute). The syntax is as follows:
sensors -uSource:www.lautturi.com
This will display a list of sensors on your system, along with their current temperatures, voltages, and fan speeds. Look for the lines that show the fan speeds for the CPU and GPU.
For example, the output might look something like this:
acpitz-virtual-0 Adapter: Virtual device temp1: +49.0°C (crit = +98.0°C) coretemp-isa-0000 Adapter: ISA adapter Package id 0: +49.0°C (high = +84.0°C, crit = +100.0°C) Core 0: +48.0°C (high = +84.0°C, crit = +100.0°C) Core 1: +47.0°C (high = +84.0°C, crit = +100.0°C) nouveau-pci-0100 Adapter: PCI adapter temp1: +51.0°C (high = +95.0°C, hyst = +3.0°C) (crit = +105.0°C, hyst = +5.0°C) (emerg = +135.0°C, hyst = +5.0°C) fan1: 2858 RPM
In this example, the fan speed for the CPU is not displayed, but the fan speed for the GPU is displayed.