[how to] fan speed override and fine tuning (v2)

Moderator: Lillian.W@AST

sksbir
Posts: 395
youtube meble na wymiar Warszawa
Joined: Tue Aug 25, 2015 9:23 pm

Re: [how to] fan speed override and fine tuning (v2)

Post by sksbir »

henson0115 wrote:still no custom speed implementation, whilst ive been running this script for a good year or so now, i wish the hard drives could sleep with it.
If you are using "smart-fanspeed" script, try to launch it without "-v" option, in order not to write anything to disk ( that is : no more log ).

I don't understand what you mean with "no custom speed implementation" ? from whom are you expecting this feature ?. On my script, feel free to change the grid values which are establishing relationship between temperatures and fanspeed.
I set the values in little randomly manner , according to what I thought was correct.
henson0115
Posts: 6
Joined: Wed Apr 29, 2020 11:27 pm

Re: [how to] fan speed override and fine tuning (v2)

Post by henson0115 »

thanks i will give it a go without the -v, asustor said they would allow for custom speeds in the firmware at some point...
VladK
Posts: 8
Joined: Tue Jan 25, 2022 12:06 am

Re: [how to] fan speed override and fine tuning (v2)

Post by VladK »

sksbir wrote: I cannot guarantee that it will works on other models, specially if they are using more that one fan.
Can you write in more detail what changes need to be made to the script for a server with 2 fans?

To all
Model - AS7010T, ADM 4.0.1.ROG1
When I run the script manually, I get the following report (<sh: 52: unknown operand> repeated endlessly):

Code: Select all

 ./smart_fanspeed.sh -v
/dev/sda added to list with recognized temp of 31
/dev/sdb added to list with recognized temp of 34
/dev/sdc added to list with recognized temp of 36
/dev/sdd added to list with recognized temp of 36
/dev/sde added to list with recognized temp of 37
/dev/sdf added to list with recognized temp of 34
/dev/sdg added to list with recognized temp of 35
/dev/sdh added to list with recognized temp of 36
Retained devices for temperature check : /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/s
sh: 52: unknown operand
20220124_17:37:22 hottest disk changed from 15 to 37,fanpower leaved unchanged at 52 52
sh: 52: unknown operand
sh: 52: unknown operand
...
Where to look for a solution to the problem?
VladK
Posts: 8
Joined: Tue Jan 25, 2022 12:06 am

Re: [how to] fan speed override and fine tuning (v2)

Post by VladK »

sksbir
Posts: 395
Joined: Tue Aug 25, 2015 9:23 pm

Re: [how to] fan speed override and fine tuning (v2)

Post by sksbir »

Hi
New version of smart_fanspeed.sh is available ( link to source code in 1st post of this topic ).
==> added nvme device, using smartctl --scan for device recognition , managing multiple fans, more agressive fan reaction in case of temperature elevation.

script working on my current devices : AS3102T, AS6602T , with ADM4 ( out of this update, I never changed anything since ADM 2.x and it was still working ).
henson0115
Posts: 6
Joined: Wed Apr 29, 2020 11:27 pm

Re: [how to] fan speed override and fine tuning (v2)

Post by henson0115 »

sksbir wrote:Hi
New version of smart_fanspeed.sh is available ( link to source code in 1st post of this topic ).
==> added nvme device, using smartctl --scan for device recognition , managing multiple fans, more agressive fan reaction in case of temperature elevation.

script working on my current devices : AS3102T, AS6602T , with ADM4 ( out of this update, I never changed anything since ADM 2.x and it was still working ).
i get a syntax error on the second to last line in the logfile after the latest update

"/home/shane/smart_fanspeed.sh: line 4: syntax error: unexpected "fi""

hmm removed the logfile and it seems ok now, how odd
sksbir
Posts: 395
Joined: Tue Aug 25, 2015 9:23 pm

Re: [how to] fan speed override and fine tuning (v2)

Post by sksbir »

hello
Are you using the launcher script called by crontab ?
if yes ,did you replace item between < and > in the two locations ? without space ?
henson0115
Posts: 6
Joined: Wed Apr 29, 2020 11:27 pm

Re: [how to] fan speed override and fine tuning (v2)

Post by henson0115 »

sksbir wrote:hello
Are you using the launcher script called by crontab ?
if yes ,did you replace item between < and > in the two locations ? without space ?
yea

#!/bin/sh
LOGFILE=/home/shane/fanspeed.log

which is where the script is stored.

the log seems to work ok now but the actual script doesnt seem to do anything anymore, im clearly missing something

/home/shane/smart_fanspeed.sh SPEED DURATION
with SPEED from 30 to 255
duration in minutes
script needs about 1mn to really override fanspeed

edit: ah i think ive figured out the issue, just need to reboot and test. thanks as always for the help!
sksbir
Posts: 395
Joined: Tue Aug 25, 2015 9:23 pm

Re: [how to] fan speed override and fine tuning (v2)

Post by sksbir »

henson0115 wrote: edit: ah i think ive figured out the issue, just need to reboot and test. thanks as always for the help!
Nice to know you solved the problem .
I would be glad to get some feedback about what was going on . :)
acurri
Posts: 8
Joined: Wed Feb 23, 2022 6:59 am

Re: [how to] fan speed override and fine tuning (v2)

Post by acurri »

Am running this on an AS5104, and i get the following when I run this on the command line

./smart_fanspeed.sh -v
Retained devices for temperature check :
valid fanlist : Failed
sh: (-13): bad number
sh: (-13): bad number
sh: (-13): bad number

and the bad number continues indefinitely until I control-C it.

If I run
smartctl --scan|awk ' { print $1 } '
/dev/sda
/dev/sdb
/dev/sdc
/dev/sdd

So I know it's finding the list of drives I have.

If I run:

smartctl --all $DSKDEV|awk '/^194/ { print $10 } '

for one of the drives, it doesn't return anything at all... should it?

Any ideas what is going on?
Post Reply

Return to “[Official] For AS50xx/51xx Series”