View System Temperatures And Control Fan
Install Necessary PackagesI am installing i8kutils because the laptop is a dell, and that allows me to change the fan speeds as well get more system information.
Find Out What Sensors Are InstalledRun the following and say yes to all questions....this will probe your hardware to what sensors and controls are available.
Get Sensor DataNow we need to make sure we can see everything. The output from the following command we will use later in the script.
Enable i8kmon softwareIn order for the dell software to work you need to change some system files. Edit the following files and replace "ENABLED=0" to "ENABLED=1"
Activate the dell software by
Script ExplainationsI use grep and awk to extract the data from the sensors command, then put them in an appropriate variable. I use if statements to give a human readable display to the fan status. I use dialog to prompt the user for a fan speed change while displaying the temperature values in the header of the radio buttons. User input is taken and used then to run an appropriate command.