There are several ways to control the fan on a Dell laptop running Linux, and to get the CPU temperature. One option is to use the lm-sensors
package, which provides utilities for monitoring temperature, voltage, and fan speed on a Linux system.
To install lm-sensors
, run the following command:
sudo apt-get install lm-sensors
Once lm-sensors
is installed, you can use the sensors
command to get the current temperature and fan speed of your Dell laptop.
To control the fan speed, you can use the fancontrol
utility, which is part of the lm-sensors
package. To use fancontrol
, you will need to create a configuration file using the pwmconfig
utility:
sudo pwmconfig
Follow the prompts to create a configuration file. Once the configuration file is created, you can start the fancontrol
daemon using the following command:
sudo /etc/init.d/fancontrol start
You can also use the fancontrol
command to manually adjust the fan speed.
Keep in mind that the exact steps for controlling the fan and getting the CPU temperature may vary depending on your specific Dell laptop model and the hardware components it uses. You may need to consult the documentation for your specific hardware or consult with Dell support for more