User Tools

Site Tools


tech:unix:imac-fan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tech:unix:imac-fan [2025/07/19 14:01] ayush.zutshitech:unix:imac-fan [2025/07/19 20:08] (current) ayush.zutshi
Line 1: Line 1:
-====== Fan Cntrol for an IMac on Linux ======+====== Fan Cntrol for an iMac on Linux ======
  
 I replaced an HDD with and SSD in an old 2009 iMac, disabled the CDROM.  Since the SSD does not have a temperature sensor and runs cold, the iMac fan runs at full tilt. I replaced an HDD with and SSD in an old 2009 iMac, disabled the CDROM.  Since the SSD does not have a temperature sensor and runs cold, the iMac fan runs at full tilt.
  
-Manually set the "oddand "hdd" fans to minimum with:+Manually set the "cpu""hdd" and "odd" (The CDROM) fans to minimum with:
  
-fan.sh odd 0 +<code> 
-fan.sh hdd 0+apt install lm-sensors 
 +./fan.sh odd 0 
 +./fan.sh hdd 0  # if using an SSD 
 +./fan.sh cpu 50 # for the iMac8,1 
 +</code>
  
 **Ref: https://github.com/JuampiCarosi/fan-control** **Ref: https://github.com/JuampiCarosi/fan-control**
Line 26: Line 30:
     read -r label[$fan] < "${label_file[$fan]}"     read -r label[$fan] < "${label_file[$fan]}"
     label[$fan]=${label[$fan],,                 # lowercase     label[$fan]=${label[$fan],,                 # lowercase
-    echo label[$fan"auto="$(cat $sysdir/fan${fan}_manual) "rpm="$($sysdir/fan${fan}_output)+    echo $(cat $sysdir/fan${fan}_label) "auto="$(cat $sysdir/fan${fan}_manual) "rpm="$(cat $sysdir/fan${fan}_output)
 } }
  
tech/unix/imac-fan.1752933680.txt.gz · Last modified: by ayush.zutshi