Temperature controlled cooling fan (usb powered) on R7000

Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload
Goto page Previous  1, 2
Author Message
norrissee
DD-WRT Novice


Joined: 15 Apr 2022
Posts: 2

PostPosted: Fri Apr 15, 2022 0:25    Post subject: Reply with quote
I was able to lower the CPU usage by adding a wait inside the inner while loop so it waits a certain period of time before getting the temperature values again.

And to further save resources I also increased wait times to 60 secs instead of 10.

Code:

        while [ "$TEMP" -gt "$LOWTEMP" ]
          do
            WAIT
            TEMP=$(cat /proc/dmu/temperature)
          done


Code is confirmed working on both R7000 and R6700v3 on the latest DD-WRT v3.0-r48646 std (04/12/22) build.
Sponsor
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum