Re: smart fans

2021-09-07 Thread David Christensen

On 9/6/21 6:03 PM, Emanuel Berg wrote:

David Christensen wrote:


You seem to have got the old file again, check it out again,
because some of those issues have already been
mentioned/fixed:
   https://dataswamp.org/~incal/ebchw/cpu.txt


Much better:
   http://www.holgerdanske.com/pub/dpchrist/debian-user/20210821-smart-fans/


OK, what stuff remains, remove the spaces? Let's do it good
now that we spent so much time on it :)



Different people have different ideas of what "CSV format" means.  The 
example CSV output I posted on 9/3/21 6:45 PM was created by LibreOffice 
Calc.  If you can match that, you should be able to read it with most 
programs that accept CSV input.




Have you isolated and identified the primary sound source(s)
in the computer?


I removed the HDD, now I have an SSD (M.2), so that should be
no more 29 dB (worst case) from the HDD. Also... the M.2 is
much faster so now Debian boots much faster and stuff
like that. Amazing :)

Where does it come from?

I still don't know the dB of the GPU

   GFXmsi Nvidia Geforce GT 710 · 2GB DDR3 · PCI-E2.0 · HDMI+DL-DVI-D

and I also don't know the dB of the PSU, however I did find
out it is a

   PSUSeasonic Focus 100-240VAC



We need a complete model name or part number for the Seasonic -- they 
make several "Focus" models.



STFW I am unable find noise specifications for either.



Have you implemented any vibration or sound
mitigation measures?


See the COMPUTER file for upgrades :)



https://dataswamp.org/~incal/ebchw/COMPUTER

I do not see any vibration or sound mitigation measures (?).


Please provide complete manufacturer names, model names, part numbers, etc..



I finally understand it, I think, the first digit isn't the
minimum duty cycle (that's the second digit) but the _minimum
speed_, so we see that the DC fans can only go as low as 60%,
while the 140 mm PWM fan can get down to 20% and the 120 mm
dittos 24%.

However one can in the BIOS/UEFI/Setup explicitly say DCs
should disable when not even 60% is needed because of whatever
temperature function one has defined (I just choose the
optimal which was computed live BTW, cool)

So the problem was, perhaps, that the 2 DCs were running at
60% all the time, even when the computer was idle?

So Maybe I should get away with the "Corsair A1225M12S" and
the DC version of "be quiet! Shadow Wings 2" and replace with
the PWM versions I already have (but too few), then all 140 mm
will run at 20% and all 120 mm will run at 24%?
  min.   min.
fanconnector  fan  mm  pin dB(A) speed  duty cycle
CHA_FAN1   Corsair A1225M12S120  3  18.9  60%34%
CHA_FAN2   be quiet! Shadow Wings 2 140  4  14.9  20%17%
CHA_FAN3   be quiet! Shadow Wings 2 140  3  14.7  60%24%
CPU_FANbe quiet! Pure Wings 2   120  4  15.9  24%25%
CPU_OPTbe quiet! Pure Wings 2   120  4  15.9  24%25%


If you have magnetic HDD's, switching to SSD's would
eliminate those vibrations.


I had the SSD M.2 mounted on the motherboard all along,
without ever using it!

Now worst-case has gone from

   (db 18.9 14.9 14.7 15.9 15.9 29.0) ; 30.0 dB

to

   (db 14.9 15.9 15.9) ; 20.36 dB
   

since the DC fans stop. However when idling shouldn't be the
"worst case", so the PWM fans at 20%, 24%, and 24%
respectively shouldn't do that kind of noise, so my guess is
it is the GPU ...

But I didn't try to read and see if it still annoys me (or if
I even notice a difference), so let's do that now :)



Fan speed and noise data would help in making rational decisions, such 
as what happens to CPU temperature for a given workload when you reduce 
fan speeds or turn them off, etc..



The CMOS Setup should be able to tell you fan speeds, CPU temperatures, 
voltages, and other internal parameters.



For noise measurements, you want a sound meter, a smart phone with a 
sound measuring app, a microphone and a PC with Audacity, a microphone 
and a multi-meter, etc..  Or, make subjective noise measurements by ear.



Open the case, disconnect the PSU from everything, remove the GPU card, 
and disconnect all the fans.  Then, turn the PSU on, make a noise 
measurement, and turn the PSU off.  Repeat until you get a reliable 
measurement.  Then connect the PSU to the motherboard and repeat; but 
only briefly (~10 seconds) while the CPU fan(s) are disconnected.  Allow 
 the CPU and heat pipe time to cool between trials (~2 minutes).  Then 
connect the GPU to the motherboard and PSU, and repeat; again, briefly, 
etc..  Then connect the other fans one at a time and repeat, starting 
with CPU fans.  Once you have both CPU fans connected, then you can use 
the CMOS Setup utility to get fan speed data and CPU temperature data. 
Check if your CMOS Setup utility can apply load the CPU.  If so, gather 
data under varying load conditions -- 0%, 25%, 50%, 75%, 

Re: smart fans

2021-09-04 Thread David Christensen

On 9/3/21 7:42 PM, Emanuel Berg wrote:

David Christensen wrote:


OK, changed.


Your data format still has issues.


You seem to have got the old file again, check it out again,
because some of those issues have already been
mentioned/fixed:

   https://dataswamp.org/~incal/ebchw/cpu.txt



Much better:

http://www.holgerdanske.com/pub/dpchrist/debian-user/20210821-smart-fans/


Looking at the graph of CPU Temperature vs. Time by Governor, there are 
minor differences when running 1 or 2 cores.  After that, it really does 
not matter.



Have you isolated and identified the primary sound source(s) in the 
computer?



Have you implemented any vibration or sound mitigation measures?


If you have magnetic HDD's, switching to SSD's would eliminate those 
vibrations.



David



Re: smart fans

2021-09-04 Thread Emanuel Berg
David Christensen wrote:

>> OK, changed.
>
> Your data format still has issues.

You seem to have got the old file again, check it out again,
because some of those issues have already been
mentioned/fixed:

  https://dataswamp.org/~incal/ebchw/cpu.txt

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-09-03 Thread Emanuel Berg
David Christensen wrote:

> Feeding the raw data into LibreOffice Calc was problematic
> -- header line field names do not have a one-to-one with
> data line field values. I reworked the header line as
> follows:
>
>   time, governor, processes, CPU_temperature, system_load,
>   CPU_fan_speed, core1_freq, core2_freq, core3_freq,
>   core4_freq

OK, changed.

> The system *must* be otherwise idle before and during the
> test. The data indicates it was not.

I didn't use the computer and there was no download or
anything explicit run by me in the background, so I don't know
what more to do in that regard?

> The "CPU_fan_speed" was 0 throughout. Your data collection
> code for that field value is broken.

That's what's reported by sensors(1), I don't know how else
one would retrieve that information?

> There is supposed to be a cool-down delay at the start of
> each governor sub-run. My WAG was 3 minutes. Your test did 2
> minutes (off by 1 error).

Weird, if you mean this part of the pseudocode

  loop 3 times
sleep 60 seconds
print statistics
  endloop

then that's this part of the zsh code

  repeat 3 {
sleep 60
cpu-stats
  }

so I don't know what that isn't 3 minutes ... ?

> After each loading cycle, the load processes must be killed.

OK.

> Incremental load period -- the output variables must have
> reached their steady-state values when each incremental load
> period ends (10 loops * 6 seconds). Adjust and/or
> code accordingly.

Again I don't understand why that isn't what

  repeat 10 {
sleep 6
cpu-stats
  }

does?

> Have you isolated and identified the primary noise
> source(s)? Have you quantified them (e.g.
> sound measurement)?

No?

> Can you get that data into your test script?

I don't know?

Anyway here is the new script with a URL to the output:

#! /bin/zsh
#
# this file:
#   https://dataswamp.org/~incal/conf/.zsh/cpu
#
# example output:
#   https://dataswamp.org/~incal/ebchw/cpu.txt

cpu-stats-print () {
local time=$1
local gov=$2
local pro=$3
local temp=$4
local load=$5
local fan=$6
shift 6
local freq=($@)
echo -n "${time}, ${gov}, ${pro}, ${temp}, ${load}, ${fan}"
for f in $freq; do
echo -n ", $f"
done
echo
}

cpu-stats () {
local time=$(date +%s)
local gov=$(cpufreq-info -p | awk '{print $3}')
local pro=$(ps -ea | wc -l) # 'jobs -l' DNC
local temp=$(sensors -j | jq -a '.["k10temp-pci-00c3"].Tdie.temp1_input')
local load=$(awk '{print $1}' /proc/loadavg)
local fan=$(sensors | awk '/cpu_fan/{print $2}') # always 0
local freq=("${(@f)$(awk '/cpu MHz/{print $4}' /proc/cpuinfo)}")
cpu-stats-print $time $gov $pro $temp $load $fan $freq
}

test-cpu () {
echo -n "time, governor, processes, CPU_temperature, system_load, 
CPU_fan_speed"
local cores=$(getconf _NPROCESSORS_ONLN)
for c in {1..$cores}; do
echo -n ", core${c}_freq"
done
echo

local ori=$(cpufreq-info -p | awk '{print $3}')
local pids
local g
local p
for g in $(cpufreq-info -g); do
pids=()
sudo cpufreq-set -g $g
repeat 3 {
sleep 60
cpu-stats
}
repeat $cores {
perl -e '1 while 1' &
pids+=($!)
repeat 10 {
sleep 6
cpu-stats
}
}
for p in $pids; do
  kill $p
done
done
sudo cpufreq-set -g $ori
}

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-09-03 Thread David Christensen

On 9/3/21 3:05 PM, Emanuel Berg wrote:

David Christensen wrote:


Feeding the raw data into LibreOffice Calc was problematic





OK, changed.



Your data format still has issues.  This is what LibreOffice Calc wants:

time,governor,processes,CPU_temperature,system_load,CPU_fan_speed,core1_freq,core2_freq,core3_freq,core4_freq
1630072652,conservative,157,33.25,0,0,1685.535,1416.164,3029.758,1415.421
1630072712,conservative,157,33.25,0,0,1537.245,1402.528,3118.173,1286.09
1630072772,conservative,157,33.25,0.06,0,1426.077,1356.078,1358.613,3049.18


Note:

1.  No extraneous characters anywhere -- e.g. spaces.

2.  No spaces in column names; use underscores and abbreviations.

3.  One column name for each and every column.

4.  Number of columns is same in every row.

5.  Commas (field separator) between every row item.

5.  Newlines (record separator) at the end of every row.



The system *must* be otherwise idle before and during the
test. The data indicates it was not.


I didn't use the computer and there was no download or
anything explicit run by me in the background, so I don't know
what more to do in that regard?



Then the "cpu-stats" function must be causing the spikes in the 
"core*_freq" values, by the several child processes it creates in rapid 
succession.  Get rid of the useless CPU_fan_speed call.  Insert a 1 
second sleep ahead of each of the remaining data point collection calls. 
 Adjust the iteration counts and the sleep times in the calling loops 
to compensate.






There is supposed to be a cool-down delay at the start of
each governor sub-run. My WAG was 3 minutes. Your test did 2
minutes (off by 1 error).


Weird, if you mean this part of the pseudocode

   loop 3 times
 sleep 60 seconds
 print statistics
   endloop

then that's this part of the zsh code

   repeat 3 {
 sleep 60
 cpu-stats
   }

so I don't know what that isn't 3 minutes ... ?



I was off-by-one -- there is no "print statistics" at the top of the 
script, which means the first data row comes out after 60 seconds. 
Please add a 10 second sleep and a call to "cpu-stats" prior to the 
governor loop.



But, a fundamental reality is the Nyquist–Shannon sampling theorem:

https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem


Each of the data points your script is collecting has some signal 
processing behind it; notably a sampling period.  Please RTFM and see if 
you can determine the periods of the CPU temperature sensor readings and 
the core frequency readings, and if you can adjust those periods so that 
they are longer than your data collection period.



It might be best to rework the loops so that the data collection period 
is constant throughout the entire test.




After each loading cycle, the load processes must be killed.


OK.



Looking at the "processes", "system_load", and "core*_freq" fields, the 
overall test data indicates that the "conservative" sub-run loaded the 
machine to 100% and that the loading processes never were killed.  The 
second and subsequent governor sub-runs just added more load.  Debug the 
code related to "pids" and kill.






Have you isolated and identified the primary noise
source(s)? Have you quantified them (e.g.
sound measurement)?


No?



If the loudest sound source is the PSU or GPU fan, then tuning the CPU 
and/or chassis fans isn't going to help.






David



Re: smart fans

2021-08-29 Thread David Christensen

On 8/28/21 3:55 PM, Emanuel Berg wrote:

David Christensen wrote:


You want to watch the test run, so that you can monitor
progress, make adjustments, and/or stop it if things
go badly.


Don't worry about it...

Here are the 20 first lines of the output:

time, governor, processes, CPU temperature C, system load, CPU fan speed RPM, 
CPU frequencies MHz
1630072652, conservative, 157, 33.25, 0.00, 0, 1685.535 1416.164 3029.758 
1415.421
1630072712, conservative, 157, 33.25, 0.00, 0, 1537.245 1402.528 3118.173 
1286.090
1630072772, conservative, 157, 33.25, 0.06, 0, 1426.077 1356.078 1358.613 
3049.180
1630072778, conservative, 158, 44.5, 0.14, 0, 2056.087 1620.633 3871.754 
1571.838
1630072784, conservative, 158, 44.75, 0.21, 0, 2041.653 1563.035 3872.665 
1599.792
1630072790, conservative, 158, 44.75, 0.55, 0, 1706.676 1610.757 3870.038 
2752.512
1630072796, conservative, 158, 45, 0.59, 0, 2313.482 3446.144 3869.807 2325.238
1630072802, conservative, 158, 45, 0.62, 0, 2169.143 1572.604 3873.451 1564.032
1630072808, conservative, 158, 45.25, 0.65, 0, 1969.447 1719.104 3869.058 
2789.924
1630072814, conservative, 158, 45.25, 0.70, 0, 1924.617 2776.821 3872.058 
1615.040
1630072821, conservative, 158, 45.25, 0.73, 0, 2553.058 1642.274 3870.106 
1636.617
1630072827, conservative, 158, 45.25, 0.75, 0, 2509.193 1643.395 3875.505 
1624.528
1630072833, conservative, 158, 45.25, 0.77, 0, 2542.012 1619.204 3873.868 
1608.061
1630072839, conservative, 159, 48.5, 0.87, 0, 2234.947 1624.853 3846.943 
3846.329
1630072845, conservative, 159, 48.875, 1.04, 0, 2463.900 1649.777 3845.442 
3845.337
1630072851, conservative, 159, 47.125, 1.12, 0, 2171.265 3848.972 3849.260 
1606.988
1630072857, conservative, 159, 47, 1.19, 0, 1743.183 3846.028 3845.345 2728.237
1630072863, conservative, 159, 47, 1.26, 0, 2218.865 3846.552 3846.422 1573.131

The entire file:

   https://dataswamp.org/~incal/ebchw/cpu.txt



That is a start.


Feeding the raw data into LibreOffice Calc was problematic -- header 
line field names do not have a one-to-one with data line field values. 
I reworked the header line as follows:


	time, governor, processes, CPU_temperature, system_load, CPU_fan_speed, 
core1_freq, core2_freq, core3_freq, core4_freq


Please fix the header line.


Looking at the test procedure outline I posted previously:

On 8/23/21 6:51 PM, David Christensen wrote:
> For a CPU with N cores (N=4 for an AMD Ryzen 3 3200G?) and an otherwise
> unloaded system, your test procedure should be something like:
>
> loop over governor choices
>   set governor
>loop 3 times
>  sleep 60 seconds
>  print statistics
>endloop
>   loop from 1 to N
> start background process
> loop 10 times
>   sleep 6 seconds
>   print statistics
> endloop
>   endloop
>   kill all background processes
> endloop
>
>
> "print statistics" should include time, governor setting, number of
> background processes running, and CPU temperature.  If would be nice to
> also include system loading percent, CPU frequency, and CPU fan speed.


The system *must* be otherwise idle before and during the test.  The 
data indicates it was not.



The "CPU_fan_speed" was 0 throughout.  Your data collection code for 
that field value is broken.



There is supposed to be a cool-down delay at the start of each governor 
sub-run.  My WAG was 3 minutes.  Your test did 2 minutes (off by 1 error).



After each loading cycle, the load processes must be killed.  The data 
indicates that they were not.  Instead, your overall test accumulated 4 
units of load for 6 governors, producing a system load of 24 (!).  This 
is what I meant when I said "stop it if things go badly".  (But, the 
fact that the CPU did not throttle or malfunction with ~15 minutes of 
full load indicates that the cooling is good.)



Please correct your test script and try again.  Then tune it:

- Cool-down delay -- the output variable values (CPU_temperature, 
system_load, CPU_fan_speed, core1_freq, core2_freq, core3_freq, 
core4_freq) must be stable when each governor cool-down delay ends (3 
loops * 60 seconds).  Furthermore, they must be consistent across all 
six governor sub-runs.  Adjust the cool-down delay loop count and/or 
time increment if and as required.  Or, or add code to find stability 
and make the decision.


- Incremental load period -- the output variables must have reached 
their steady-state values when each incremental load period ends (10 
loops * 6 seconds).  Adjust and/or code accordingly.



Have you isolated and identified the primary noise source(s)?  Have you 
quantified them (e.g. sound measurement)?  Can you get that data into 
your test script?



David



Re: smart fans

2021-08-28 Thread Emanuel Berg
David Christensen wrote:

> You want to watch the test run, so that you can monitor
> progress, make adjustments, and/or stop it if things
> go badly.

Don't worry about it...

Here are the 20 first lines of the output:

time, governor, processes, CPU temperature C, system load, CPU fan speed RPM, 
CPU frequencies MHz
1630072652, conservative, 157, 33.25, 0.00, 0, 1685.535 1416.164 3029.758 
1415.421
1630072712, conservative, 157, 33.25, 0.00, 0, 1537.245 1402.528 3118.173 
1286.090
1630072772, conservative, 157, 33.25, 0.06, 0, 1426.077 1356.078 1358.613 
3049.180
1630072778, conservative, 158, 44.5, 0.14, 0, 2056.087 1620.633 3871.754 
1571.838
1630072784, conservative, 158, 44.75, 0.21, 0, 2041.653 1563.035 3872.665 
1599.792
1630072790, conservative, 158, 44.75, 0.55, 0, 1706.676 1610.757 3870.038 
2752.512
1630072796, conservative, 158, 45, 0.59, 0, 2313.482 3446.144 3869.807 2325.238
1630072802, conservative, 158, 45, 0.62, 0, 2169.143 1572.604 3873.451 1564.032
1630072808, conservative, 158, 45.25, 0.65, 0, 1969.447 1719.104 3869.058 
2789.924
1630072814, conservative, 158, 45.25, 0.70, 0, 1924.617 2776.821 3872.058 
1615.040
1630072821, conservative, 158, 45.25, 0.73, 0, 2553.058 1642.274 3870.106 
1636.617
1630072827, conservative, 158, 45.25, 0.75, 0, 2509.193 1643.395 3875.505 
1624.528
1630072833, conservative, 158, 45.25, 0.77, 0, 2542.012 1619.204 3873.868 
1608.061
1630072839, conservative, 159, 48.5, 0.87, 0, 2234.947 1624.853 3846.943 
3846.329
1630072845, conservative, 159, 48.875, 1.04, 0, 2463.900 1649.777 3845.442 
3845.337
1630072851, conservative, 159, 47.125, 1.12, 0, 2171.265 3848.972 3849.260 
1606.988
1630072857, conservative, 159, 47, 1.19, 0, 1743.183 3846.028 3845.345 2728.237
1630072863, conservative, 159, 47, 1.26, 0, 2218.865 3846.552 3846.422 1573.131

The entire file:

  https://dataswamp.org/~incal/ebchw/cpu.txt

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-24 Thread Emanuel Berg
David Christensen wrote:

> I would output a header line and then output each set of
> statistics on a single line [...]
>
> I would avoid doing any math on the data. Save raw values
> and deal with math in post-processing [...]
>
> I would put units into the headers. Save raw values and deal
> with units in post processing [...]

OK, the header line is now

  time, governor, background processes, CPU temperature C,
  system load, CPU fan speed RPM, CPU frequencies MHz

and output can be either

  1629843103, ondemand, 1, 33.25, 0.03, 0, 1807.086 2928.002 2418.211 3084.016

or

  time 1629843119
  governor ondemand
  background processes 0
  CPU temperature C36.625
  system load  0.02
  CPU fan speed RPM0
  CPU frequencies MHz  1966.683 3032.553 2397.819 1399.776

I'll run it next time I go for a walk...

#! /bin/zsh
#
# this file:
#   https://dataswamp.org/~incal/conf/.zsh/cpu

cpu-stats-print-raw () {
local time=$1
local gov=$2
local back=$3
local temp=$4
local load=$5
local fan=$6
shift 6
local freq=($@)
echo "${time}, ${gov}, ${back}, ${temp}, ${load}, ${fan}, ${freq}"
}

cpu-stats-print-pretty () {
local time=$1
local gov=$2
local back=$3
local temp=$4
local load=$5
local fan=$6
shift 6
local freq=($@)

echo"time $time"
echo"governor $gov"
echo"background processes $back"
echo"CPU temperature C$temp"
echo"system load  $load"
echo"CPU fan speed RPM$fan"
echo -n "CPU frequencies MHz "
for f in $freq; do
echo -n " $f"
done
echo
}

cpu-stats () {
local time=$(date +%s)
local gov=$(cpufreq-info -p | awk '{print $3}')
local back=$1
local temp=$(sensors -j | jq -a '.["k10temp-pci-00c3"].Tdie.temp1_input')
local load=$(awk '{print $1}' /proc/loadavg)
local fan=$(sensors | awk '/cpu_fan/{print $2}')
local freq=("${(@f)$(awk '/cpu MHz/{print $4}' /proc/cpuinfo)}")
cpu-stats-print-raw$time $gov $back $temp $load $fan $freq
echo
cpu-stats-print-pretty $time $gov $back $temp $load $fan $freq
}

test-cpu () {
echo "time, governor, background processes, CPU temperature C, system load, 
CPU fan speed RPM, CPU frequencies MHz"
local ori=$(cpufreq-info -p | awk '{print $3}')
local cores=$(getconf _NPROCESSORS_ONLN)
local pids=()
local jbs
local g
for g in $(cpufreq-info -g); do
sudo cpufreq-set -g $g
repeat 3 {
sleep 60
jbs=$(jobs -l | wc -l)
cpu-stats $jbs
echo
}
repeat $cores {
perl -e '1 while 1' &
pids+=($!)
repeat 10 {
sleep 6
jbs=$(jobs -l | wc -l)
cpu-stats $jbs
echo
}
}
done
local p
for p in $pids; do
kill $p
done

sudo cpufreq-set -g $ori
}

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-24 Thread Emanuel Berg
> OK, so then the data is
>
>   5 fans:  23.3 dB
>   5 fans and HDD:  30.0 dB

OK, so if the HDD is 29 dB and all the five fans just add 1 dB
maybe one shouldn't even care about the fan noise ...

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-24 Thread Emanuel Berg
David Christensen wrote:

> These are the equations and conversion factors needed:
>
> Bel   = log10(power)
>
> power = 10 ** Bel
>
> 1 Bel = 10 dB
>
> So, your calculation should be:
>
> 2021-08-23 23:42:34 dpchrist@dipsy ~
> $ perl -e '$p=0; $p += 10**($_/10) for @ARGV; print
> 10*log($p)/log(10), "\n"' 14.9 15.9 15.9 14.7 29.0
> 29.696732023509

OK, so then the data is

  5 fans:  23.3 dB
  5 fans and HDD:  30.0 dB

;;; -*- lexical-binding: t -*-
;;;
;;; this file:
;;;   https://dataswamp.org/~incal/emacs-init/audio.el

(defun db (d  ds)
  (let ((all (cons d ds))
(sum 0) )
(cl-loop for a in all do
 (cl-incf sum (expt 10 (/ a 10.0))) )
(format "%.1f dB" (* 10 (/ (log sum) (log 10))) )))

;; (db 18.9 14.9 14.7 15.9 15.9); 23.3 dB
;; (db 18.9 14.9 14.7 15.9 15.9 29) ; 30.0 dB

> That said, I would just add the continuous fan noise [...]
> And consider the 29.0 dB HDD vibration separately.

Why?

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-24 Thread Emanuel Berg
The unaccounted for fan is a Corsair A1225M12S. It's noise is
18.9 db(A).

So now all mounted fans and the HDD are accounted for, it
lands on 37.3 dB if the dB algorithm is correctly understood
and implemented (start with the highest, then add 3 dB every
time it is doubled).

So, that means only the GPU and the PSU are left!

I did Google the GPU (GFX card) but I couldn't find anything,
it is a msi Nvidia Geforce GT 710.

As for the PSU, I must open the computer and have a look since
I didn't write down anything except "Seasonic" ...

See https://dataswamp.org/~incal/ebchw/COMPUTER

fanconnector  fan   mm   pin  dB(A)
   CHA_FAN1   Corsair A1225M12S 120   3   18.9[2]
   CHA_FAN2   be quiet! Shadow Wings 2  140   4   14.9
   CHA_FAN3   be quiet! Shadow Wings 2  140   3   14.7[3]
   CPU_FANbe quiet! Pure Wings 2120   4   15.9[4]
   CPU_OPTbe quiet! Pure Wings 2120   4   15.9

   (db 18.9 14.9 14.7 15.9 15.9); 28.6 dB mounted fans[5]
   (db 18.9 14.9 14.7 15.9 15.9 29) ; 37.3 dB mounted fans and HDD

HDD$ sudo lshw -class disk # ATA Disk · SAMSUNG HD204UI · 2TB
   Samsung Spinpoint F4EG
   "Acoustics – Idle 2.5/2.6 Bel, Performance Seek 2.8/2.9 Bel"   [6]

[...]

   [2] 
https://archiwum.allegro.pl/oferta/wentylator-wentylator-corsair-a1225m12s-120mm-i314859.html
   [3] https://www.bequiet.com/en/casefans/1701
   [4] https://www.bequiet.com/en/casefans/1626
   [5] https://dataswamp.org/~incal/emacs-init/audio.el
   [6] 
https://www.storagereview.com/review/samsung-spinpoint-f4eg-review-hd204ui

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-24 Thread David Christensen

On 8/24/21 3:17 PM, Emanuel Berg wrote:

I'll run it next time I go for a walk...



You want to watch the test run, so that you can monitor progress, make 
adjustments, and/or stop it if things go badly.



Have you identified the sound source(s) that are most annoying?


David



Re: smart fans

2021-08-24 Thread Andrew M.A. Cater
On Mon, Aug 23, 2021 at 08:54:29PM +0200, Emanuel Berg wrote:
> David Christensen wrote:
> 
> > Changing settings and making measurements at idle is
> > a starting point. You should also put the machine under load
> > and make measurements.
> 
> Yes, but I know already that even with all fans (2*CPU cooling
> tower, 3*case) at "Silent" and with the powersave governor it
> still - if indeed anything changed - it still makes to much
> noise so I still hibernate the computer when I don't use it.
> 
> The GPU fan looks so small it can't make a lot of noise one
> would think, and the fans for the power supply/the HDD are
> inside a little box even inside the computer case (don't know
> if it has a name?) but if they are really noisy I guess it
> could happen?
> 
> -- 
> underground experts united
> https://dataswamp.org/~incal
> 

Large slow fans are lovely and the most expensive fans from people who worry
about these things often rotate very slowly pushing a large amount of air.

Small fans are problematic: if they need to move quantities of hot air, they
can only do this with high rotational speed and thus noise.

QuietPC are worth looking at just to see the range of quiet fans. Likewise
Overclockers or similar.

All best, as ever,

Andy Cater



Re: smart fans

2021-08-24 Thread Emanuel Berg
David Christensen wrote:

> For a CPU with N cores (N=4 for an AMD Ryzen 3 3200G?) and
> an otherwise unloaded system, your test procedure should be
> something like:
>
>loop over governor choices
>  set governor
>   loop 3 times
> sleep 60 seconds
> print statistics
>   endloop
>  loop from 1 to N
>start background process
>loop 10 times
>  sleep 6 seconds
>  print statistics
>endloop
>  endloop
>  kill all background processes
>endloop
>
> "print statistics" should include time, governor setting,
> number of background processes running, and CPU temperature.
> If would be nice to also include system loading percent, CPU
> frequency, and CPU fan speed.

Okay, what about

#! /bin/zsh
#
# this file:
#   https://dataswamp.org/~incal/conf/.zsh/cpu

cpu-stats () {
local time=$(date +%s)
local gov=$(cpufreq-info -p | awk '{print $3}')
local back=$(jobs -l | wc -l)
local temp=$(sensors -j | jq -a '.["k10temp-pci-00c3"].Tdie.temp1_input')

local cores=$(getconf _NPROCESSORS_ONLN)
local avg=$(awk '{print $1}' /proc/loadavg)
local load=$(( $avg * 100/$cores ))

local freq=("${(@f)$(awk '/cpu MHz/{print $4}' /proc/cpuinfo)}")
local fan=$(sensors | awk '/cpu_fan/{print $2 " RPM"}')

echo"time ${time}"
echo"governor ${gov}"
echo"background processes ${back}"
echo"CPU temperature  ${temp}C"
printf  "system load  %.1f%%\n" $load
echo"CPU fan speed${fan}"
echo -n "CPU frequencies  "

for f in $freq; do
echo -n "$f "
done
echo "MHz"
}

test-cpu () {
local cores=$(getconf _NPROCESSORS_ONLN)
local pids=()
local g
for g in $(cpufreq-info -g); do
sudo cpufreq-set -g $g
repeat 3 {
sleep 60
cpu-stats
}
repeat $cores {
perl -e '1 while 1' &
pids+=($!)
repeat 10 {
sleep 6
cpu-stats
}
}
done
for p in $pids; do
kill $p
done
}

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-24 Thread David Christensen

On 8/23/21 3:17 PM, David Christensen wrote:

Here is a Perl one-liner that should peg one core:

$ perl -e "1 while 1"



Here is a Perl one-liner that can do between 0 and 100 percent loading 
of one core:


2021-08-24 02:13:06 dpchrist@dipsy ~
$ perl -MTime::HiRes=time,sleep -e 
'$a=$ARGV[0]/1000;$b=(100-$ARGV[0])/1000;while(1){$t=time;1 while 
time<$t+$a;sleep $b}' 25

^C

2021-08-24 02:13:59 dpchrist@dipsy ~
$ perl -MTime::HiRes=time,sleep -e 
'$a=$ARGV[0]/1000;$b=(100-$ARGV[0])/1000;while(1){$t=time;1 while 
time<$t+$a;sleep $b}' 50

^C

2021-08-24 02:14:18 dpchrist@dipsy ~
$ perl -MTime::HiRes=time,sleep -e 
'$a=$ARGV[0]/1000;$b=(100-$ARGV[0])/1000;while(1){$t=time;1 while 
time<$t+$a;sleep $b}' 75

^C

2021-08-24 02:14:37 dpchrist@dipsy ~
$ perl -MTime::HiRes=time,sleep -e 
'$a=$ARGV[0]/1000;$b=(100-$ARGV[0])/1000;while(1){$t=time;1 while 
time<$t+$a;sleep $b}' 100

^C


David



Re: smart fans

2021-08-24 Thread David Christensen

On 8/23/21 10:25 PM, Emanuel Berg wrote:

David Christensen wrote:


For a CPU with N cores (N=4 for an AMD Ryzen 3 3200G?) and
an otherwise unloaded system, your test procedure should be
something like:

loop over governor choices
  set governor
   loop 3 times
 sleep 60 seconds
 print statistics
   endloop
  loop from 1 to N
start background process
loop 10 times
  sleep 6 seconds
  print statistics
endloop
  endloop
  kill all background processes
endloop

"print statistics" should include time, governor setting,
number of background processes running, and CPU temperature.
If would be nice to also include system loading percent, CPU
frequency, and CPU fan speed.


Okay, what about

#! /bin/zsh
#
# this file:
#   https://dataswamp.org/~incal/conf/.zsh/cpu

cpu-stats () {
 local time=$(date +%s)
 local gov=$(cpufreq-info -p | awk '{print $3}')
 local back=$(jobs -l | wc -l)
 local temp=$(sensors -j | jq -a '.["k10temp-pci-00c3"].Tdie.temp1_input')

 local cores=$(getconf _NPROCESSORS_ONLN)
 local avg=$(awk '{print $1}' /proc/loadavg)
 local load=$(( $avg * 100/$cores ))

 local freq=("${(@f)$(awk '/cpu MHz/{print $4}' /proc/cpuinfo)}")
 local fan=$(sensors | awk '/cpu_fan/{print $2 " RPM"}')

 echo"time ${time}"
 echo"governor ${gov}"
 echo"background processes ${back}"
 echo"CPU temperature  ${temp}C"
 printf  "system load  %.1f%%\n" $load
 echo"CPU fan speed${fan}"
 echo -n "CPU frequencies  "

 for f in $freq; do
 echo -n "$f "
 done
 echo "MHz"
}

test-cpu () {
 local cores=$(getconf _NPROCESSORS_ONLN)
 local pids=()
 local g
 for g in $(cpufreq-info -g); do
 sudo cpufreq-set -g $g
 repeat 3 {
 sleep 60
 cpu-stats
 }
 repeat $cores {
 perl -e '1 while 1' &
 pids+=($!)
 repeat 10 {
 sleep 6
 cpu-stats
 }
 }
 done
 for p in $pids; do
 kill $p
 done
}



I would output a header line and then output each set of statistics on a 
single line.  Fixed-width pretty-printing may involve a lot of 
programmer effort, both to generate and to parse later.  ASCII comma- or 
tab-separated value (CSV/TSV) format is open source, mostly human 
readable, easier on the programmer, readily ported between platforms, 
and can be fed into other programs (such as LibreOffice Calc, scripts, 
databases, etc.).



I would avoid doing any math on the data.  Save raw values and deal with 
math in post-processing:


local cores=$(getconf _NPROCESSORS_ONLN)
local load=$(( $avg * 100/$cores ))


I would put units into the headers.  Save raw values and deal with units 
in post processing:


echo"CPU temperature  ${temp}C"


David



Re: smart fans

2021-08-24 Thread Emanuel Berg
David Christensen wrote:

> Doubling the sound energy adds 3 db. So, the two loudest
> fans are around 19 dB.
>
> The HDD is 2.9 Bel = 29 dB.

So the total worse-case is 35.4 dB?

(With the GPU, PSU and one fan still unaccounted for.)

;;; -*- lexical-binding: t -*-
;;;
;;; this file:
;;;   https://dataswamp.org/~incal/emacs-init/audio.el

(defun db (d  ds)
  (let*((all(cons d ds))
(top(apply #'max all))
(other  (- (apply #'+ all) top))
(double (/ other top 1.0))
(res(+ top (* double 3))) )
  (format "%.1f dB" res) ))

;; (db 14.9 15.9 15.9 14.7 29.0) ; 35.4 dB

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-24 Thread David Christensen

On 8/23/21 8:09 PM, Emanuel Berg wrote:

David Christensen wrote:


Doubling the sound energy adds 3 db. So, the two loudest
fans are around 19 dB.

The HDD is 2.9 Bel = 29 dB.


So the total worse-case is 35.4 dB?

(With the GPU, PSU and one fan still unaccounted for.)

;;; -*- lexical-binding: t -*-
;;;
;;; this file:
;;;   https://dataswamp.org/~incal/emacs-init/audio.el

(defun db (d  ds)
   (let*((all(cons d ds))
 (top(apply #'max all))
 (other  (- (apply #'+ all) top))
 (double (/ other top 1.0))
 (res(+ top (* double 3))) )
   (format "%.1f dB" res) ))

;; (db 14.9 15.9 15.9 14.7 29.0) ; 35.4 dB



These are the equations and conversion factors needed:

Bel   = log10(power)

power = 10 ** Bel

1 Bel = 10 dB


So, your calculation should be:

2021-08-23 23:42:34 dpchrist@dipsy ~
$ perl -e '$p=0; $p += 10**($_/10) for @ARGV; print 10*log($p)/log(10), 
"\n"' 14.9 15.9 15.9 14.7 29.0

29.696732023509


That said, I would just add the continuous fan noise:

2021-08-23 23:42:49 dpchrist@dipsy ~
$ perl -e '$p=0; $p += 10**($_/10) for @ARGV; print 10*log($p)/log(10), 
"\n"' 14.9 15.9 15.9 14.7

21.4058369416353


And consider the 29.0 dB HDD vibration separately.


David



Re: smart fans

2021-08-23 Thread Emanuel Berg
> db(A): 14.9, 15.9 (2), 14.7 [...]
>
> Here is the HDD BTW
>
> $ sudo lshw -class disk
>   *-disk
>description: ATA Disk
>product: SAMSUNG HD204UI [...]

Here [1] it says "Acoustics – Idle 2.5/2.6 Bel, Performance
Seek 2.8/2.9 Bel"

So what does that mean, the maximum is 2.9 Bel or 0.29 dB?

if so 4/5 fans are: 14.9, 15.9 (2), 14.7 dB(A)

and the HDD is: 0.29 dB

[1] https://www.storagereview.com/review/samsung-spinpoint-f4eg-review-hd204ui

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-23 Thread Emanuel Berg
David Christensen wrote:

> Nice case.  :-)

Yeah, I guess :)

> The purpose of the plate at the bottom is to form
> a thermally isolated chamber for the the power supply.
> The unperforated portions of the top surface could be
> covered with sound absorbing material.

What material would that be?

And, won't it prevent the airflow and/or prevent heat from
exiting the case?

> Conspicuously absent are drive cages; but I do see drive
> case mounting screw holes. If drives are not needed, the
> mounting surface could be covered with sound
> absorbing material.

The HDD is below with the PSU, I think.

I got an idea, aren't the noise specified by the manufacturer?

Here it says "Low-noise operation of up to 14.9dB(A)",
that's for the Shadow Wings 2 140mm PWM.


The CPU fans are "Low-noise operation of up to 15.9dB(A)", the
Shadow Wings 2 120mm PWM.


And the non-PWM Shadow Wings 2 140mm is
"Low-noise operation of up to 14.7dB(A)"


So that's 4/5 fans accounted for, I have to restart the
computer to see exactly what fan the remaining is. Anyway

db(A): 14.9, 15.9 (2), 14.7

How is it with db(A), if you have x db(A) from one thing, and
you have two of these, does that mean you perceive that as
2x db(A)?

Here is the HDD BTW

$ sudo lshw -class disk
  *-disk
   description: ATA Disk
   product: SAMSUNG HD204UI
   physical id: 0.0.0
   bus info: scsi@1:0.0.0
   logical name: /dev/sda
   version: 0001
   serial: S2H7J9EB402836
   size: 1863GiB (2TB)
   capabilities: gpt-1.00 partitioned partitioned:gpt
   configuration: ansiversion=5 guid=db8df009-609b-46e9-a61a-f2f913361b17 
logicalsectorsize=512 sectorsize=512

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-23 Thread Emanuel Berg
David Christensen wrote:

>> But changing the profile (governor) doesn't produce any
>> (noticable?) sound level change and also the temperature of
>> the CPU and the GPU seem unaffected.
>
> You will not notice a change in CPU fan temperature or speed
> profiles as a function of the Linux governor setting until
> the motherboard CPU fan speed control is working and you
> change the CPU load.
>
> Here is a Perl one-liner that should peg one core:
>
> $ perl -e "1 while 1"

OK, I wrote a script [last] and here is the result

$ temp-gov
CPU C (33.50 45.75) (100 iterations) conservative
CPU C (45.88 46.38) (100 iterations) userspace
CPU C (46.38 46.75) (100 iterations) powersave
CPU C (46.75 47.00) (100 iterations) ondemand
CPU C (47.00 47.00) (100 iterations) performance
CPU C (47.00 47.25) (100 iterations) schedutil

Hm ... the result seems to be pretty much identical for the
governors anyway?

#! /bin/zsh
#
# this file:
#   https://dataswamp.org/~incal/conf/.zsh/temp

temp-gov () {
local t=100

local cpu
local cpu_min
local cpu_max

perl -e '1 while 1' &
local pid=$!
sleep 10

local i
local g
for g in $(cpufreq-info -g); do
sudo cpufreq-set -g $g
cpu_min=999
cpu_max=0
for i in {0..$t}; do
cpu=$(sensors -j | jq -a '.["k10temp-pci-00c3"].Tdie.temp1_input')
(( $cpu < $cpu_min )) && cpu_min=$cpu
(( $cpu > $cpu_max )) && cpu_max=$cpu
done
printf "CPU C (%.2f %.2f) (%d iterations) %s\n" $cpu_min $cpu_max $t $g
done

kill $pid
}

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-23 Thread David Christensen

On 8/23/21 5:26 PM, Emanuel Berg wrote:

David Christensen wrote:


Nice case.  :-)


Yeah, I guess :)


The purpose of the plate at the bottom is to form
a thermally isolated chamber for the the power supply.
The unperforated portions of the top surface could be
covered with sound absorbing material.


What material would that be?



Whatever you choose.  For example:

https://www.quietpc.com/acousticmaterials



And, won't it prevent the airflow and/or prevent heat from
exiting the case?



Choose the material thickness accordingly.  Do not block fans or air 
openings.




Conspicuously absent are drive cages; but I do see drive
case mounting screw holes. If drives are not needed, the
mounting surface could be covered with sound
absorbing material.


The HDD is below with the PSU, I think.

I got an idea, aren't the noise specified by the manufacturer?

Here it says "Low-noise operation of up to 14.9dB(A)",
that's for the Shadow Wings 2 140mm PWM.


The CPU fans are "Low-noise operation of up to 15.9dB(A)", the
Shadow Wings 2 120mm PWM.


And the non-PWM Shadow Wings 2 140mm is
"Low-noise operation of up to 14.7dB(A)"


So that's 4/5 fans accounted for, I have to restart the
computer to see exactly what fan the remaining is. Anyway

db(A): 14.9, 15.9 (2), 14.7

How is it with db(A), if you have x db(A) from one thing, and
you have two of these, does that mean you perceive that as
2x db(A)?

Here is the HDD BTW

$ sudo lshw -class disk
   *-disk
description: ATA Disk
product: SAMSUNG HD204UI
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/sda
version: 0001
serial: S2H7J9EB402836
size: 1863GiB (2TB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: ansiversion=5 guid=db8df009-609b-46e9-a61a-f2f913361b17 
logicalsectorsize=512 sectorsize=512



On 8/23/21 5:50 PM, Emanuel Berg wrote:
>> db(A): 14.9, 15.9 (2), 14.7 [...]
>>
>> Here is the HDD BTW
>>
>> $ sudo lshw -class disk
>>*-disk
>> description: ATA Disk
>> product: SAMSUNG HD204UI [...]
>
> Here [1] it says "Acoustics – Idle 2.5/2.6 Bel, Performance
> Seek 2.8/2.9 Bel"
>
> So what does that mean, the maximum is 2.9 Bel or 0.29 dB?
>
> if so 4/5 fans are: 14.9, 15.9 (2), 14.7 dB(A)
>
> and the HDD is: 0.29 dB
>
> [1] 
https://www.storagereview.com/review/samsung-spinpoint-f4eg-review-hd204ui



https://en.wikipedia.org/wiki/Bel_(unit)


Doubling the sound energy adds 3 db.  So, the two loudest fans are 
around 19 dB.



The HDD is 2.9 Bel = 29 dB.


Beyond the fan acoustic noise, there is HDD vibration.  If you mount a 
HDD directly to a piece of sheet metal, the sheet metal will act like a 
sounding board and convert the HDD vibrations into sound.  My Antec 
Sonata chassis has silicon grommets and shoulder screws for mounting 
each HDD into its sled.  This design effectively decouples HDD 
vibrations from the rest of the case.  If you could implement the same 
idea for your HDD or for the drive cage, that would be good. 
Alternatively, you could put vibration dampers between bolted 
connections and/or damp the chassis vibrations.  Applying sound 
absorbing pads to the inside of the case should address both sound and 
vibration.



David



Re: smart fans

2021-08-23 Thread David Christensen

On 8/23/21 5:05 PM, Emanuel Berg wrote:

David Christensen wrote:


But changing the profile (governor) doesn't produce any
(noticable?) sound level change and also the temperature of
the CPU and the GPU seem unaffected.


You will not notice a change in CPU fan temperature or speed
profiles as a function of the Linux governor setting until
the motherboard CPU fan speed control is working and you
change the CPU load.

Here is a Perl one-liner that should peg one core:

$ perl -e "1 while 1"


OK, I wrote a script [last] and here is the result

$ temp-gov
CPU C (33.50 45.75) (100 iterations) conservative
CPU C (45.88 46.38) (100 iterations) userspace
CPU C (46.38 46.75) (100 iterations) powersave
CPU C (46.75 47.00) (100 iterations) ondemand
CPU C (47.00 47.00) (100 iterations) performance
CPU C (47.00 47.25) (100 iterations) schedutil

Hm ... the result seems to be pretty much identical for the
governors anyway?

#! /bin/zsh
#
# this file:
#   https://dataswamp.org/~incal/conf/.zsh/temp

temp-gov () {
 local t=100

 local cpu
 local cpu_min
 local cpu_max

 perl -e '1 while 1' &
 local pid=$!
 sleep 10

 local i
 local g
 for g in $(cpufreq-info -g); do
 sudo cpufreq-set -g $g
 cpu_min=999
 cpu_max=0
 for i in {0..$t}; do
 cpu=$(sensors -j | jq -a '.["k10temp-pci-00c3"].Tdie.temp1_input')
 (( $cpu < $cpu_min )) && cpu_min=$cpu
 (( $cpu > $cpu_max )) && cpu_max=$cpu
 done
 printf "CPU C (%.2f %.2f) (%d iterations) %s\n" $cpu_min $cpu_max $t $g
 done

 kill $pid
}



For a CPU with N cores (N=4 for an AMD Ryzen 3 3200G?) and an otherwise 
unloaded system, your test procedure should be something like:


   loop over governor choices
 set governor
  loop 3 times
sleep 60 seconds
print statistics
  endloop
 loop from 1 to N
   start background process
   loop 10 times
 sleep 6 seconds
 print statistics
   endloop
 endloop
 kill all background processes
   endloop


"print statistics" should include time, governor setting, number of 
background processes running, and CPU temperature.  If would be nice to 
also include system loading percent, CPU frequency, and CPU fan speed.



David



Re: smart fans

2021-08-23 Thread Emanuel Berg
Thomas Schmitt wrote:

> If nothing else helps to find the culprit, then consider to
> unplug all case fans to prove that it's not them. A bit more
> adventurous is to run the CPU without fan for a few seconds.

Maybe there is an adaptor so one can run them from an USB
charger or something ...

> (I assume from your fan list that it is a larger box where
> such manipulations are feasible.)

Yeah, here it how it once looked, I've repositioned the
projector since then and done some other stuff but in general
it should be the same:

  https://dataswamp.org/~incal/ebchw/fan-top.jpg

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-23 Thread Emanuel Berg
With the 'powersave' governor and all 5 fans "Silent", the CPU
temperature, for random/normal computer use, is in
(33.25 51.125) and ditto GPU (40 42), and with the
'performance' governor it is ... exactly the same.

https://dataswamp.org/~incal/conf/.zsh/misc-hw

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-23 Thread David Christensen

On 8/23/21 3:42 PM, David Christensen wrote:

On 8/23/21 2:25 PM, Thomas Schmitt wrote:

Hi,

Emanuel Berg photographed:

https://dataswamp.org/~incal/ebchw/fan-top.jpg


Conspicuously absent are drive cages; but I do see drive case mounting 
screw holes.  If drives are not needed, the mounting surface could be 
covered with sound absorbing material.



https://dataswamp.org/~incal/ebchw/COMPUTER

https://www.corsair.com/us/en/Categories/Products/Cases/Carbide-Series-275R-Mid-Tower-Gaming-Case/p/CC-9011131-WW#tab-downloads

The drive cage is in the lower compartment, in front of the power 
supply.  I am unsure if additional cages can be mounted (?).



The inside of the chassis covers (left side and right side) could be 
covered with sound absorbing material.



The chassis left side is a windowed side panel.  Covering that with 
sound absorbing material could be done, but would block the view.



David



Re: smart fans

2021-08-23 Thread Emanuel Berg
tomas wrote:

> I say "back then" above, but there seem to be design
> parameters which still favour brushes. My reasonably recent
> power drill still has brushes.

The 18V cordless power tools from Ryobi that I like come in
several versions each and the most expensive ones are
brushless, often.

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-23 Thread Emanuel Berg
David Christensen wrote:

> Changing settings and making measurements at idle is
> a starting point. You should also put the machine under load
> and make measurements.

Yes, but I know already that even with all fans (2*CPU cooling
tower, 3*case) at "Silent" and with the powersave governor it
still - if indeed anything changed - it still makes to much
noise so I still hibernate the computer when I don't use it.

The GPU fan looks so small it can't make a lot of noise one
would think, and the fans for the power supply/the HDD are
inside a little box even inside the computer case (don't know
if it has a name?) but if they are really noisy I guess it
could happen?

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-23 Thread Emanuel Berg
Polyna-Maude Racicot-Summerside wrote:

> If you take the option for let say "performance" then it
> will be at max speed so the system is the coolest possible
> all the time.

But changing the profile (governor) doesn't produce any
(noticable?) sound level change and also the temperature of
the CPU and the GPU seem unaffected.

Heh, I have an infrared thermometer, is there some other part
of the computer I should aim for? ;)

No, that command sets the CPU so there is where the change
should be noticable, right?

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-23 Thread David Christensen

On 8/23/21 2:25 PM, Thomas Schmitt wrote:

Hi,

Emanuel Berg photographed:

https://dataswamp.org/~incal/ebchw/fan-top.jpg


The case fans look like they would produce a lot of wind if really
running at full speed. Whatever, i'd make a closer photo, unplug them,
listen how much noise is missing, and then plug them in again guided by
the photo.

That perforated metal plate at the bottom looks suspicious.
Power supply and hard disk cage, if i remember correctly ?
How is the noise if you unplug the power of the whole mainboard ?


Have a nice day :)

Thomas



Nice case.  :-)


The purpose of the plate at the bottom is to form a thermally isolated 
chamber for the the power supply.  The unperforated portions of the top 
surface could be covered with sound absorbing material.



Conspicuously absent are drive cages; but I do see drive case mounting 
screw holes.  If drives are not needed, the mounting surface could be 
covered with sound absorbing material.



The front cover over the fans will help contain noise; especially if it 
is lined with sound absorbing material.



The unused expansion slot filler plates could be covered with sound 
absorbing material.



The underside of the chassis top could be covered with sound absorbing 
material.



The inside of the chassis covers (left side and right side) could be 
covered with sound absorbing material.



Sound absorbing material could be placed outside and to the rear of the 
chassis.



David



Re: smart fans

2021-08-23 Thread Emanuel Berg
David Christensen wrote:

> - Set the Linux CPU governor to "powersave".

Nothing happens when I do that.

> Try the QFan "Silent" profile

Same.

> What about GPU fan(s)? Power supply fan(s)?
> What about HDD's?

Yeah, I thought about that. I listened to the fan I had
outside of the computer, put my ear right next to it.
My impression was I didn't hear anything. So maybe it isn't
the case fans or the CPU cooling tower fans that make the
sound anyway!

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-23 Thread David Christensen

On 8/23/21 1:44 PM, Thomas Schmitt wrote:

Hi,

Emanuel Berg wrote:

[...] maybe it isn't
the case fans or the CPU cooling tower fans that make the
sound anyway!


If nothing else helps to find the culprit, then consider to unplug all
case fans to prove that it's not them.
A bit more adventurous is to run the CPU without fan for a few seconds.

(I assume from your fan list that it is a larger box where such
manipulations are feasible.)


Have a nice day :)

Thomas



Unplugging the chassis fans would make it easier to focus on the CPU 
fans, but all the fans should be operating with the chassis closed 
before applying any significant load.  (Or, at least the CPU fans, an 
open chassis, and a good floor fan.)



With my Intel motherboards, if I power up and the CPU fan is unplugged 
or not rotating (e.g. blocked by wires), the firmware will detect this 
during POST and halt the CPU.



David



Re: smart fans

2021-08-23 Thread David Christensen

On 8/23/21 12:36 PM, to...@tuxteam.de wrote:

On Mon, Aug 23, 2021 at 12:20:34PM -0700, David Christensen wrote:

[...]


Thank you.  Do you know where there is information that explains how
a BLDC computer fan motor responds to variable supply voltage?


Not specifically for computer fans, and the controller electronics
(which is a must for a BLDC) has to be somewhat prepared to do this,
but here [1] is a blog post which gives a rough idea of the things
involved.

BLDCs are a huge thing in drones and things.

Cheers

[1] 
https://things-in-motion.blogspot.com/2019/05/understanding-bldc-pmsm-electric-motors.html

  - t



Thank you.  :-)


David



Re: smart fans

2021-08-23 Thread David Christensen

On 8/23/21 11:41 AM, Emanuel Berg wrote:

David Christensen wrote:


- Set the Linux CPU governor to "powersave".


Nothing happens when I do that.


Try the QFan "Silent" profile


Same.


What about GPU fan(s)? Power supply fan(s)?
What about HDD's?


Yeah, I thought about that. I listened to the fan I had
outside of the computer, put my ear right next to it.
My impression was I didn't hear anything. So maybe it isn't
the case fans or the CPU cooling tower fans that make the
sound anyway!



Use a piece of tubing as a stethoscope to isolate and identify the noise 
source(s).



On 8/23/21 11:46 AM, Emanuel Berg wrote:
> Polyna-Maude Racicot-Summerside wrote:
>
>> If you take the option for let say "performance" then it
>> will be at max speed so the system is the coolest possible
>> all the time.
>
> But changing the profile (governor) doesn't produce any
> (noticable?) sound level change and also the temperature of
> the CPU and the GPU seem unaffected.


You will not notice a change in CPU fan temperature or speed profiles as 
a function of the Linux governor setting until the motherboard CPU fan 
speed control is working and you change the CPU load.



Here is a Perl one-liner that should peg one core:

$ perl -e "1 while 1"


Press Ctrl+C to stop it.  Open multiple terminals an invoke the same to 
peg more cores.



> Heh, I have an infrared thermometer, is there some other part
> of the computer I should aim for? ;)


Whatever interests you -- chipset, voltage regulators, memory modules, 
etc..  Because the instrument is hand-held, the challenge will be 
measuring the same spot at the same distance and same angle every time.



> No, that command sets the CPU so there is where the change
> should be noticable, right?


Changing the Linux CPU governor should affect the CPU frequency profile 
as a function of CPU load.  I use the Xfce panel applet "CPU Frequency 
Monitor" to monitor the CPU frequency and the "CPU Graph" applet to 
monitor loading of each core.



On 8/23/21 11:54 AM, Emanuel Berg wrote:
> David Christensen wrote:
>
>> Changing settings and making measurements at idle is
>> a starting point. You should also put the machine under load
>> and make measurements.
>
> Yes, but I know already that even with all fans (2*CPU cooling
> tower, 3*case) at "Silent" and with the powersave governor it
> still - if indeed anything changed - it still makes to much
> noise so I still hibernate the computer when I don't use it.
>
> The GPU fan looks so small it can't make a lot of noise one
> would think, and the fans for the power supply/the HDD are
> inside a little box even inside the computer case (don't know
> if it has a name?) but if they are really noisy I guess it
> could happen?


On my Intel desktop and server motherboards, CPU fan speed control only 
works with Intel CPU fans.  Aftermarket fans run at full speed all the 
time.  Try your AMD CPU fan.



Get a 3-pin and/or 4-pin fan speed controller and test the fans:

https://www.amazon.com/Zalman-Fan-Speed-Controller-FANMATE-2/dp/B000292DO0/

https://www.amazon.com/Noctua-NA-FC1-4-pin-PWM-Controller/dp/B072M2HKSN/


While STFW, I found a what might be a replacement for your external fan:

https://www.amazon.com/Wathai-Controller-Receiver-Playstation-Component/dp/B07VYGQPCZ/


The video card and power supply fans should have automatic fan speed 
control.  The video card manufacturer might offer a firmware or software 
utility for tuning the fan speed control profile.  A gamer power supply 
might have such a feature.  That said, I expect the factor defaults 
should be good enough for now.  I would leave them alone, unless you 
definitely hear too much noise coming from one or both.



Small fans at high RPM can be very shrill -- e.g. the spectra has a lot 
of high frequency energy.  I use 3.5" HDD mobile racks with two 30mm 
fans each (StarTech DRW115SAT).  When I install four in a computer, it 
sounds like a B-52!



David



Re: smart fans

2021-08-23 Thread Thomas Schmitt
Hi,

Emanuel Berg photographed:
> https://dataswamp.org/~incal/ebchw/fan-top.jpg

The case fans look like they would produce a lot of wind if really
running at full speed. Whatever, i'd make a closer photo, unplug them,
listen how much noise is missing, and then plug them in again guided by
the photo.

That perforated metal plate at the bottom looks suspicious.
Power supply and hard disk cage, if i remember correctly ?
How is the noise if you unplug the power of the whole mainboard ?


Have a nice day :)

Thomas



Re: smart fans

2021-08-23 Thread Thomas Schmitt
Hi,

Emanuel Berg wrote:
> [...] maybe it isn't
> the case fans or the CPU cooling tower fans that make the
> sound anyway!

If nothing else helps to find the culprit, then consider to unplug all
case fans to prove that it's not them.
A bit more adventurous is to run the CPU without fan for a few seconds.

(I assume from your fan list that it is a larger box where such
manipulations are feasible.)


Have a nice day :)

Thomas



Re: smart fans

2021-08-23 Thread tomas
On Mon, Aug 23, 2021 at 12:20:34PM -0700, David Christensen wrote:

[...]

> Thank you.  Do you know where there is information that explains how
> a BLDC computer fan motor responds to variable supply voltage?

Not specifically for computer fans, and the controller electronics
(which is a must for a BLDC) has to be somewhat prepared to do this,
but here [1] is a blog post which gives a rough idea of the things
involved.

BLDCs are a huge thing in drones and things.

Cheers

[1] 
https://things-in-motion.blogspot.com/2019/05/understanding-bldc-pmsm-electric-motors.html

 - t


signature.asc
Description: Digital signature


Re: smart fans

2021-08-23 Thread David Christensen

On 8/23/21 1:03 AM, to...@tuxteam.de wrote:

On Sun, Aug 22, 2021 at 02:02:45PM -0700, David Christensen wrote:

[...]


What is "BLDC"?


Brushless (electric) DC motor [1]. Back Then (TM ;-), to turn an
electric motor around you had to switch around the magnetic field
in the coils at (about) the right time. This was accomplished by
sliding contacts (aka "brushes") on a sectioned cylinder.

These days you use silicon magic (aka electronics to accomplish
the same thing.

I say "back then" above, but there seem to be design parameters
which still favour brushes. My reasonably recent power drill
still has brushes.

Cheers

[1] https://en.wikipedia.org/wiki/BLDC

  - t



Thank you.  Do you know where there is information that explains how a 
BLDC computer fan motor responds to variable supply voltage?



David



Re: smart fans

2021-08-23 Thread tomas
On Mon, Aug 23, 2021 at 08:57:09PM +0200, Emanuel Berg wrote:
> tomas wrote:
> 
> > [...] My reasonably recent power drill still has brushes.
> 
> The 18V cordless power tools from Ryobi that I like come in
> several versions each and the most expensive ones are
> brushless, often.

My power tools all have cords :)

Cheers
 - t


signature.asc
Description: Digital signature


Re: smart fans

2021-08-23 Thread tomas
On Sun, Aug 22, 2021 at 02:02:45PM -0700, David Christensen wrote:

[...]

> What is "BLDC"?

Brushless (electric) DC motor [1]. Back Then (TM ;-), to turn an
electric motor around you had to switch around the magnetic field
in the coils at (about) the right time. This was accomplished by
sliding contacts (aka "brushes") on a sectioned cylinder.

These days you use silicon magic (aka electronics to accomplish
the same thing.

I say "back then" above, but there seem to be design parameters
which still favour brushes. My reasonably recent power drill
still has brushes.

Cheers

[1] https://en.wikipedia.org/wiki/BLDC

 - t


signature.asc
Description: Digital signature


Re: smart fans

2021-08-23 Thread didier gaumet



Le dimanche 22 août 2021 à 23:26 +0200, Emanuel Berg a écrit :
> 
> Yeah, or replace the 3-pins with 4-pins?
[...]

If you already have 4-pins fans available or are willing to invest in
buying them, it would probably be the best solution

Good luck :-)  




Re: smart fans

2021-08-22 Thread Emanuel Berg
> OK, I did check out the BIOS/UEFI/Setup and all five fans
> can be configured individually. There are five options.

I spoke to soon, there seems to be only one set of options for
the CPU fan, so I guess the CPU_OPT and CPU_FAN are the same
in terms of options.

Anyway now I've set all 5 to "Silent" but the temperature is
the same and to be honest I can't say it is any more silent
than before ... is it?

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
OK, I did check out the BIOS/UEFI/Setup and all five fans can
be configured individually. There are five options.

Control can be disabled, auto (the default), DC, or PWM.

Wind-up time is set to 0.

Minimum speed is 200 RPM.

Profiles were Standard (the default), Silent, Turbo,
and Manual.

I set the three case fans to Silent, let's see what
happens ...

(Maybe the "auto" control doesn't work, I can try put that
explicitely DC for the 3-pins and PWM for the 4-pins.)

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
> Temperatures of the CPU and GPU I have,
>
> #! /bin/zsh
> #
> # this file:
> #   http://user.it.uu.se/~embe8573/conf/.zsh/misc-hw
> #   https://dataswamp.org/~incal/conf/.zsh/misc-hw
>
> temperature () {
> local gpu=$(sensors -j | jq -a '.["nouveau-pci-0100"].temp1.temp1_input')
> local cpu=$(sensors -j | jq -a '.["k10temp-pci-00c3"].Tdie.temp1_input')
> echo "GPU ${gpu}C"
> echo "cpu ${cpu}C"
> }
> alias fans=temperature

Unparsed output of sensors(1):

$ sensors
nouveau-pci-0100
Adapter: PCI adapter
GPU core:912.00 mV (min =  +0.80 V, max =  +1.19 V)
temp1:+41.0°C  (high = +95.0°C, hyst =  +3.0°C)
   (crit = +105.0°C, hyst =  +5.0°C)
   (emerg = +135.0°C, hyst =  +5.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
Tdie: +33.9°C  (high = +70.0°C)
Tctl: +33.9°C  

asus-isa-
Adapter: ISA adapter
cpu_fan:0 RPM

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
David Christensen wrote:

> I would figure out what Setup can do with the fans before
> messing with the Linux CPU governor. Install software to
> display temperatures, to display fan speeds, and to put the
> CPU under load.

Temperatures of the CPU and GPU I have,

#! /bin/zsh
#
# this file:
#   http://user.it.uu.se/~embe8573/conf/.zsh/misc-hw
#   https://dataswamp.org/~incal/conf/.zsh/misc-hw

temperature () {
local gpu=$(sensors -j | jq -a '.["nouveau-pci-0100"].temp1.temp1_input')
local cpu=$(sensors -j | jq -a '.["k10temp-pci-00c3"].Tdie.temp1_input')
echo "GPU ${gpu}C"
echo "cpu ${cpu}C"
}
alias fans=temperature

> Get a camera, a notepad, a stopwatch, and collect data as
> you work through configuring the fans in Setup.

I am not bothered by the fans when I use the computer.

When I don't use the computer and instead read, attempt to
sleep etc the fan sound is annoying enough, I have to
hibernate the computer, but then I loose the Internet
connection. Gnus, ERC and downloads scripts, e.g. this -
https://dataswamp.org/~incal/scripts/tokyo-dl - all resume
their connectivity automatically but after having that
happened 1000+ times it has started to annoy me.

So this is the use case, when I don't use the computer, I'd
like the fans to slow down as much as is safe to do. If this
can't happen dynamically as a function of the load or
temperature I'm happy to issue the commands manually, altho
that would be less safe (human factor, unpredicted events
etc) no doubt.

So if we start over ... forget about everything I said ... how
would go about this?

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
David Christensen wrote:

> Some of my other machines offer additional governors --
> "powersave" and "userspace". Run "cpufreq-info -g" to see
> what Debian offers on your motherboard.

I did install and did set it to different governors but the
fans seem to go on like the always do regardless?

CPU and GPU temperatures seemed to be the same as well...

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
didier gaumet wrote:

> I would think that pwmconfig complains that it finds 3-pins
> fans set up to PWM mode (4-pins required)
>
> Your UEFI propose either to setup your fans globally or
> individually and I think that by default the setup is
> global. This would probably be fine il all your fans were
> either 3-pins (DC mode) or 4-pins (preferably PWM mode but
> DC mode is possibility). But you have both installed.
> A solution could be, in your UEFI, to individually set up
> all your 4-pins fans to PWM mode, while setting up all your
> 3-pins fans to DC mode.

Yeah, or replace the 3-pins with 4-pins?

re: pwmconfig, here is what it says:

$ sudo pwmconfig
# pwmconfig version 3.6.0
This program will search your sensors for pulse width
modulation (pwm) controls, and test each one to see if it
controls a fan on your motherboard. Note that many
motherboards do not have pwm circuitry installed, even if your
sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm
controls. The program will attempt to restore each fan to full
speed after testing. However, it is ** very important ** that
you physically verify that the fans have been to full speed
after the program has completed.

Found the following devices:
   hwmon0 is k10temp
   hwmon1 is asus
   hwmon2 is nouveau

Found the following PWM controls:
   hwmon2/pwm1   current value: 52
hwmon2/pwm1 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n) y

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon1/fan1_input current speed: 0 ... skipping!

There are no working fan sensors, all readings are 0.
Make sure you have a 3-wire fan connected.
You may also need to increase the fan divisors.
See doc/fan-divisors for more information.

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
David Christensen wrote:

> I would disconnect the fan wire splitter, disconnect
> projector extra fan, and connect the Corsair fan directly to
> CHA_FAN1 [...]
>
> CHA_FAN1 - location? - Corsair, 120 mm 3-pin

This fan is at the rear end of the computer, high, air goes
out. This is 3-pin so should be replaced ...

> It is unwise to power external devices from a computer
> motherboard.

... but in the meantime I can connect it directly to
CHA_FAN1, sure.

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread David Christensen

On 8/22/21 5:51 PM, Emanuel Berg wrote:

OK, I did check out the BIOS/UEFI/Setup and all five fans
can be configured individually. There are five options.


I spoke to soon, there seems to be only one set of options for
the CPU fan, so I guess the CPU_OPT and CPU_FAN are the same
in terms of options.

Anyway now I've set all 5 to "Silent" but the temperature is
the same and to be honest I can't say it is any more silent
than before ... is it?



You need to collect data.

- The computer should be able to tell you temperatures and fan speeds, 
either via the OS or via Setup.


- If you have a microphone, you can use various Linux apps to make sound 
measurements.


- If you have a smart phone, you can install various apps to make sound 
measurements.



Changing settings and making measurements at idle is a starting point. 
You should also put the machine under load and make measurements.



David



Re: smart fans

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 8:51 p.m., Emanuel Berg wrote:
>> OK, I did check out the BIOS/UEFI/Setup and all five fans
>> can be configured individually. There are five options.
> 
> I spoke to soon, there seems to be only one set of options for
> the CPU fan, so I guess the CPU_OPT and CPU_FAN are the same
> in terms of options.
> 
> Anyway now I've set all 5 to "Silent" but the temperature is
> the same and to be honest I can't say it is any more silent
> than before ... is it?
> 

Silent means it will use the lowest speed possible without rising
temperature.
In "normal" situation, the speed is kept so it will achieve a good
balance between temperature and the speed of the fan.

If your computer is not installed in a very warm place and you are not
doing some intensive work then it's possible that even running at a low
speed the fans still do all the job needed.

If you take the option for let say "performance" then it will be at max
speed so the system is the coolest possible all the time.

Not sure if I said it right...

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Emanuel Berg
David Christensen wrote:

> The motherboard user's manual says all of the fan connectors
> are 4-pin.

Indeed, I looked at one of the fan's wires instead of the
connector :$

> Changing the supply voltage of a old-school 2-wire fan will
> change the speed. These typically have 4-pin power supply
> Molex connectors and/or 2-pin 0.1" general electronics
> connectors. I connect these to Molex connectors or manual
> speed controllers, paying attention to alignment/polarity.
>
> Changing the supply voltage of a 3-pin fan, where the 3rd
> wire is tachometer feedback, will change the speed.
> I connect these to motherboard 3-pin and 4-pin fan
> connectors, paying attention to the alignment tab.
>
> Changing the supply voltage of a 4-pin fan, where the 3rd
> wire is tachometer feedback and the 4th wire is PWM speed
> control, may change the fan speed, may cause the electronics
> onboard the fan assembly to malfunction or fail, and/or may
> cause the electronics feeding the fan to malfunction or
> fail. I connect these to motherboard 4-pin fan connectors,
> paying attention to the alignment tab.
>
> Be careful when making connections. I once mis-aligned
> a 2.5" IDE HDD 40-pin power/signal adapter cable to a 2.5"
> IDE HDD and was off by one row. When I energized the power
> supply, the result was a short-circuit, smoked insulation,
> and permanently damaged hardware!

:)

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread David Christensen

On 8/22/21 4:57 PM, Emanuel Berg wrote:

David Christensen wrote:


I would figure out what Setup can do with the fans before
messing with the Linux CPU governor. Install software to
display temperatures, to display fan speeds, and to put the
CPU under load.


Temperatures of the CPU and GPU I have,

#! /bin/zsh
#
# this file:
#   http://user.it.uu.se/~embe8573/conf/.zsh/misc-hw
#   https://dataswamp.org/~incal/conf/.zsh/misc-hw

temperature () {
 local gpu=$(sensors -j | jq -a '.["nouveau-pci-0100"].temp1.temp1_input')
 local cpu=$(sensors -j | jq -a '.["k10temp-pci-00c3"].Tdie.temp1_input')
 echo "GPU ${gpu}C"
 echo "cpu ${cpu}C"
}
alias fans=temperature


Get a camera, a notepad, a stopwatch, and collect data as
you work through configuring the fans in Setup.


I am not bothered by the fans when I use the computer.

When I don't use the computer and instead read, attempt to
sleep etc the fan sound is annoying enough, I have to
hibernate the computer, but then I loose the Internet
connection. Gnus, ERC and downloads scripts, e.g. this -
https://dataswamp.org/~incal/scripts/tokyo-dl - all resume
their connectivity automatically but after having that
happened 1000+ times it has started to annoy me.

So this is the use case, when I don't use the computer, I'd
like the fans to slow down as much as is safe to do. If this
can't happen dynamically as a function of the load or
temperature I'm happy to issue the commands manually, altho
that would be less safe (human factor, unpredicted events
etc) no doubt.

So if we start over ... forget about everything I said ... how
would go about this?



Here are various ideas:

- Set the Linux CPU governor to "powersave".

- Use the motherboard Setup utility to under-clock the CPU and/or switch 
off cores.


- Do the same for the GPU, if you can.

- Tune the CPU and chassis fans using Setup.  Try the "EZ Tuning 
Wizards".  Try the QFan "Silent" profile.  Try making a manual profile 
once you understand the options and effects.


- What about GPU fan(s)?  Power supply fan(s)?  Any other fans?

- What about HDD's?  If they are not vibration isolated, the chassis can 
act as a sounding board.


- Any other noise sources in or on the computer?

- Dress cables inside the chassis to improve airflow.

- Install sound and vibration absorbing materials inside the chassis 
--cork, rubber, foam, etc..  Various manufacturers sell materials and kits.


- Buy a "silent" chassis with doors/ covers over all openings, sound and 
vibration absorbing materials on interior surfaces, vibration-isolated 
drive cages, etc..


- Install sound absorbing materials on the surfaces around the chassis 
-- floor, wall, furniture, ceiling, etc..  Place free-standing sound 
absorbing baffles around and/or over the chassis.  Put the chassis 
inside a cabinet lined with sound-absorbing materials and a ventilation 
fan.  Carpet scraps can be an inexpensive sound-absorbing material.


- Move whatever service(s) you need running 24x7 to a VPS.

- STFW for "silent PC" to get more ideas.


David



Re: smart fans

2021-08-22 Thread Emanuel Berg
David Christensen wrote:

> Some of my other machines offer additional governors --
> "powersave" and "userspace". Run "cpufreq-info -g" to see
> what Debian offers on your motherboard.

$ cpufreq-info -g
conservative userspace powersave ondemand performance schedutil

> The user's manual:
>
> https://dlcdnets.asus.com/pub/ASUS/mb/SocketAM4/ROG_STRIX_B450_F_GAMING/E14401_ROG_STRIX_B450-F_GAMING_UM_WEB.pdf

Ah, excellent, couldn't find that on the page that was linked
previously in this thread...

>> Fans are:
>> fanfront low   be quiet! Shadow Wings 2  140 mm
>>front high  be quiet! Shadow Wings 2  140 mm
>>CPU cooling tower   be quiet! Pure Wings 2120 mm  (2)
>>rearCorsair   120 mm
>>projector extra fractal Silent Series R3  140 mm
>
> What is "projector extra"?

fanfront low  be quiet! Shadow Wings 2  140 mm 3-pin[1]
   front high be quiet! Shadow Wings 2  140 mm 4-pin
   CPU cooling tower  be quiet! Pure Wings 2120 mm 4-pin (2)[2]
   rear   Corsair   120 mm 3-pin
   projector extrafractal Silent Series R3  140 mm 3-pin[3]

   The motherboard fan connectors are:
 CPU_FAN  - CPU cooling tower;
 CPU_OPT  - CPU colling tower;
 CHA_FAN1 - fan wire splitter - 3 wires - rear,
  - 2 wires - projector extra;
 CHA_FAN2 - front high;
 CHA_FAN3 - front low.
   All connectors are 4-pin. "Projector extra" is a fan
   located outside the computer.

   [1] https://www.bequiet.com/en/casefans/shadow-wings-2/1620
   "available with or without PWM control"
   [2] https://www.bequiet.com/en/casefans/449
   "Fan speed @ 100% PWM / 12V: 1500 RPM"
   [3] 
https://www.fractal-design.com/products/fans/silent/silent-series-r3-140mm/black/
   (Doesn't mention PWM.)

https://dataswamp.org/~incal/ebchw/COMPUTER

--
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
It took an even closer look at the motherboard and discovered
_all_ connectors are 4-pin. Inside the computer, 3/5 fans are
4-pin and the two on the CPU cooling tower (which are 4-pin,
so it checks out) even have "PWM" in their sticker text.

If the BIOS/UEFI setting is already PWM, and the connectors
are 4-pin, and some of the fans are, what's missing?

And this makes it is even more difficult to understand why
pwmconfig(8) asks for 3-pin fans. Because I have them -
as well!

fanfront low   be quiet! Shadow Wings 2  140 mm, 3-pin[1]
   front high  be quiet! Shadow Wings 2  140 mm, 4-pin
   CPU cooling tower   be quiet! Pure Wings 2120 mm, 4-pin (2)[2]
   rearCorsair   120 mm, 3-pin
   projector extra fractal Silent Series R3  140 mm, 3-pin[3]
   (motherboard fan connectors are:
CPU_FAN, CPU_OPT, SHA_FAN1, SHA_FAN2, SHA_FAN3 - all 4-pin)

   [1] https://www.bequiet.com/en/casefans/shadow-wings-2/1620
   "available with or without PWM control"
   [2] https://www.bequiet.com/en/casefans/449
   "Fan speed @ 100% PWM / 12V: 1500 RPM"
   [3] 
https://www.fractal-design.com/products/fans/silent/silent-series-r3-140mm/black/
   (Doesn't mention PWM.)

https://dataswamp.org/~incal/ebchw/COMPUTER

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 5:47 p.m., David Christensen wrote:
> On 8/22/21 2:26 PM, Emanuel Berg wrote:
>> didier gaumet wrote:
>>
>>> I would think that pwmconfig complains that it finds 3-pins
>>> fans set up to PWM mode (4-pins required)
>>>
>>> Your UEFI propose either to setup your fans globally or
>>> individually and I think that by default the setup is
>>> global. This would probably be fine il all your fans were
>>> either 3-pins (DC mode) or 4-pins (preferably PWM mode but
>>> DC mode is possibility). But you have both installed.
>>> A solution could be, in your UEFI, to individually set up
>>> all your 4-pins fans to PWM mode, while setting up all your
>>> 3-pins fans to DC mode.
>>
>> Yeah, or replace the 3-pins with 4-pins?
> 
> 
> I believe your motherboard can support both 3-pin and 4-pin fans using
> hardware/ firmware/ Setup.
> 
> 
>> re: pwmconfig, here is what it says:
>>
>> $ sudo pwmconfig
>> # pwmconfig version 3.6.0
>> This program will search your sensors for pulse width
>> modulation (pwm) controls, and test each one to see if it
>> controls a fan on your motherboard. Note that many
>> motherboards do not have pwm circuitry installed, even if your
>> sensor chip supports pwm.
>>
>> We will attempt to briefly stop each fan using the pwm
>> controls. The program will attempt to restore each fan to full
>> speed after testing. However, it is ** very important ** that
>> you physically verify that the fans have been to full speed
>> after the program has completed.
>>
>> Found the following devices:
>>     hwmon0 is k10temp
>>     hwmon1 is asus
>>     hwmon2 is nouveau
>>
>> Found the following PWM controls:
>>     hwmon2/pwm1   current value: 52
>> hwmon2/pwm1 is currently setup for automatic speed control.
>> In general, automatic mode is preferred over manual mode, as
>> it is more efficient and it reacts faster. Are you sure that
>> you want to setup this output for manual control? (n) y
>>
>> Giving the fans some time to reach full speed...
>> Found the following fan sensors:
>>     hwmon1/fan1_input current speed: 0 ... skipping!
>>
>> There are no working fan sensors, all readings are 0.
>> Make sure you have a 3-wire fan connected.
>> You may also need to increase the fan divisors.
>> See doc/fan-divisors for more information.
> 
> 
> I consider motherboard hardware/ firmware control of fans to be more
> reliable than operating system control of fans.  Using a Linux tool to
> control the fans involves several layers of complexity and, given
> closed-source motherboard hardware and firmware, the only route is
> reverse engineering; which is error-prone at best.  And, you paid for a
> motherboard that has advanced fan control features.  I would advise
> using the motherboard hardware/ firmware/ Setup utility to control your
> fans.
> 
Somewhat what I advocated since the beginning.

Seems to be much work with risks involved when there's already a working
infrastructure that does the job.

Overkill
> 
> Can you control the speed of any of the fans using Setup?
> 
> 
> David
> 

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Gene Heskett
On Sunday 22 August 2021 17:04:06 Gene Heskett wrote:

> On Sunday 22 August 2021 12:46:14 Polyna-Maude Racicot-Summerside 
wrote:
> > On 2021-08-22 10:02 a.m., Emanuel Berg wrote:
> > > tomas wrote:
> > >> I disagree. The thing poses [1] as a DC motor (2 pins power,
> > >> one tacho). I don't think you get too much control over RPM
> > >
> > > That's what you get with the 4th wire/pin? A sensor to
> > > read RPM?
> >
> > Opposite
> > 3 wire = 2 wire to drive motor + 1 wire to get speed
> > 4 wire = 2 wire to drive, 1 to get speed, 1 to modify speed
>
> I as a CET, am totally unimpressed with the miss-information being
> thrown about in this thread. A total lack of how its actually done in
> real hardware.
>
> 1. Any si diode, passing a few microamps of fwd current, is in fact an
> excellent, does not need to be calibrated, thermometer capable of 1
> degree C accuracy.  There are several million candidates buried in
> todays cpu's.
>
> 2, even a 2 wire fan can be controlled by using this voltage to
> determine the on time of a small transistor. Often down to 1% speed at
> room tmps, so other than the cost of the time at die bondout time, its
> free. The 1% minimum is actually used to help distribute the motors
> lubricant.
>
> 3, boiled down, the temp measured by this diode can be scaled to
> control the fan to maintain the device being monitored at a fixed
> maximum temp, and its done on 2 or 3 of the gates on the cpu die
> intended to be used to replace a bad gate in you cpu. Intelligently
> done at test and bondout time, it might add 10 seconds to the time
> needed to verify the rest of the chip.
>
> > > "What you can't measure, you can't control"
>
> Better, if you can measure it, you can control a 2 wite motor.
>
And I knew I couldn't get by without a typu. s/b wire.
In fact, if a motor has 3 wires, there is a good chance its a tacho wire, 
used ONLY to tell /you/ how fast its running.

> Cheers, Gene Heskett


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: smart fans

2021-08-22 Thread David Christensen

On 8/22/21 2:40 PM, Emanuel Berg wrote:

David Christensen wrote:


Some of my other machines offer additional governors --
"powersave" and "userspace". Run "cpufreq-info -g" to see
what Debian offers on your motherboard.


I did install and did set it to different governors but the
fans seem to go on like the always do regardless?

CPU and GPU temperatures seemed to be the same as well...



I would figure out what Setup can do with the fans before messing with 
the Linux CPU governor.  Install software to display temperatures, to 
display fan speeds, and to put the CPU under load.  Get a camera, a 
notepad, a stopwatch, and collect data as you work through configuring 
the fans in Setup.



David



Re: smart fans

2021-08-22 Thread David Christensen

On 8/22/21 2:26 PM, Emanuel Berg wrote:

didier gaumet wrote:


I would think that pwmconfig complains that it finds 3-pins
fans set up to PWM mode (4-pins required)

Your UEFI propose either to setup your fans globally or
individually and I think that by default the setup is
global. This would probably be fine il all your fans were
either 3-pins (DC mode) or 4-pins (preferably PWM mode but
DC mode is possibility). But you have both installed.
A solution could be, in your UEFI, to individually set up
all your 4-pins fans to PWM mode, while setting up all your
3-pins fans to DC mode.


Yeah, or replace the 3-pins with 4-pins?



I believe your motherboard can support both 3-pin and 4-pin fans using 
hardware/ firmware/ Setup.




re: pwmconfig, here is what it says:

$ sudo pwmconfig
# pwmconfig version 3.6.0
This program will search your sensors for pulse width
modulation (pwm) controls, and test each one to see if it
controls a fan on your motherboard. Note that many
motherboards do not have pwm circuitry installed, even if your
sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm
controls. The program will attempt to restore each fan to full
speed after testing. However, it is ** very important ** that
you physically verify that the fans have been to full speed
after the program has completed.

Found the following devices:
hwmon0 is k10temp
hwmon1 is asus
hwmon2 is nouveau

Found the following PWM controls:
hwmon2/pwm1   current value: 52
hwmon2/pwm1 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n) y

Giving the fans some time to reach full speed...
Found the following fan sensors:
hwmon1/fan1_input current speed: 0 ... skipping!

There are no working fan sensors, all readings are 0.
Make sure you have a 3-wire fan connected.
You may also need to increase the fan divisors.
See doc/fan-divisors for more information.



I consider motherboard hardware/ firmware control of fans to be more 
reliable than operating system control of fans.  Using a Linux tool to 
control the fans involves several layers of complexity and, given 
closed-source motherboard hardware and firmware, the only route is 
reverse engineering; which is error-prone at best.  And, you paid for a 
motherboard that has advanced fan control features.  I would advise 
using the motherboard hardware/ firmware/ Setup utility to control your 
fans.



Can you control the speed of any of the fans using Setup?


David



Re: smart fans

2021-08-22 Thread didier gaumet



Le dimanche 22 août 2021 à 21:59 +0200, Emanuel Berg a écrit :
> It took an even closer look at the motherboard and discovered
> _all_ connectors are 4-pin. Inside the computer, 3/5 fans are
> 4-pin and the two on the CPU cooling tower (which are 4-pin,
> so it checks out) even have "PWM" in their sticker text.
> 
> If the BIOS/UEFI setting is already PWM, and the connectors
> are 4-pin, and some of the fans are, what's missing?
> 
> And this makes it is even more difficult to understand why
> pwmconfig(8) asks for 3-pin fans. Because I have them -
> as well!
> 
> fan    front low   be quiet! Shadow Wings 2  140 mm, 3-
> pin    [1]
>    front high  be quiet! Shadow Wings 2  140 mm, 4-pin
>    CPU cooling tower   be quiet! Pure Wings 2    120 mm, 4-pin
> (2)    [2]
>    rear    Corsair   120 mm, 3-pin
>    projector extra fractal Silent Series R3  140 mm, 3-
> pin    [3]
>    (motherboard fan connectors are:
>     CPU_FAN, CPU_OPT, SHA_FAN1, SHA_FAN2, SHA_FAN3 - all 4-pin)
[...]

I would think that pwmconfig complains that it finds 3-pins fans set up
to PWM mode (4-pins required)

Your UEFI propose either to setup your fans globally or individually
and I think that by default the setup is global. This would probably be
fine il all your fans were either 3-pins (DC mode) or 4-pins
(preferably PWM mode but DC mode is possibility). But you have both
installed. A solution could be, in your UEFI, to individually set up
all your 4-pins fans to PWM mode, while setting up all your 3-pins fans
to DC mode.




Re: smart fans

2021-08-22 Thread Gene Heskett
On Sunday 22 August 2021 12:46:14 Polyna-Maude Racicot-Summerside wrote:

> On 2021-08-22 10:02 a.m., Emanuel Berg wrote:
> > tomas wrote:
> >> I disagree. The thing poses [1] as a DC motor (2 pins power,
> >> one tacho). I don't think you get too much control over RPM
> >
> > That's what you get with the 4th wire/pin? A sensor to
> > read RPM?
>
> Opposite
> 3 wire = 2 wire to drive motor + 1 wire to get speed
> 4 wire = 2 wire to drive, 1 to get speed, 1 to modify speed
>
I as a CET, am totally unimpressed with the miss-information being thrown 
about in this thread. A total lack of how its actually done in real 
hardware.

1. Any si diode, passing a few microamps of fwd current, is in fact an 
excellent, does not need to be calibrated, thermometer capable of 1 
degree C accuracy.  There are several million candidates buried in 
todays cpu's.

2, even a 2 wire fan can be controlled by using this voltage to determine 
the on time of a small transistor. Often down to 1% speed at room tmps, 
so other than the cost of the time at die bondout time, its free. The 1% 
minimum is actually used to help distribute the motors lubricant.

3, boiled down, the temp measured by this diode can be scaled to control 
the fan to maintain the device being monitored at a fixed maximum temp, 
and its done on 2 or 3 of the gates on the cpu die intended to be used 
to replace a bad gate in you cpu. Intelligently done at test and bondout 
time, it might add 10 seconds to the time needed to verify the rest of 
the chip. 

> > "What you can't measure, you can't control"

Better, if you can measure it, you can control a 2 wite motor.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: smart fans

2021-08-22 Thread David Christensen

On 8/22/21 1:15 PM, Emanuel Berg wrote:


fanfront low  be quiet! Shadow Wings 2  140 mm 3-pin[1]
front high be quiet! Shadow Wings 2  140 mm 4-pin
CPU cooling tower  be quiet! Pure Wings 2120 mm 4-pin (2)[2]
rear   Corsair   120 mm 3-pin
projector extrafractal Silent Series R3  140 mm 3-pin[3]

The motherboard fan connectors are:
  CPU_FAN  - CPU cooling tower;
  CPU_OPT  - CPU colling tower;
  CHA_FAN1 - fan wire splitter - 3 wires - rear,
   - 2 wires - projector extra;
  CHA_FAN2 - front high;
  CHA_FAN3 - front low.
All connectors are 4-pin. "Projector extra" is a fan
located outside the computer.



I would disconnect the fan wire splitter, disconnect projector extra 
fan, and connect the Corsair fan directly to CHA_FAN1:


CPU_FAN- CPU cooling tower - be quiet! Pure Wings 2, 120 mm, 4-pin

CPU_OPT - CPU cooling tower - be quiet! Pure Wings 2, 120 mm, 4-pin

CHA_FAN1 - location? - Corsair, 120 mm 3-pin

CHA_FAN2 - front high - be quiet! Shadow Wings 2, 140 mm, 4-pin

CHA_FAN3 - front low - be quiet! Shadow Wings 2, 140 mm, 3-pin


It is unwise to power external devices from a computer motherboard.  I 
would get a 12 VDC power adapter with suitable ampere rating for the 
projector extra fan.



David



Re: smart fans

2021-08-22 Thread David Christensen

On 8/22/21 6:41 AM, to...@tuxteam.de wrote:

On Sun, Aug 22, 2021 at 09:03:51AM -0400, Polyna-Maude Racicot-Summerside wrote:

[...]


Like I already wrote, modifying voltage doesn't change speed of a motor
(fan).


I disagree. The thing poses [1] as a DC motor (2 pins power, one tacho).



[1] I'm nearly certain it's a BLDC in disguise, with some electronic goo.



What is "BLDC"?


On 8/22/21 7:25 AM, Thomas Schmitt wrote:
> A quick search with "fan voltage control" yields
> 
https://en.wikipedia.org/wiki/Computer_fan_control#Linear_voltage_regulation



Thank you -- that has the EE information I have been wanting.


David



Re: smart fans

2021-08-22 Thread David Christensen

On 8/22/21 1:39 AM, Emanuel Berg wrote:

4-pin fans wouldn't be possible because of the motherboard
sockets, I think, which are also 3-pin.



The motherboard user's manual says all of the fan connectors are 4-pin.


On 8/22/21 6:03 AM, Polyna-Maude Racicot-Summerside wrote:
> Like I already wrote, modifying voltage doesn't change speed of a motor
> (fan).


STFW here are some useful wiring diagrams for x86 ATX PC computer power 
supplies and fans:


https://www.smpspowersupply.com/connectors-pinouts.html

https://landing.coolermaster.com/faq/3-pin-and-4-pin-fan-wire-diagrams/


Changing the supply voltage of a old-school 2-wire fan will change the 
speed.  These typically have 4-pin power supply Molex connectors and/or 
2-pin 0.1" general electronics connectors.   I connect these to Molex 
connectors or manual speed controllers, paying attention to alignment/ 
polarity.



Changing the supply voltage of a 3-pin fan, where the 3rd wire is 
tachometer feedback, will change the speed.  I connect these to 
motherboard 3-pin and 4-pin fan connectors, paying attention to the 
alignment tab.



Changing the supply voltage of a 4-pin fan, where the 3rd wire is 
tachometer feedback and the 4th wire is PWM speed control, may change 
the fan speed, may cause the electronics onboard the fan assembly to 
malfunction or fail, and/or may cause the electronics feeding the fan to 
malfunction or fail.  I connect these to motherboard 4-pin fan 
connectors, paying attention to the alignment tab.



Be careful when making connections.  I once mis-aligned a 2.5" IDE HDD 
40-pin power/signal adapter cable to a 2.5" IDE HDD and was off by one 
row.  When I energized the power supply, the result was a short-circuit, 
smoked insulation, and permanently damaged hardware!



David



Re: smart fans

2021-08-22 Thread Emanuel Berg
OK, I was wrong, I just checked the motherboard with
a flashlight and there are fan connectors with 4 pins! I also
checked my sock drawer and - holy socks! - I found a computer
fan from AMD, it comes with a cooling tower as well so I think
it's for the CPU, anyway it has a 4-wire! So I'll just connect
it (someplace else) and see what happens. No wonder the
BIOS/UEFI had PWM and not DC the default. Let's see what
pwmconfig says now... 1s

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread David Christensen

On 8/22/21 12:56 AM, Emanuel Berg wrote:

David Christensen wrote:


If you throttle your CPU, it will not generate as much heat:

 https://wiki.debian.org/CpuFrequencyScaling


You mean permanently or when I'm not using the computer?



Install the Debian package 'cpufrequtils'.


Use cpufreq-info(1) to get information about CPU frequency settings, 
including the governor.  Use cpufreq-set(1) to make changes.



For example, here is my daily driver laptop.  Debian offers two governor 
settings, "powersave" and "performance".  It booted up with the 
"powersave" governor.  If I were playing games, crunching numbers, etc., 
I could change the governor to "performance":


2021-08-22 11:40:22 root@dipsy ~
# cpufreq-info -g
performance powersave

2021-08-22 11:42:37 root@dipsy ~
# cpufreq-info -p
80 330 powersave

2021-08-22 11:42:44 root@dipsy ~
# cpufreq-info -f
825551

2021-08-22 11:44:50 root@dipsy ~
# cpufreq-set -g performance

2021-08-22 11:46:14 root@dipsy ~
# cpufreq-info -p
80 330 performance

2021-08-22 11:46:23 root@dipsy ~
# cpufreq-info -f
2539034


When I'm done, I can change the governor to "powersave":

2021-08-22 11:46:59 root@dipsy ~
# cpufreq-set -g powersave


Some of my other machines offer additional governors -- "powersave" and 
"userspace".  Run "cpufreq-info -g" to see what Debian offers on your 
motherboard.




Some motherboards have temperature sensors


The GPU seems to be always 41C while the CPU shows a cycle of
some 34-47C.


fan connectors (e.g. 4-pin)


Fan connectors are 3-pin!



The motherboard is Asus ROG Strix B450-F Gaming.



The user's manual:

https://dlcdnets.asus.com/pub/ASUS/mb/SocketAM4/ROG_STRIX_B450_F_GAMING/E14401_ROG_STRIX_B450-F_GAMING_UM_WEB.pdf


The table "specifications summary", "Internal I/O Ports" on page xii says:

1 x 4-Pin CPU fan connector
1 x 4-Pin CPU_OPT fan connector
1 x 4-Pin AIO_PUMP connector
3 x 4-Pin Chassis fan connectors


See section 3.2.3 "QFan Control" for how to use the Setup utility to 
control fan speeds.




Fans are:

fanfront low   be quiet! Shadow Wings 2  140 mm
front high  be quiet! Shadow Wings 2  140 mm
CPU cooling tower   be quiet! Pure Wings 2120 mm  (2)
rearCorsair   120 mm
projector extra fractal Silent Series R3  140 mm



What is "projector extra"?


The "be quiet!" fans appear to be made in 3-pin and 4-pin versions.  We 
need a model number to check the Corsair fan.  The "fractal Silent 
Series R3" appears to have 3 pins:


https://www.bequiet.com/en/casefans/1625

https://www.bequiet.com/en/casefans/pure-wings-2/783

https://www.fractal-design.com/wp-content/uploads/2019/06/Silent-Series-R3-Fans-Product-Sheet-0.23-MB.pdf


You will want to identify which fan is connected to which motherboard 
connector.  See user's manual section 1.1.2 "Motherboard layout". 
Document connections using the motherboard connector names.



The Setup QFan Control should be able to control the speed of either 
3-pin or 4-pin fans.  I would try "DC Mode" for 3-pin fans and "PWM 
Mode" for 4-pin fans.




firmware settings


Where are these? The BIOS/UEFI?



See section 3.2 "BIOS setup program" of the user's manual.


David



Re: smart fans

2021-08-22 Thread Emanuel Berg
rhkramer wrote:

> +1. A voltage controlled DC (computer fan) motor can be
> controlled / regulated down to about 40% of full rated speed
> (depending on the motor). A PWM (computer fan) motor can be
> controlled down to about 20% of full rated speed.

I found some web pages that describe the individual fans.

fanfront low   be quiet! Shadow Wings 2  140 mm   [1]
   front high  be quiet! Shadow Wings 2  140 mm
   CPU cooling tower   be quiet! Pure Wings 2120 mm  (2)  [2]
   rearCorsair   120 mm
   projector extra fractal Silent Series R3  140 mm   [3]
   (connectors are 3-pin)

   [1] https://www.bequiet.com/en/casefans/shadow-wings-2/1620
   "available with or without PWM control"
   [2] https://www.bequiet.com/en/casefans/449
   "Fan speed @ 100% PWM / 12V: 1500 RPM"
   [3] 
https://www.fractal-design.com/products/fans/silent/silent-series-r3-140mm/black/
   (Doesn't mention PWM.)

https://dataswamp.org/~incal/ebchw/COMPUTER

-- 
underground experts united
https://dataswamp.org/~incal



Re: FOSS "BIOS" (UEFI) (was: Re: smart fans)

2021-08-22 Thread Emanuel Berg
Polyna-Maude Racicot-Summerside wrote:

> Google "Coreboot supported motherboard" ?
>
> And going to see this page as the first choice
>
> https://coreboot.org/status/board-status.html

Great, so was it on the list?

It wasn't, right?

Bummer...

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
The Wanderer wrote:

>>> See *doc/fan-divisors* for more information.
>> 
>> Yeah, but is that supposed to be a path? Or button?
>> What does it mean?
>
> It's clearly a reference to a path in the source, or native
> non-Debian-packaged build, tree of some relevant package.

OK, didn't know this notation/convention ... yes, I have it.

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
tomas wrote:

> I disagree. The thing poses [1] as a DC motor (2 pins power,
> one tacho). I don't think you get too much control over RPM

That's what you get with the 4th wire/pin? A sensor to
read RPM?

"What you can't measure, you can't control"

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
Polyna-Maude Racicot-Summerside wrote:

>> Or what's this about fan-divisors?
>> 
>>   You may also need to increase the fan divisors.
>>   See doc/fan-divisors for more information.
>> 
> See *doc/fan-divisors* for more information.

Yeah, but is that supposed to be a path? Or button? What does
it mean?

> Maybe going out and reading this one ?

Not impossible.

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 12:43 p.m., Polyna-Maude Racicot-Summerside wrote:
> 
> 
> On 2021-08-22 9:41 a.m., to...@tuxteam.de wrote:
>> On Sun, Aug 22, 2021 at 09:03:51AM -0400, Polyna-Maude Racicot-Summerside 
>> wrote:
>>
>> [...]
>>
>>> Like I already wrote, modifying voltage doesn't change speed of a motor
>>> (fan).
>>
>> I disagree. The thing poses [1] as a DC motor (2 pins power, one tacho).
>> I don't think you get too much control over RPM, but putting the tacho
>> in the control loop should be possible.
>>
>> I have no idea what the motherboard/fan manufacturers actually do, though.
> Yes it is possible to modify speed of a motor by varying DC voltage. But
> this is not the case in the present situation.

I mean without resorting to adding extra hardware.

And personally I find it a bit crazy to add stuff so you can cut off
your fans without ensuring that they can also be started if temperature
rise in *autonomous* way.

I missed part of the conversation and we are now getting into a DIY
project with switches, resistor and more. In some way, developing some
way to cut the safety net.
>>
>> Cheers
>>
>> [1] I'm nearly certain it's a BLDC in disguise, with some electronic goo.
>>
>>  - t
>>
> 

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: FOSS "BIOS" (UEFI) (was: Re: smart fans)

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 10:04 a.m., Emanuel Berg wrote:
> Polyna-Maude Racicot-Summerside wrote:
> 
>> Google "Coreboot supported motherboard" ?
>>
>> And going to see this page as the first choice
>>
>> https://coreboot.org/status/board-status.html
> 
> Great, so was it on the list?
I don't know ! Why don't you take a look yourself ?

I'm ready to help you build whatever you want. But this does not mean
that I'll be doing all the job myself.
> 
> It wasn't, right?
> 
> Bummer...
> 

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 10:02 a.m., Emanuel Berg wrote:
> tomas wrote:
> 
>> I disagree. The thing poses [1] as a DC motor (2 pins power,
>> one tacho). I don't think you get too much control over RPM
> 
> That's what you get with the 4th wire/pin? A sensor to
> read RPM?
> 
Opposite
3 wire = 2 wire to drive motor + 1 wire to get speed
4 wire = 2 wire to drive, 1 to get speed, 1 to modify speed

> "What you can't measure, you can't control"
> 

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 10:00 a.m., Emanuel Berg wrote:
> Polyna-Maude Racicot-Summerside wrote:
> 
>>> Or what's this about fan-divisors?
>>>
>>>   You may also need to increase the fan divisors.
>>>   See doc/fan-divisors for more information.
>>>
>> See *doc/fan-divisors* for more information.
> 
> Yeah, but is that supposed to be a path? Or button? What does
> it mean?
It means to go read in /usr/share/doc/[name of the package]/

Debian copies the doc folder into /usr/share/doc/[package name]
> 
>> Maybe going out and reading this one ?
> 
> Not impossible.
> 

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 9:41 a.m., to...@tuxteam.de wrote:
> On Sun, Aug 22, 2021 at 09:03:51AM -0400, Polyna-Maude Racicot-Summerside 
> wrote:
> 
> [...]
> 
>> Like I already wrote, modifying voltage doesn't change speed of a motor
>> (fan).
> 
> I disagree. The thing poses [1] as a DC motor (2 pins power, one tacho).
> I don't think you get too much control over RPM, but putting the tacho
> in the control loop should be possible.
> 
> I have no idea what the motherboard/fan manufacturers actually do, though.
Yes it is possible to modify speed of a motor by varying DC voltage. But
this is not the case in the present situation.
> 
> Cheers
> 
> [1] I'm nearly certain it's a BLDC in disguise, with some electronic goo.
> 
>  - t
> 

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Hans
Am Sonntag, 22. August 2021, 09:42:20 CEST schrieb Emanuel Berg:
Just a little hint: On my EEEPC for example, pwmconfig and fancontrol did not 
work, as it is loading the wrong module.

This can be fixed with a kernel param, that let load another kernel module, 
which is supporting pwmconfig and fancontrol.

Just a little info, but I believe, all modern cpus are now using the same 
kernel module, maybe just my old EEEPC does not.

However, I just wanted to mention this thing.

Happy hacking

Hans

> tomas wrote:
> > Start here [1]. Enjoy.
> > 
> > [1] https://wiki.archlinux.org/title/Fan_speed_control
> 
> Yes, but ...
> 
> $ sudo pwmconfig
> # pwmconfig version 3.6.0
> This program will search your sensors for pulse width
> modulation (pwm) controls, and test each one to see if it
> controls a fan on your motherboard. Note that many
> motherboards do not have pwm circuitry installed, even if your
> sensor chip supports pwm.
> 

signature.asc
Description: This is a digitally signed message part.


Re: smart fans

2021-08-22 Thread tomas
On Sun, Aug 22, 2021 at 04:02:48PM +0200, Emanuel Berg wrote:
> tomas wrote:
> 
> > I disagree. The thing poses [1] as a DC motor (2 pins power,
> > one tacho). I don't think you get too much control over RPM
> 
> That's what you get with the 4th wire/pin? A sensor to
> read RPM?

Re-read the Wikipedia I quoted: according to that, that's the
third pin of the three-pin thingie (aka tacho, like bikes have :)
The *fourth* pin is PWM, i.e. speed control.

Debate's up whether you can control a three-pin fan by regulating
its DC voltage (the motherboard/chipset would have to provide
that, of course). Some of us say it can be done, rhkramer says
it has (at least) been done.

> "What you can't measure, you can't control"

...it rather controls you ;-)

I think the tacho originally was important to have a "live signal",
in the times fans were more unreliable. If it gets stuck because
the bushing went bad, software can take action before the CPU goes
in flames. These days things fail more gracefully at several levels.

Cheers
 - t


signature.asc
Description: Digital signature


Re: smart fans

2021-08-22 Thread Thomas Schmitt
Hi,

Polyna-Maude Racicot-Summerside wrote:
> > Like I already wrote, modifying voltage doesn't change speed of a motor
> > (fan).

to...@tuxteam.de wrote:
> I disagree. [...]
> I have no idea what the motherboard/fan manufacturers actually do, though.

Voltage reduction is a tradional method to curb overly eager DC fans. I have
seen successful use of resistor adapters between fan cable and mainboard.

A quick search with "fan voltage control" yields
  https://en.wikipedia.org/wiki/Computer_fan_control#Linear_voltage_regulation
and others which state that 2-pin and 3-pin are only controllable via
voltage reduction whereas 4-pin indicate the capability for the competing
method of Pulse-Width Modulation (PWM).

Resistors can be seen at
  https://www.amazon.com/computer-fan-resistor/s?k=computer+fan+resistor


rhkra...@gmail.com wrote meanwhile:
> A voltage controlled DC (computer fan) motor can be controlled /
> regulated down to about 40% of full rated speed (depending on the motor).

That's what i read in the web and what i witnessed as effect of resistors on
dumb fans.


Have a nice day :)

Thomas



Re: smart fans

2021-08-22 Thread The Wanderer
On 2021-08-22 at 10:00, Emanuel Berg wrote:

> Polyna-Maude Racicot-Summerside wrote:
> 
>>> Or what's this about fan-divisors?
>>> 
>>>   You may also need to increase the fan divisors.
>>>   See doc/fan-divisors for more information.
>>> 
>> See *doc/fan-divisors* for more information.
> 
> Yeah, but is that supposed to be a path? Or button? What does
> it mean?

It's clearly a reference to a path in the source, or native
non-Debian-packaged build, tree of some relevant package.

With that as the basis:

$ dlocate fan-divisors
lm-sensors: /usr/share/doc/lm-sensors/fan-divisors.gz

So apparently this is part of lm-sensors, and in order to adhere to the
Debian-packaging filesystem layout, the packagers move its doc/
directory to be /usr/share/doc/lm-sensors/.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread rhkramer
On Sunday, August 22, 2021 09:41:59 AM to...@tuxteam.de wrote:
> On Sun, Aug 22, 2021 at 09:03:51AM -0400, Polyna-Maude Racicot-Summerside
> > Like I already wrote, modifying voltage doesn't change speed of a motor
> > (fan).
> 
> I disagree. The thing poses [1] as a DC motor (2 pins power, one tacho).
> I don't think you get too much control over RPM, but putting the tacho
> in the control loop should be possible.

+1.  A voltage controlled DC (computer fan) motor can be controlled / 
regulated down to about 40% of full rated speed (depending on the motor).  A 
PWM (computer fan) motor can be controlled down to about 20% of full rated 
speed.

> I have no idea what the motherboard/fan manufacturers actually do, though.

I know that at least some motherboards (perhaps only older ones?) controlled 
fan speed via voltage control.

> [1] I'm nearly certain it's a BLDC in disguise, with some electronic goo.



Re: smart fans

2021-08-22 Thread Emanuel Berg
didier gaumet wrote:

>> Okay, but is that even possible?
>
> Yes. If you want more details, read the previous link to an
> explanation of differences between 3 and 4 pins connectors:
> there are pictures to illustrate different possible
> combinations between 3 or 4 pins fan connectors and 3 or 4
> pins motherboard connectors
>
>> How? In the UEFI?
>
> Yes, refer to the 3.2.3 section of your manual

OK, king. Or roi maybe...

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread tomas
On Sun, Aug 22, 2021 at 09:03:51AM -0400, Polyna-Maude Racicot-Summerside wrote:

[...]

> Like I already wrote, modifying voltage doesn't change speed of a motor
> (fan).

I disagree. The thing poses [1] as a DC motor (2 pins power, one tacho).
I don't think you get too much control over RPM, but putting the tacho
in the control loop should be possible.

I have no idea what the motherboard/fan manufacturers actually do, though.

Cheers

[1] I'm nearly certain it's a BLDC in disguise, with some electronic goo.

 - t


signature.asc
Description: Digital signature


Re: smart fans

2021-08-22 Thread Emanuel Berg
didier gaumet wrote:

> Here is your motherboard user manual [...]
> https://rog.asus.com/us/motherboards/rog-strix/rog-strix-b450-f-gaming-model/helpdesk_manual
> Look at 3.2.3 section for fan control

OK!

> I could be entirely wrong but what I would imagine is that
> fan control is by default managed directly by the UEFI of
> your motherboard, not by the OS.

Yes.

> But that to be really efficient il would require 4-pins fans
> to have been mounted.

Okay, but is that even possible?

> For 3-pins fans in your situation, I would suggest trying to
> delegate fan management from the UEFI to the OS (Linux) by
> (possibly setting the fan profile to "manual") and the mode
> from "PWM" to "DC"

How? In the UEFI?

-- 
underground experts united
https://dataswamp.org/~incal



Re: FOSS "BIOS" (UEFI) (was: Re: smart fans)

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 2:28 a.m., Emanuel Berg wrote:
> Reco wrote:
> 
>>> This made me think, is there a FOSS "BIOS" (UEFI) that you
>>> can install/flash to replace the manufacturer's?
>>
>> Coreboot is what you're thinking of. Supported motherboard's
>> list is extremely limited though.
> 
> There is a grub-coreboot package, is that it?
> 
> And how do you know if its supported?
Google "Coreboot supported motherboard" ?

And going to see this page as the first choice

https://coreboot.org/status/board-status.html


> 
> I think I have a
> 
>   Asus ROG Strix B450-F Gaming
> 
> motherboard.
> 
> https://dataswamp.org/~incal/ebchw/COMPUTER
> 

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 5:49 a.m., Emanuel Berg wrote:
> didier gaumet wrote:
> 
>>> Okay, but is that even possible?
>>
>> Yes. If you want more details, read the previous link to an
>> explanation of differences between 3 and 4 pins connectors:
>> there are pictures to illustrate different possible
>> combinations between 3 or 4 pins fan connectors and 3 or 4
>> pins motherboard connectors
>>
>>> How? In the UEFI?
>>
>> Yes, refer to the 3.2.3 section of your manual
> 
> OK, king. Or roi maybe...
> 
??

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 5:27 a.m., Emanuel Berg wrote:
> didier gaumet wrote:
> 
>> Here is your motherboard user manual [...]
>> https://rog.asus.com/us/motherboards/rog-strix/rog-strix-b450-f-gaming-model/helpdesk_manual
>> Look at 3.2.3 section for fan control
> 
> OK!
> 
>> I could be entirely wrong but what I would imagine is that
>> fan control is by default managed directly by the UEFI of
>> your motherboard, not by the OS.
> 
> Yes.
> 
>> But that to be really efficient il would require 4-pins fans
>> to have been mounted.
> 
> Okay, but is that even possible?
What is possible ?
4 pins fans ?

Yes it is possible (4 wire fans) and you have received many links on the
subject.

I've sent you link and dider sent you the same ones.
> 
>> For 3-pins fans in your situation, I would suggest trying to
>> delegate fan management from the UEFI to the OS (Linux) by
>> (possibly setting the fan profile to "manual") and the mode
>> from "PWM" to "DC"
> 
> How? In the UEFI?
> 

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 4:39 a.m., Emanuel Berg wrote:
> Polyna-Maude Racicot-Summerside wrote:
> 
>> The significant difference in practice is that 4-pin fans
>> allow for RPM to change based on the need for cooling
>> temperature, this reduces noise and power consumption.
>> While 3-pin can control the voltage, but the voltage can't
>> turn to change the fan RPM at all and accurate as much as 4
>> pin fans.
> 
> OK, but since there are temperature readings from the GPU and
> the CPU _and_ 3-pin fans doesn't that mean it should be able
> to control (the voltage) them based on the temperature?
> 
Like I already wrote, modifying voltage doesn't change speed of a motor
(fan).
> 4-pin fans wouldn't be possible because of the motherboard
> sockets, I think, which are also 3-pin.
> 

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Polyna-Maude Racicot-Summerside


On 2021-08-22 4:36 a.m., Emanuel Berg wrote:
> Polyna-Maude Racicot-Summerside wrote:
> 
>> I think you got all the information at hand now.
> 
> pwmconfig fails but the error message doesn't add up.
> 
> Or what's this about fan-divisors?
> 
>   You may also need to increase the fan divisors.
>   See doc/fan-divisors for more information.
> 
See *doc/fan-divisors* for more information.

Maybe going out and reading this one ?
-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development



OpenPGP_signature
Description: OpenPGP digital signature


Re: smart fans

2021-08-22 Thread Emanuel Berg
Polyna-Maude Racicot-Summerside wrote:

> The significant difference in practice is that 4-pin fans
> allow for RPM to change based on the need for cooling
> temperature, this reduces noise and power consumption.
> While 3-pin can control the voltage, but the voltage can't
> turn to change the fan RPM at all and accurate as much as 4
> pin fans.

OK, but since there are temperature readings from the GPU and
the CPU _and_ 3-pin fans doesn't that mean it should be able
to control (the voltage) them based on the temperature?

4-pin fans wouldn't be possible because of the motherboard
sockets, I think, which are also 3-pin.

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
Polyna-Maude Racicot-Summerside wrote:

> You can only throttle it when you go into a close to stop.
> But this is really ineffective way of trying to control the
> speed. You'll be running at at most a hundred rpm.

But then why doesn't pwmconfig ask for 4-pin fans? It asks for
3-pin fans so while ineffective it's something people still
care to do.

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
Polyna-Maude Racicot-Summerside wrote:

> I think you got all the information at hand now.

pwmconfig fails but the error message doesn't add up.

Or what's this about fan-divisors?

  You may also need to increase the fan divisors.
  See doc/fan-divisors for more information.

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
tomas wrote:

> Whether three-pin fans can be even be RPM controlled is an
> open question (the DC feed could be modulated, I guess, but
> I don't know whether it is actually done).

But then wouldn't pwmconfig ask for something other than
3-pin, perhaps something I don't have?

-- 
underground experts united
https://dataswamp.org/~incal



Re: FOSS "BIOS" (UEFI) (was: Re: smart fans)

2021-08-22 Thread Emanuel Berg
BIOS seems to be:

$ sudo dmidecode -t bios
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.

Handle 0x, DMI type 0, 26 bytes
BIOS Information
Vendor: American Megatrends Inc.
Version: 2801
Release Date: 09/18/2019
Address: 0xF
Runtime Size: 64 kB
ROM Size: 16 MB
Characteristics:
PCI is supported
APM is supported
BIOS is upgradeable
BIOS shadowing is allowed
Boot from CD is supported
Selectable boot is supported
BIOS ROM is socketed
EDD is supported
5.25"/1.2 MB floppy services are supported (int 13h)
3.5"/720 kB floppy services are supported (int 13h)
3.5"/2.88 MB floppy services are supported (int 13h)
Print screen service is supported (int 5h)
8042 keyboard services are supported (int 9h)
Serial services are supported (int 14h)
Printer services are supported (int 17h)
ACPI is supported
USB legacy is supported
BIOS boot specification is supported
Targeted content distribution is supported
UEFI is supported
BIOS Revision: 5.13

Handle 0x0031, DMI type 13, 22 bytes
BIOS Language Information
Language Description Format: Long
Installable Languages: 9
en|US|iso8859-1
fr|FR|iso8859-1
zh|TW|unicode
ja|JP|unicode
de|DE|iso8859-1
es|ES|iso8859-1
ru|RU|iso8859-5
ko|KR|unicode

Currently Installed Language: en|US|iso8859-1

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
Polyna-Maude Racicot-Summerside wrote:

>>> This would be the first thing to clear. If your hardware
>>> doesn't play along... game over :-/
>> 
>> Yeah, but if so, why doesn't it?
>
> Why doesn't it? Because it is not implemented, because the
> builder of your motherboard made this choice...
>
> A two wire fan can't control the speed of the fan properly.
> It needs a three wire fan.

The fans have 3 wires.

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
tomas wrote:

>> There are no working fan sensors, all readings are 0.
>> Make sure you have a 3-wire fan connected.
>   ^^
> Well?

I'm sure!

> This would be the first thing to clear. If your hardware
> doesn't play along... game over :-/

Yeah, but if so, why doesn't it?

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
David Christensen wrote:

> If you throttle your CPU, it will not generate as much heat:
>
> https://wiki.debian.org/CpuFrequencyScaling

You mean permanently or when I'm not using the computer?

> Some motherboards have temperature sensors

The GPU seems to be always 41C while the CPU shows a cycle of
some 34-47C.

> fan connectors (e.g. 4-pin)

Fan connectors are 3-pin!

> that can control the fan speed(s) according to measured
> temperatures and firmware settings, provided that you have
> compatible fans. Check your hardware [...]

The motherboard is Asus ROG Strix B450-F Gaming.

Fans are:

fanfront low   be quiet! Shadow Wings 2  140 mm
   front high  be quiet! Shadow Wings 2  140 mm
   CPU cooling tower   be quiet! Pure Wings 2120 mm  (2)
   rearCorsair   120 mm
   projector extra fractal Silent Series R3  140 mm

> firmware settings

Where are these? The BIOS/UEFI?

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread Emanuel Berg
tomas wrote:

> Start here [1]. Enjoy.
>
> [1] https://wiki.archlinux.org/title/Fan_speed_control

Yes, but ...

$ sudo pwmconfig
# pwmconfig version 3.6.0
This program will search your sensors for pulse width
modulation (pwm) controls, and test each one to see if it
controls a fan on your motherboard. Note that many
motherboards do not have pwm circuitry installed, even if your
sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm
controls. The program will attempt to restore each fan to full
speed after testing. However, it is ** very important ** that
you physically verify that the fans have been to full speed
after the program has completed.

Found the following devices:
   hwmon0 is k10temp
   hwmon1 is asus
   hwmon2 is nouveau

Found the following PWM controls:
   hwmon2/pwm1   current value: 51

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon1/fan1_input current speed: 0 ... skipping!

There are no working fan sensors, all readings are 0.
Make sure you have a 3-wire fan connected.
You may also need to increase the fan divisors.
See doc/fan-divisors for more information.

-- 
underground experts united
https://dataswamp.org/~incal



Re: FOSS "BIOS" (UEFI) (was: Re: smart fans)

2021-08-22 Thread Emanuel Berg
Reco wrote:

>> This made me think, is there a FOSS "BIOS" (UEFI) that you
>> can install/flash to replace the manufacturer's?
>
> Coreboot is what you're thinking of. Supported motherboard's
> list is extremely limited though.

There is a grub-coreboot package, is that it?

And how do you know if its supported?

I think I have a

  Asus ROG Strix B450-F Gaming

motherboard.

https://dataswamp.org/~incal/ebchw/COMPUTER

-- 
underground experts united
https://dataswamp.org/~incal



Re: smart fans

2021-08-22 Thread didier gaumet



Le dimanche 22 août 2021 à 11:27 +0200, Emanuel Berg a écrit :
> 
> Okay, but is that even possible?

Yes. If you want more details, read the previous link to an explanation
of differences between 3 and 4 pins connectors: there are pictures to
illustrate different possible combinations between 3 or 4 pins fan
connectors and 3 or 4 pins motherboard connectors

> How? In the UEFI?

Yes, refer to the 3.2.3 section of your manual




FOSS "BIOS" (UEFI) (was: Re: smart fans)

2021-08-22 Thread Emanuel Berg
> There is fancontrol (pwdconfig(1)) but I don't get it to
> work ... The BIOS (UEFI) can maybe be used but I don't
> have/use a mouse and I dislike the UI ...
>
> $ sudo dmidecode [...]

This made me think, is there a FOSS "BIOS" (UEFI) that you can
install/flash to replace the manufacturer's?

-- 
underground experts united
https://dataswamp.org/~incal



  1   2   >