Adjust fan speed via Fancontrol according to hard disk temperature (Hddtemp)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















How can I adjust fan speed according to hard drive temperature via Fancontrol?










share|improve this question



















  • 1





    I don't know anything about fancontrol, but supports HDD temp; you could try asking for the feature or giving it a shot yourself. The easiest solution at hand seems to be to write a daemon (or just a shell script ran at boot) script that queries the disk temperature regularly and then sends commands to fancontrol. Also, a little googling can go a long way.

    – Kenneth B. Jensen
    Feb 8 at 6:13







  • 1





    How does hddfancontrol malfunction? Did you install fancontrol directly from that page or as part of the lm_sensors package? I could write for you a shell script, but I use neither fancontrol nor hddtemp; I'm not sure how their outputs are structured. If you have any experience with using the shell so far, see if you can give it a crack -- check out tldp.org/LDP/Bash-Beginners-Guide/html tldp.org/LDP/Bash-Beginners-Guide/html and tldp.org/LDP/abs/html

    – Kenneth B. Jensen
    Feb 8 at 7:07






  • 1





    hddfancontrol is not in root's $PATH. What directory is it installed in? Running which hddfancontrol as your normal user might yield the information you're looking for; it needs to be somewhere like /usr/local/bin. If you cannot find it, try running locate hddfancontrol or find / -iname *hddfancontrol*

    – Kenneth B. Jensen
    Feb 8 at 7:24












  • Let us continue this discussion in chat.

    – Matthew Wai
    Feb 8 at 7:28






  • 2





    FAO other reviewers (like me) who come across this question in the Review queues: this question has a comprehensive and detailed self-answer.

    – Anthony Geoghegan
    Mar 6 at 15:25















0















How can I adjust fan speed according to hard drive temperature via Fancontrol?










share|improve this question



















  • 1





    I don't know anything about fancontrol, but supports HDD temp; you could try asking for the feature or giving it a shot yourself. The easiest solution at hand seems to be to write a daemon (or just a shell script ran at boot) script that queries the disk temperature regularly and then sends commands to fancontrol. Also, a little googling can go a long way.

    – Kenneth B. Jensen
    Feb 8 at 6:13







  • 1





    How does hddfancontrol malfunction? Did you install fancontrol directly from that page or as part of the lm_sensors package? I could write for you a shell script, but I use neither fancontrol nor hddtemp; I'm not sure how their outputs are structured. If you have any experience with using the shell so far, see if you can give it a crack -- check out tldp.org/LDP/Bash-Beginners-Guide/html tldp.org/LDP/Bash-Beginners-Guide/html and tldp.org/LDP/abs/html

    – Kenneth B. Jensen
    Feb 8 at 7:07






  • 1





    hddfancontrol is not in root's $PATH. What directory is it installed in? Running which hddfancontrol as your normal user might yield the information you're looking for; it needs to be somewhere like /usr/local/bin. If you cannot find it, try running locate hddfancontrol or find / -iname *hddfancontrol*

    – Kenneth B. Jensen
    Feb 8 at 7:24












  • Let us continue this discussion in chat.

    – Matthew Wai
    Feb 8 at 7:28






  • 2





    FAO other reviewers (like me) who come across this question in the Review queues: this question has a comprehensive and detailed self-answer.

    – Anthony Geoghegan
    Mar 6 at 15:25













0












0








0








How can I adjust fan speed according to hard drive temperature via Fancontrol?










share|improve this question
















How can I adjust fan speed according to hard drive temperature via Fancontrol?







linux scripting hard-disk temperature fan






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 7 at 4:27







Matthew Wai

















asked Feb 8 at 6:06









Matthew WaiMatthew Wai

1356




1356







  • 1





    I don't know anything about fancontrol, but supports HDD temp; you could try asking for the feature or giving it a shot yourself. The easiest solution at hand seems to be to write a daemon (or just a shell script ran at boot) script that queries the disk temperature regularly and then sends commands to fancontrol. Also, a little googling can go a long way.

    – Kenneth B. Jensen
    Feb 8 at 6:13







  • 1





    How does hddfancontrol malfunction? Did you install fancontrol directly from that page or as part of the lm_sensors package? I could write for you a shell script, but I use neither fancontrol nor hddtemp; I'm not sure how their outputs are structured. If you have any experience with using the shell so far, see if you can give it a crack -- check out tldp.org/LDP/Bash-Beginners-Guide/html tldp.org/LDP/Bash-Beginners-Guide/html and tldp.org/LDP/abs/html

    – Kenneth B. Jensen
    Feb 8 at 7:07






  • 1





    hddfancontrol is not in root's $PATH. What directory is it installed in? Running which hddfancontrol as your normal user might yield the information you're looking for; it needs to be somewhere like /usr/local/bin. If you cannot find it, try running locate hddfancontrol or find / -iname *hddfancontrol*

    – Kenneth B. Jensen
    Feb 8 at 7:24












  • Let us continue this discussion in chat.

    – Matthew Wai
    Feb 8 at 7:28






  • 2





    FAO other reviewers (like me) who come across this question in the Review queues: this question has a comprehensive and detailed self-answer.

    – Anthony Geoghegan
    Mar 6 at 15:25












  • 1





    I don't know anything about fancontrol, but supports HDD temp; you could try asking for the feature or giving it a shot yourself. The easiest solution at hand seems to be to write a daemon (or just a shell script ran at boot) script that queries the disk temperature regularly and then sends commands to fancontrol. Also, a little googling can go a long way.

    – Kenneth B. Jensen
    Feb 8 at 6:13







  • 1





    How does hddfancontrol malfunction? Did you install fancontrol directly from that page or as part of the lm_sensors package? I could write for you a shell script, but I use neither fancontrol nor hddtemp; I'm not sure how their outputs are structured. If you have any experience with using the shell so far, see if you can give it a crack -- check out tldp.org/LDP/Bash-Beginners-Guide/html tldp.org/LDP/Bash-Beginners-Guide/html and tldp.org/LDP/abs/html

    – Kenneth B. Jensen
    Feb 8 at 7:07






  • 1





    hddfancontrol is not in root's $PATH. What directory is it installed in? Running which hddfancontrol as your normal user might yield the information you're looking for; it needs to be somewhere like /usr/local/bin. If you cannot find it, try running locate hddfancontrol or find / -iname *hddfancontrol*

    – Kenneth B. Jensen
    Feb 8 at 7:24












  • Let us continue this discussion in chat.

    – Matthew Wai
    Feb 8 at 7:28






  • 2





    FAO other reviewers (like me) who come across this question in the Review queues: this question has a comprehensive and detailed self-answer.

    – Anthony Geoghegan
    Mar 6 at 15:25







1




1





I don't know anything about fancontrol, but supports HDD temp; you could try asking for the feature or giving it a shot yourself. The easiest solution at hand seems to be to write a daemon (or just a shell script ran at boot) script that queries the disk temperature regularly and then sends commands to fancontrol. Also, a little googling can go a long way.

– Kenneth B. Jensen
Feb 8 at 6:13






I don't know anything about fancontrol, but supports HDD temp; you could try asking for the feature or giving it a shot yourself. The easiest solution at hand seems to be to write a daemon (or just a shell script ran at boot) script that queries the disk temperature regularly and then sends commands to fancontrol. Also, a little googling can go a long way.

– Kenneth B. Jensen
Feb 8 at 6:13





1




1





How does hddfancontrol malfunction? Did you install fancontrol directly from that page or as part of the lm_sensors package? I could write for you a shell script, but I use neither fancontrol nor hddtemp; I'm not sure how their outputs are structured. If you have any experience with using the shell so far, see if you can give it a crack -- check out tldp.org/LDP/Bash-Beginners-Guide/html tldp.org/LDP/Bash-Beginners-Guide/html and tldp.org/LDP/abs/html

– Kenneth B. Jensen
Feb 8 at 7:07





How does hddfancontrol malfunction? Did you install fancontrol directly from that page or as part of the lm_sensors package? I could write for you a shell script, but I use neither fancontrol nor hddtemp; I'm not sure how their outputs are structured. If you have any experience with using the shell so far, see if you can give it a crack -- check out tldp.org/LDP/Bash-Beginners-Guide/html tldp.org/LDP/Bash-Beginners-Guide/html and tldp.org/LDP/abs/html

– Kenneth B. Jensen
Feb 8 at 7:07




1




1





hddfancontrol is not in root's $PATH. What directory is it installed in? Running which hddfancontrol as your normal user might yield the information you're looking for; it needs to be somewhere like /usr/local/bin. If you cannot find it, try running locate hddfancontrol or find / -iname *hddfancontrol*

– Kenneth B. Jensen
Feb 8 at 7:24






hddfancontrol is not in root's $PATH. What directory is it installed in? Running which hddfancontrol as your normal user might yield the information you're looking for; it needs to be somewhere like /usr/local/bin. If you cannot find it, try running locate hddfancontrol or find / -iname *hddfancontrol*

– Kenneth B. Jensen
Feb 8 at 7:24














Let us continue this discussion in chat.

– Matthew Wai
Feb 8 at 7:28





Let us continue this discussion in chat.

– Matthew Wai
Feb 8 at 7:28




2




2





FAO other reviewers (like me) who come across this question in the Review queues: this question has a comprehensive and detailed self-answer.

– Anthony Geoghegan
Mar 6 at 15:25





FAO other reviewers (like me) who come across this question in the Review queues: this question has a comprehensive and detailed self-answer.

– Anthony Geoghegan
Mar 6 at 15:25










1 Answer
1






active

oldest

votes


















2














I finally found a simple script to control fan speed according to hard drive temperature via Fancontrol, Hddtemp, and Lm-sensors. In the following script, “/dev/sda” is the hard disk to be monitored, and “/Fancontrol/Hddtemp” is the output file to be read by Fancontrol. Press Ctrl + Alt + T to open Terminal and run the following command to check whether “/dev/sda” is the correct one:




sudo hddtemp /dev/sd[a-z]




Use only the one supported by Hddtemp, which will display the temperature rather than “S.M.A.R.T. not available”.

Replace “/dev/sda” with the correct one in the script if necessary.

If you have not yet configured Fancontrol, see this page, this page, and this page and run the following commands one by one (restart Linux after running the first one):




sudo sensors-detect

watch sensors

sudo pwmconfig

sudo service fancontrol start




Then, go through the procedure below:

(1) Run the following command to create a script file.




sudo mkdir -p "/Fancontrol/" & sudo xed /Fancontrol/HDD_temp




(2) Copy the following script into the file and save it.



#!/bin/bash
F=/Fancontrol/Hddtemp
while true
do
T=$(hddtemp -n /dev/sda)
echo "($T * 1000)/1" | bc > "$F".write
mv --force "$F".write "$F" && sleep 30
done


(3) Run the following command to make it executable.




sudo chmod 755 /Fancontrol/HDD_temp




(4) Run the following command to create a service file.




sudo xed /lib/systemd/system/HDD_temp.service




(5) Copy the following lines into the file and save it.




[Service]


ExecStart=/Fancontrol/HDD_temp



[Install]


WantedBy=multi-user.target




(6) Run the following commands one by one:




sudo chmod 664 /lib/systemd/system/HDD_temp.service


sudo systemctl daemon-reload


sudo systemctl start HDD_temp.service


sudo systemctl enable HDD_temp.service




Then, the script “HDD_temp” will be run as a system service at Linux startup.


(7) Run the following command to edit “fancontrol”, the configuration file.




sudo xed /etc/fancontrol




Find the line that begins with “FCTEMPS”. For example:




FCTEMPS=hwmon1/pwm1=hwmon1/temp1_input




On that line, “hwmon1/temp1_input” is the temperature (e.g. the chipset temperature) currently read by Fancontrol. Replace it with “/Fancontrol/Hddtemp”, and the line will become:




FCTEMPS=hwmon1/pwm1=/Fancontrol/Hddtemp




Save the file and run the following command to restart Fancontrol.




sudo service fancontrol restart




Then, the fan controlled by “hwmon1/pwm1” will respond to “/Fancontrol/Hddtemp”, the hard disk temperature. Note that "HDD_temp" and "Hddtemp" are the script file and output file respectively. Don't confuse them.






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f499409%2fadjust-fan-speed-via-fancontrol-according-to-hard-disk-temperature-hddtemp%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    I finally found a simple script to control fan speed according to hard drive temperature via Fancontrol, Hddtemp, and Lm-sensors. In the following script, “/dev/sda” is the hard disk to be monitored, and “/Fancontrol/Hddtemp” is the output file to be read by Fancontrol. Press Ctrl + Alt + T to open Terminal and run the following command to check whether “/dev/sda” is the correct one:




    sudo hddtemp /dev/sd[a-z]




    Use only the one supported by Hddtemp, which will display the temperature rather than “S.M.A.R.T. not available”.

    Replace “/dev/sda” with the correct one in the script if necessary.

    If you have not yet configured Fancontrol, see this page, this page, and this page and run the following commands one by one (restart Linux after running the first one):




    sudo sensors-detect

    watch sensors

    sudo pwmconfig

    sudo service fancontrol start




    Then, go through the procedure below:

    (1) Run the following command to create a script file.




    sudo mkdir -p "/Fancontrol/" & sudo xed /Fancontrol/HDD_temp




    (2) Copy the following script into the file and save it.



    #!/bin/bash
    F=/Fancontrol/Hddtemp
    while true
    do
    T=$(hddtemp -n /dev/sda)
    echo "($T * 1000)/1" | bc > "$F".write
    mv --force "$F".write "$F" && sleep 30
    done


    (3) Run the following command to make it executable.




    sudo chmod 755 /Fancontrol/HDD_temp




    (4) Run the following command to create a service file.




    sudo xed /lib/systemd/system/HDD_temp.service




    (5) Copy the following lines into the file and save it.




    [Service]


    ExecStart=/Fancontrol/HDD_temp



    [Install]


    WantedBy=multi-user.target




    (6) Run the following commands one by one:




    sudo chmod 664 /lib/systemd/system/HDD_temp.service


    sudo systemctl daemon-reload


    sudo systemctl start HDD_temp.service


    sudo systemctl enable HDD_temp.service




    Then, the script “HDD_temp” will be run as a system service at Linux startup.


    (7) Run the following command to edit “fancontrol”, the configuration file.




    sudo xed /etc/fancontrol




    Find the line that begins with “FCTEMPS”. For example:




    FCTEMPS=hwmon1/pwm1=hwmon1/temp1_input




    On that line, “hwmon1/temp1_input” is the temperature (e.g. the chipset temperature) currently read by Fancontrol. Replace it with “/Fancontrol/Hddtemp”, and the line will become:




    FCTEMPS=hwmon1/pwm1=/Fancontrol/Hddtemp




    Save the file and run the following command to restart Fancontrol.




    sudo service fancontrol restart




    Then, the fan controlled by “hwmon1/pwm1” will respond to “/Fancontrol/Hddtemp”, the hard disk temperature. Note that "HDD_temp" and "Hddtemp" are the script file and output file respectively. Don't confuse them.






    share|improve this answer





























      2














      I finally found a simple script to control fan speed according to hard drive temperature via Fancontrol, Hddtemp, and Lm-sensors. In the following script, “/dev/sda” is the hard disk to be monitored, and “/Fancontrol/Hddtemp” is the output file to be read by Fancontrol. Press Ctrl + Alt + T to open Terminal and run the following command to check whether “/dev/sda” is the correct one:




      sudo hddtemp /dev/sd[a-z]




      Use only the one supported by Hddtemp, which will display the temperature rather than “S.M.A.R.T. not available”.

      Replace “/dev/sda” with the correct one in the script if necessary.

      If you have not yet configured Fancontrol, see this page, this page, and this page and run the following commands one by one (restart Linux after running the first one):




      sudo sensors-detect

      watch sensors

      sudo pwmconfig

      sudo service fancontrol start




      Then, go through the procedure below:

      (1) Run the following command to create a script file.




      sudo mkdir -p "/Fancontrol/" & sudo xed /Fancontrol/HDD_temp




      (2) Copy the following script into the file and save it.



      #!/bin/bash
      F=/Fancontrol/Hddtemp
      while true
      do
      T=$(hddtemp -n /dev/sda)
      echo "($T * 1000)/1" | bc > "$F".write
      mv --force "$F".write "$F" && sleep 30
      done


      (3) Run the following command to make it executable.




      sudo chmod 755 /Fancontrol/HDD_temp




      (4) Run the following command to create a service file.




      sudo xed /lib/systemd/system/HDD_temp.service




      (5) Copy the following lines into the file and save it.




      [Service]


      ExecStart=/Fancontrol/HDD_temp



      [Install]


      WantedBy=multi-user.target




      (6) Run the following commands one by one:




      sudo chmod 664 /lib/systemd/system/HDD_temp.service


      sudo systemctl daemon-reload


      sudo systemctl start HDD_temp.service


      sudo systemctl enable HDD_temp.service




      Then, the script “HDD_temp” will be run as a system service at Linux startup.


      (7) Run the following command to edit “fancontrol”, the configuration file.




      sudo xed /etc/fancontrol




      Find the line that begins with “FCTEMPS”. For example:




      FCTEMPS=hwmon1/pwm1=hwmon1/temp1_input




      On that line, “hwmon1/temp1_input” is the temperature (e.g. the chipset temperature) currently read by Fancontrol. Replace it with “/Fancontrol/Hddtemp”, and the line will become:




      FCTEMPS=hwmon1/pwm1=/Fancontrol/Hddtemp




      Save the file and run the following command to restart Fancontrol.




      sudo service fancontrol restart




      Then, the fan controlled by “hwmon1/pwm1” will respond to “/Fancontrol/Hddtemp”, the hard disk temperature. Note that "HDD_temp" and "Hddtemp" are the script file and output file respectively. Don't confuse them.






      share|improve this answer



























        2












        2








        2







        I finally found a simple script to control fan speed according to hard drive temperature via Fancontrol, Hddtemp, and Lm-sensors. In the following script, “/dev/sda” is the hard disk to be monitored, and “/Fancontrol/Hddtemp” is the output file to be read by Fancontrol. Press Ctrl + Alt + T to open Terminal and run the following command to check whether “/dev/sda” is the correct one:




        sudo hddtemp /dev/sd[a-z]




        Use only the one supported by Hddtemp, which will display the temperature rather than “S.M.A.R.T. not available”.

        Replace “/dev/sda” with the correct one in the script if necessary.

        If you have not yet configured Fancontrol, see this page, this page, and this page and run the following commands one by one (restart Linux after running the first one):




        sudo sensors-detect

        watch sensors

        sudo pwmconfig

        sudo service fancontrol start




        Then, go through the procedure below:

        (1) Run the following command to create a script file.




        sudo mkdir -p "/Fancontrol/" & sudo xed /Fancontrol/HDD_temp




        (2) Copy the following script into the file and save it.



        #!/bin/bash
        F=/Fancontrol/Hddtemp
        while true
        do
        T=$(hddtemp -n /dev/sda)
        echo "($T * 1000)/1" | bc > "$F".write
        mv --force "$F".write "$F" && sleep 30
        done


        (3) Run the following command to make it executable.




        sudo chmod 755 /Fancontrol/HDD_temp




        (4) Run the following command to create a service file.




        sudo xed /lib/systemd/system/HDD_temp.service




        (5) Copy the following lines into the file and save it.




        [Service]


        ExecStart=/Fancontrol/HDD_temp



        [Install]


        WantedBy=multi-user.target




        (6) Run the following commands one by one:




        sudo chmod 664 /lib/systemd/system/HDD_temp.service


        sudo systemctl daemon-reload


        sudo systemctl start HDD_temp.service


        sudo systemctl enable HDD_temp.service




        Then, the script “HDD_temp” will be run as a system service at Linux startup.


        (7) Run the following command to edit “fancontrol”, the configuration file.




        sudo xed /etc/fancontrol




        Find the line that begins with “FCTEMPS”. For example:




        FCTEMPS=hwmon1/pwm1=hwmon1/temp1_input




        On that line, “hwmon1/temp1_input” is the temperature (e.g. the chipset temperature) currently read by Fancontrol. Replace it with “/Fancontrol/Hddtemp”, and the line will become:




        FCTEMPS=hwmon1/pwm1=/Fancontrol/Hddtemp




        Save the file and run the following command to restart Fancontrol.




        sudo service fancontrol restart




        Then, the fan controlled by “hwmon1/pwm1” will respond to “/Fancontrol/Hddtemp”, the hard disk temperature. Note that "HDD_temp" and "Hddtemp" are the script file and output file respectively. Don't confuse them.






        share|improve this answer















        I finally found a simple script to control fan speed according to hard drive temperature via Fancontrol, Hddtemp, and Lm-sensors. In the following script, “/dev/sda” is the hard disk to be monitored, and “/Fancontrol/Hddtemp” is the output file to be read by Fancontrol. Press Ctrl + Alt + T to open Terminal and run the following command to check whether “/dev/sda” is the correct one:




        sudo hddtemp /dev/sd[a-z]




        Use only the one supported by Hddtemp, which will display the temperature rather than “S.M.A.R.T. not available”.

        Replace “/dev/sda” with the correct one in the script if necessary.

        If you have not yet configured Fancontrol, see this page, this page, and this page and run the following commands one by one (restart Linux after running the first one):




        sudo sensors-detect

        watch sensors

        sudo pwmconfig

        sudo service fancontrol start




        Then, go through the procedure below:

        (1) Run the following command to create a script file.




        sudo mkdir -p "/Fancontrol/" & sudo xed /Fancontrol/HDD_temp




        (2) Copy the following script into the file and save it.



        #!/bin/bash
        F=/Fancontrol/Hddtemp
        while true
        do
        T=$(hddtemp -n /dev/sda)
        echo "($T * 1000)/1" | bc > "$F".write
        mv --force "$F".write "$F" && sleep 30
        done


        (3) Run the following command to make it executable.




        sudo chmod 755 /Fancontrol/HDD_temp




        (4) Run the following command to create a service file.




        sudo xed /lib/systemd/system/HDD_temp.service




        (5) Copy the following lines into the file and save it.




        [Service]


        ExecStart=/Fancontrol/HDD_temp



        [Install]


        WantedBy=multi-user.target




        (6) Run the following commands one by one:




        sudo chmod 664 /lib/systemd/system/HDD_temp.service


        sudo systemctl daemon-reload


        sudo systemctl start HDD_temp.service


        sudo systemctl enable HDD_temp.service




        Then, the script “HDD_temp” will be run as a system service at Linux startup.


        (7) Run the following command to edit “fancontrol”, the configuration file.




        sudo xed /etc/fancontrol




        Find the line that begins with “FCTEMPS”. For example:




        FCTEMPS=hwmon1/pwm1=hwmon1/temp1_input




        On that line, “hwmon1/temp1_input” is the temperature (e.g. the chipset temperature) currently read by Fancontrol. Replace it with “/Fancontrol/Hddtemp”, and the line will become:




        FCTEMPS=hwmon1/pwm1=/Fancontrol/Hddtemp




        Save the file and run the following command to restart Fancontrol.




        sudo service fancontrol restart




        Then, the fan controlled by “hwmon1/pwm1” will respond to “/Fancontrol/Hddtemp”, the hard disk temperature. Note that "HDD_temp" and "Hddtemp" are the script file and output file respectively. Don't confuse them.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 13 at 8:19

























        answered Mar 6 at 11:31









        Matthew WaiMatthew Wai

        1356




        1356



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f499409%2fadjust-fan-speed-via-fancontrol-according-to-hard-disk-temperature-hddtemp%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)