Jump to content

PI Fan Control work on Tinker Board?


Recommended Posts

Hi,

 

Before you start cooling, why not find out where the heat comes from?

Does it reduce frequency of the Processor if it is idle?

And if not, why not and how to change..

 

Which image do you use to run the board?

Link to comment
Share on other sites

Welcome to ARMBIAN 5.27 stable Ubuntu 16.04.2 LTS 4.4.64-rockchip 

 

The heat is coming from the processor, when I was installing and compiling packages on it the first night it was running 70 degress and when I run a stress test on all cores for 10 mins, I am getting 70 degrees, which may not be bad after watching these videos, where he getting 79 degrees

 

 

Or this one where she is getting low temps

 

 

I need a case and this kit looks good if it will work but I am unsure as not done anything ever with GPIO pins etc.

case kit

Link to comment
Share on other sites

Okay, so you were stressing the board more than on a  day-to-day basis.

And for the exception you want a fan.

 

If you look for the Banana Pi M2+ you can read about heat problems and how some of it can be fixed by sane CPU Frequency control and shutting down cores.

This then helps every owner of a Tinker Board ;)   well you need to read a bit until the end of: https://forum.armbian.com/index.php?/topic/971-quick-review-of-banana-pi-m2/

 

Link to comment
Share on other sites

2 hours ago, plasta-blaster said:

temp fan control

 

Don't use such hardware. 'Fan only' is a bad idea since a good heatsink is normally as efficient than just a fan. Also the smaller the fan the more annoying.

 

I'm a little bit confused since the heatsink that can be seen in Christopher's video seems to be the same as can be seen here: https://www.youtube.com/watch?v=YCJThx0OPds#t=2m49s

 

Does the Tinkerboard ship with an applied heatsink or not? If not I would call this the other serious flaw this board suffers from (the first is Micro USB for DC-IN which is just an insane choice on such a powerful board) 

 

Link to comment
Share on other sites

Thanks I will have a look at the Banana Pi M2+

 

The heatsink is a stick-on type, but I can keep the heatsink on and use the fan as well, just bought a header extender to clear the tall heat sink, I guess I just need to install the python gpio module and maybe change the code a bit.

 

This kit says it has a heat sink but the Asus one is good just tall hense the header extender and I will have to raise the pillar mounts somehow.

 

kit

 

I have a question about the clock speed, the chip is said to be 1.8GHz but mine is limited to 1.6.

 

$ more /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
1608000
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
126000 216000 408000 600000 696000 816000 1008000 1200000 1416000 1512000 1608000 

 

Do I have to change some file to get the stated max clock speed and obviously increased temps:-)

 

$ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: cpufreq-dt
  CPUs which run at the same hardware frequency: 0 1 2 3
  CPUs which need to have their frequency coordinated by software: 0 1 2 3
  maximum transition latency: 115 us.
  hardware limits: 126 MHz - 1.61 GHz
  available frequency steps: 126 MHz, 216 MHz, 408 MHz, 600 MHz, 696 MHz, 816 MHz, 1.01 GHz, 1.20 GHz, 1.42 GHz, 1.51 GHz, 1.61 GHz
  available cpufreq governors: interactive, conservative, ondemand, userspace, powersave, performance, sched
  current policy: frequency should be within 600 MHz and 1.61 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.61 GHz.
  cpufreq stats: 126 MHz:4.39%, 216 MHz:0.00%, 408 MHz:0.00%, 600 MHz:0.00%, 696 MHz:0.00%, 816 MHz:0.00%, 1.01 GHz:0.00%, 1.20 GHz:0.00%, 1.42 GHz:0.00%, 1.51 GHz:0.00%, 1.61 GHz:95.61%  (3)
 

 

 

 

Thanks!

Link to comment
Share on other sites

For those of you not already having the heatsink applied/mounted/whatever. What about helping in getting a clue how efficient this thing is?

 

You might want to install RPi-Monitor first, that's connecting the board to Ethernet/Internet and then 'sudo armbianmonitor -r'. Then we need cpuminer: 'sudo armbianmonitor -p', then we also need 7-zip: 'sudo apt install p7zip-full'. And then the test looks like this:

stress -c 4 -t 60 ; sysbench --test=cpu --cpu-max-prime=20000 run --num-threads=4 ; 7z b ; timeout 120 minerd --benchmark

This will take approximately 5 minutes. Please post the output via pastebin.com or other online pasteboard services. RPi-Monitor will monitor execution (for examples see here) and you can check graphs for both cpufreq and temperatures while running this stuff. After shutting down the board and mounting the heatsink the test as above should be repeated. And then new results together with screenshot covering both runs are welcomed.

Link to comment
Share on other sites

Oh, sorry, I forgot that Rockchip developers are special. Please use

sed -i 's|/sys/devices/virtual/thermal/thermal_zone0/temp|/etc/armbianmonitor/datasources/soctemp|' /etc/rpimonitor/template/temperature.conf
systemctl restart rpimonitor

 

Link to comment
Share on other sites

It was maxing out at 73 degrees C on the temp.

 

Can you help me get it running at max 1.8Ghz, I believe it related to the driver of the proc?

I tried changing all sorts of files but it wont budge from 1.6GHZ although I read that there are 2 types of procs and only the C version is 1.8GHZ ouch!

 

OUCH!

 

This test is with the Heat-sink on, I dont have any thermal tape to put it back but I will order some!

 

stress -c 4 -t 60 ; sysbench --test=cpu --cpu-max-prime=20000 run --num-threads=4 ; 7z b ; timeout 120 minerd --benchmark
stress: info: [2765] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd
stress: info: [2765] successful run completed in 60s
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 4

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000


Test execution summary:
    total time:                          74.7377s
    total number of events:              10000
    total time taken by event execution: 298.9201
    per-request statistics:
         min:                                 28.41ms
         avg:                                 29.89ms
         max:                                 87.31ms
         approx.  95 percentile:              32.35ms

Threads fairness:
    events (avg/stddev):           2500.0000/3.08
    execution time (avg/stddev):   74.7300/0.01


7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)

RAM size:    2011 MB,  # CPU hardware threads:   4
RAM usage:    850 MB,  # Benchmark threads:      4

Dict        Compressing          |        Decompressing
      Speed Usage    R/U Rating  |    Speed Usage    R/U Rating
       KB/s     %   MIPS   MIPS  |     KB/s     %   MIPS   MIPS

22:    2947   331    865   2866  |    70139   397   1592   6328
23:    2891   334    881   2946  |    65551   399   1502   5998
24:    2755   341    868   2963  |    58094   399   1350   5389
25:    2754   346    908   3144  |    64661   392   1551   6080
----------------------------------------------------------------
Avr:          338    880   2980               397   1499   5949
Tot:          368   1190   4464
[2017-05-05 17:03:32] 4 miner threads started, using 'scrypt' algorithm.
[2017-05-05 17:03:32] Binding thread 0 to cpu 0
[2017-05-05 17:03:32] Binding thread 2 to cpu 2
[2017-05-05 17:03:32] Binding thread 3 to cpu 3
[2017-05-05 17:03:32] Binding thread 1 to cpu 1
[2017-05-05 17:03:35] thread 2: 4098 hashes, 1.44 khash/s
[2017-05-05 17:03:35] thread 3: 4098 hashes, 1.44 khash/s
[2017-05-05 17:03:35] thread 0: 4098 hashes, 1.42 khash/s
[2017-05-05 17:03:35] thread 1: 4098 hashes, 1.41 khash/s
[2017-05-05 17:03:37] thread 3: 2880 hashes, 1.34 khash/s
[2017-05-05 17:03:37] Total: 5.61 khash/s
[2017-05-05 17:03:37] thread 0: 2844 hashes, 1.32 khash/s
[2017-05-05 17:03:37] thread 1: 2814 hashes, 1.32 khash/s
[2017-05-05 17:03:37] thread 2: 2880 hashes, 1.27 khash/s
[2017-05-05 17:03:43] thread 2: 6342 hashes, 1.15 khash/s
[2017-05-05 17:03:43] thread 3: 6720 hashes, 1.17 khash/s
[2017-05-05 17:03:43] Total: 4.96 khash/s
[2017-05-05 17:03:43] thread 0: 6612 hashes, 1.15 khash/s
[2017-05-05 17:03:43] thread 1: 6609 hashes, 1.15 khash/s
[2017-05-05 17:03:48] thread 2: 5757 hashes, 0.99 khash/s
[2017-05-05 17:03:48] thread 0: 5769 hashes, 1.01 khash/s
[2017-05-05 17:03:48] thread 1: 5736 hashes, 1.00 khash/s
[2017-05-05 17:03:49] thread 3: 5838 hashes, 0.98 khash/s
[2017-05-05 17:03:49] Total: 3.97 khash/s
[2017-05-05 17:03:52] thread 3: 3906 hashes, 1.11 khash/s
[2017-05-05 17:03:52] Total: 4.10 khash/s
[2017-05-05 17:03:53] thread 0: 5034 hashes, 1.13 khash/s
[2017-05-05 17:03:53] thread 2: 4938 hashes, 1.09 khash/s
[2017-05-05 17:03:53] thread 1: 4986 hashes, 1.12 khash/s
[2017-05-05 17:03:53] thread 3: 1113 hashes, 1.09 khash/s
[2017-05-05 17:03:53] Total: 4.44 khash/s
[2017-05-05 17:03:58] thread 2: 5451 hashes, 1.02 khash/s
[2017-05-05 17:03:58] thread 0: 5673 hashes, 1.03 khash/s
[2017-05-05 17:03:58] thread 3: 5472 hashes, 1.04 khash/s
[2017-05-05 17:03:58] Total: 4.21 khash/s
[2017-05-05 17:03:59] thread 1: 5589 hashes, 1.00 khash/s
[2017-05-05 17:04:02] thread 1: 4005 hashes, 1.08 khash/s
[2017-05-05 17:04:03] thread 2: 5124 hashes, 1.11 khash/s
[2017-05-05 17:04:03] thread 0: 5145 hashes, 1.12 khash/s
[2017-05-05 17:04:03] thread 3: 5181 hashes, 1.12 khash/s
[2017-05-05 17:04:03] Total: 4.43 khash/s
[2017-05-05 17:04:03] thread 1: 1080 hashes, 1.08 khash/s
[2017-05-05 17:04:08] thread 2: 5565 hashes, 1.13 khash/s
[2017-05-05 17:04:08] thread 0: 5607 hashes, 1.13 khash/s
[2017-05-05 17:04:08] thread 3: 5577 hashes, 1.12 khash/s
[2017-05-05 17:04:08] Total: 4.46 khash/s
[2017-05-05 17:04:08] thread 1: 5394 hashes, 1.10 khash/s
[2017-05-05 17:04:13] thread 2: 5649 hashes, 1.11 khash/s
[2017-05-05 17:04:13] thread 0: 5652 hashes, 1.14 khash/s
[2017-05-05 17:04:13] thread 1: 5502 hashes, 1.14 khash/s
[2017-05-05 17:04:13] thread 3: 5616 hashes, 1.15 khash/s
[2017-05-05 17:04:13] Total: 4.54 khash/s
[2017-05-05 17:04:18] thread 2: 5535 hashes, 1.11 khash/s
[2017-05-05 17:04:18] thread 0: 5694 hashes, 1.14 khash/s
[2017-05-05 17:04:18] thread 1: 5712 hashes, 1.12 khash/s
[2017-05-05 17:04:18] thread 3: 5748 hashes, 1.13 khash/s
[2017-05-05 17:04:18] Total: 4.50 khash/s
[2017-05-05 17:04:23] thread 2: 5544 hashes, 1.07 khash/s
[2017-05-05 17:04:23] thread 0: 5682 hashes, 1.09 khash/s
[2017-05-05 17:04:23] thread 1: 5622 hashes, 1.10 khash/s
[2017-05-05 17:04:23] thread 3: 5637 hashes, 1.10 khash/s
[2017-05-05 17:04:23] Total: 4.37 khash/s
[2017-05-05 17:04:28] thread 2: 5376 hashes, 1.08 khash/s
[2017-05-05 17:04:28] thread 0: 5469 hashes, 1.09 khash/s
[2017-05-05 17:04:28] thread 1: 5508 hashes, 1.10 khash/s
[2017-05-05 17:04:28] thread 3: 5523 hashes, 1.11 khash/s
[2017-05-05 17:04:28] Total: 4.38 khash/s
[2017-05-05 17:04:33] thread 0: 5469 hashes, 1.13 khash/s
[2017-05-05 17:04:33] thread 2: 5382 hashes, 1.09 khash/s
[2017-05-05 17:04:33] thread 1: 5520 hashes, 1.13 khash/s
[2017-05-05 17:04:33] thread 3: 5550 hashes, 1.13 khash/s
[2017-05-05 17:04:33] Total: 4.47 khash/s
[2017-05-05 17:04:38] thread 2: 5454 hashes, 1.13 khash/s
[2017-05-05 17:04:38] thread 1: 5631 hashes, 1.14 khash/s
[2017-05-05 17:04:38] thread 3: 5649 hashes, 1.15 khash/s
[2017-05-05 17:04:38] Total: 4.54 khash/s
[2017-05-05 17:04:38] thread 0: 5640 hashes, 1.11 khash/s
[2017-05-05 17:04:42] thread 2: 5637 hashes, 1.34 khash/s
[2017-05-05 17:04:42] thread 1: 5709 hashes, 1.33 khash/s
[2017-05-05 17:04:42] thread 3: 5730 hashes, 1.33 khash/s
[2017-05-05 17:04:42] Total: 5.11 khash/s
[2017-05-05 17:04:42] thread 0: 5568 hashes, 1.28 khash/s
[2017-05-05 17:04:43] thread 2: 1341 hashes, 1.26 khash/s
[2017-05-05 17:04:43] thread 1: 1332 hashes, 1.27 khash/s
[2017-05-05 17:04:43] thread 3: 1332 hashes, 1.29 khash/s
[2017-05-05 17:04:43] Total: 5.11 khash/s
[2017-05-05 17:04:43] thread 0: 1284 hashes, 1.26 khash/s
[2017-05-05 17:04:48] thread 2: 6300 hashes, 1.26 khash/s
[2017-05-05 17:04:48] thread 1: 6351 hashes, 1.25 khash/s
[2017-05-05 17:04:49] thread 0: 6309 hashes, 1.22 khash/s
[2017-05-05 17:04:49] thread 3: 6471 hashes, 1.24 khash/s
[2017-05-05 17:04:49] Total: 4.97 khash/s
[2017-05-05 17:04:53] thread 0: 4902 hashes, 1.11 khash/s
[2017-05-05 17:04:53] thread 3: 4971 hashes, 1.13 khash/s
[2017-05-05 17:04:53] Total: 4.74 khash/s
[2017-05-05 17:04:54] thread 2: 6291 hashes, 1.12 khash/s
[2017-05-05 17:04:54] thread 1: 6231 hashes, 1.13 khash/s
[2017-05-05 17:04:58] thread 2: 4479 hashes, 1.07 khash/s
[2017-05-05 17:04:58] thread 3: 5643 hashes, 1.10 khash/s
[2017-05-05 17:04:58] Total: 4.41 khash/s
[2017-05-05 17:04:58] thread 0: 5541 hashes, 1.07 khash/s
[2017-05-05 17:04:58] thread 1: 4521 hashes, 1.03 khash/s
[2017-05-05 17:05:03] thread 2: 5355 hashes, 1.08 khash/s
[2017-05-05 17:05:03] thread 1: 5175 hashes, 1.09 khash/s
[2017-05-05 17:05:03] thread 0: 5331 hashes, 1.06 khash/s
[2017-05-05 17:05:03] thread 3: 5508 hashes, 1.08 khash/s
[2017-05-05 17:05:03] Total: 4.31 khash/s
[2017-05-05 17:05:08] thread 2: 5406 hashes, 1.10 khash/s
[2017-05-05 17:05:08] thread 3: 5397 hashes, 1.10 khash/s
[2017-05-05 17:05:08] Total: 4.35 khash/s
[2017-05-05 17:05:08] thread 1: 5433 hashes, 1.08 khash/s
[2017-05-05 17:05:08] thread 0: 5307 hashes, 1.08 khash/s
[2017-05-05 17:05:13] thread 2: 5478 hashes, 1.14 khash/s
[2017-05-05 17:05:13] thread 0: 5379 hashes, 1.14 khash/s
[2017-05-05 17:05:13] thread 3: 5517 hashes, 1.14 khash/s
[2017-05-05 17:05:13] Total: 4.51 khash/s
[2017-05-05 17:05:13] thread 1: 5421 hashes, 1.11 khash/s
[2017-05-05 17:05:18] thread 2: 5721 hashes, 1.11 khash/s
[2017-05-05 17:05:18] thread 0: 5715 hashes, 1.12 khash/s
[2017-05-05 17:05:18] thread 1: 5553 hashes, 1.11 khash/s
[2017-05-05 17:05:18] thread 3: 5685 hashes, 1.11 khash/s
[2017-05-05 17:05:18] Total: 4.45 khash/s
[2017-05-05 17:05:23] thread 2: 5535 hashes, 1.09 khash/s
[2017-05-05 17:05:23] thread 1: 5547 hashes, 1.12 khash/s
[2017-05-05 17:05:23] thread 0: 5622 hashes, 1.11 khash/s
[2017-05-05 17:05:23] thread 3: 5571 hashes, 1.09 khash/s
[2017-05-05 17:05:23] Total: 4.41 khash/s
[2017-05-05 17:05:28] thread 2: 5454 hashes, 1.12 khash/s
[2017-05-05 17:05:28] thread 1: 5589 hashes, 1.10 khash/s
[2017-05-05 17:05:28] thread 0: 5547 hashes, 1.10 khash/s
[2017-05-05 17:05:28] thread 3: 5469 hashes, 1.11 khash/s
[2017-05-05 17:05:28] Total: 4.43 khash/s
 

Link to comment
Share on other sites

With TKs OMV image - Linux tinkerboard 4.4.63-rockchip #1 SMP Mon Apr 24 00:17:34 PDT 2017 armv7l GNU/Linux

I have put the SBC on one of its shoulders, so it is not lying flat on the desk.  There is no heatsink. Startet with:
1600MHz until 70°
1400MHz until 67°
1500MHZ until 73
1200MHz until 71
1000MHz until 70
1200MHz until 73
1000MHz until 70

 

  • Did it kill any Core while overheating or just frequency reduction ?
  • And if only frequency reduction - wouldn't it be more efficient to kill 1 or 2 cores ?

 

the log from CPUminer

https://pastebin.com/zKjZXyGA

 

in idle

Spoiler

590ca61eb5fb2_TinkerBoard-01beforetesting.thumb.png.1decc91f94e5851201d6e8e5ca79a71e.png

 

Test just started

Spoiler

590ca65045f70_TinkerBoard-02whiletesting.png.5139e36db15f702a93fd673c23041dc6.png

 

Reducing frequency to cool down

Spoiler

590ca658793a4_TinkerBoard-03whiletestingreducefrequency.png.e1d97df2a3cf1c7f0f07ca2f05981cce.png

 

 

CPU load overall

Spoiler

590ca66eada51_TinkerBoard-05CPUload.png.9b029005a3d30da3e8e5eca90fc11a03.png

 

 

 

Temperature overall

Spoiler

590ca70934379_TinkerBoard-06Temperaturewhiletesting.png.5ebcc1879a481b28308bdc657cf18739.png

 

Link to comment
Share on other sites

Thank you all! No further testing needed since RPi-Monitor template seems to lack cpufreq information and cpufreq governor is the wrong one anyway.

 

Since I don't have the board (ASUS UK said they send dev samples weeks ago but obviously didn't) I step back. Sorry for the noise :)

Link to comment
Share on other sites

I dont understand your reaction. According to CPUfreq it reports on the status page of RPi-Monitor the correct frequency.

 

What is missing is in the graphs the recording.

 

What did you mean by wrong frequency governor, it looks to me that there are several options available?

Link to comment
Share on other sites

I think the max cpu clock is wrong unless we have the no -C version ie not 1.8 Ghz cpu clock.

I have order a replacement to see if it is the type-C if not I will be ordering the HiKey960:-)

 

(if it ever comes out with a Linux build)

Link to comment
Share on other sites

The op points are in the device tree, it only has op points to 1.608 GHz.  I have seen 1.8 working, I didn't add it to the tree because I was not certain they all had the -C like mine and didn't want to cause a major issue.  So far I've seen them all be -C's however, anyone want to chime in if they do not?

Link to comment
Share on other sites

When I was young - my first Pentium 166MHz I tried to overclocking. It was a waste of time.

If you make a RetroGaming, MediaPlayer or anything else with TinkerBoard, you just want longevity. Throw it behind a TV and just happy that it runs without needing your interaction.

I have -C as well, but with 1,6GHz in the benchmark it was within seconds above 70° Celsius and started throttling and I have no intention in active cooling.

Your setting is absolutely sane :thumbup:

Link to comment
Share on other sites

It's my opinion the heat sink provided with the tinker board is incredibly inadequate.  I'm not happy with the temperature it operates and will be looking at the maximum dimensions I can reasonably use for a passive heatsink.  Of course, I also have a ~28mm (salvaged from a machine, never measured it) north bridge heat sink on my NanoPi NEO...

 

Would this be best accomplished with dt overlays or something else?

Link to comment
Share on other sites

10 minutes ago, TonyMac32 said:

I'm not happy with the temperature it operates and will be looking at the maximum dimensions I can reasonably use for a passive heatsink.

I just looked a bit through the other thread, could not find what you have in mind for your Tinker Board ?

To keep it cool it is also an option to switch off 2 cores when reaching 70°, it depends what kind of software you want to run on it. You might need high frequency but not so many cores.

It need to be standing and not lying.

 

@plasta-blaster a moving part is noising and can fail. Always the worst option.

Link to comment
Share on other sites

2 minutes ago, Tido said:

@plasta-blaster a moving part is noising and can fail. Always the worst option.

Yes I have a bid on a X-Box 360 which has a huge heat sink which I will utilise as a heat sink:-

heatsink

 

And Noctua are very quite I have them in my Desktop and servers, super 6 year guarantee, also lowest Db of any fan I could find, just need to turn 5v into 12v:-)

Link to comment
Share on other sites

Well, I am planing to use it as it is - a small computer.  It will easily cope with everything RPi has its problems.

RPi-2 with the small cooler can easily run more than an hour with recalbox-os and Nintendo whatever.

 

The Video *ROTFL* , as sweet as the other guy who put his A64 into Oil.

WHY FOR GOD SAKE, an ATOM CPU from Intel would in this regard easily do the job.  Well, if you just wanna tinker, go for it. Consider Oil cooling :D

 

have fun, but don't waste your time watching all of it: https://www.youtube.com/watch?v=VFq1EbWOfYo 

 

Edited by Tido
video link added for a laugh
Link to comment
Share on other sites

Yer I saw that and Linus with his desktop aquarium build.

 

I hammer the hell out of my machines, I had bought a Pi 3 for WOL for my servers but then wanted it to do more, unfortunately it could not keep up. 

I have this Rockchip in a little Asus Chromebook running Arch which I love for working in the garden etc so jumped on the Tinkerboard.

But my Chromebook has a alu case as a heat-sink.

Link to comment
Share on other sites

Wow I removed the sticky tape from the Asus supplied heat-sink and put down some Notchua thermal paste - no difference to using the tape I guess that means it throttling at 73-74 Degress C.

 

Also I have the type -C processor can you add the 1.8Ghz to the tree please.

 

thanks

Link to comment
Share on other sites

There are books "for dummies" like sand on the shore.  And when I say I read that too.

Just to late for you to read and understand?

Edited by Tido
removed 3 letters
Link to comment
Share on other sites

And I can take a discussion without feeling humiliated. You can give it a try too.

 

Edit: Why you felt humiliated while I tried to help you in doing, to me senseless, overclocking is the best part of it.

Edited by Tido
removed 'quote'
Link to comment
Share on other sites

Thanks to @TonyMac32 I am now able to read the voltage out. It is by now not in the Statistics, but at least on Status page.

 

Status page:

Spoiler

590d7ea649233_TinkerBoard-10adjustRPiMonitor.png.af2cba3f486d7fcd743edded21d0c884.png

 

/etc/rpimonitor/template/cpu.conf:

Spoiler

########################################################################
# Extract CPU information
#  Page: 1
#  Information               Status     Statistics
#  - cpu frequency           - yes      - no
#  - cpu voltage             - yes      - yes
#  - cpu load 1, 5, 15       - yes      - yes
#  - cpu scaling governor    - yes      - no
########################################################################
dynamic.1.name=cpu_frequency
dynamic.1.source=/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
dynamic.1.regexp=(.*)
dynamic.1.postprocess=$1/1000
dynamic.1.rrd=GAUGE

dynamic.2.name=cpu_voltage
dynamic.2.source=/sys/class/regulator/regulator.4/microvolts
dynamic.2.regexp=(.*)
#dynamic.2.regexp=(\d+.\d+)V
dynamic.2.postprocess=$1/1000000
dynamic.2.rrd=GAUGE

dynamic.3.name=load1,load5,load15
dynamic.3.source=/proc/loadavg
dynamic.3.regexp=^(\S+)\s(\S+)\s(\S+)
dynamic.3.postprocess=
dynamic.3.rrd=GAUGE

dynamic.4.name=scaling_governor
dynamic.4.source=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
dynamic.4.regexp=(.*)
dynamic.4.postprocess=
dynamic.4.rrd=

########################################################################
#    STATUS PAGE
########################################################################
web.status.1.content.1.name=CPU
web.status.1.content.1.icon=cpu.png
#web.status.1.content.1.line.1="Loads: <b>" + data.load1 + "</b> [1min] - <b>" + data.load5 + "</b> [5min] - <b>" + data.load15 + "</b> [15min]"
web.status.1.content.1.line.1=JustGageBar("Load", "1min", 0, data.load1, 3, 100, 80)+" "+JustGageBar("Load", "5min", 0, data.load5, 3, 100, 80)+" "+JustGageBar("Load", "15min", 0, data.load15, 3, 100, 80)
web.status.1.content.1.line.2="CPU frequency: <b>" + data.cpu_frequency + "MHz</b> Voltage: <b>" + data.cpu_voltage + "V</b>"
web.status.1.content.1.line.3="Scaling governor: <b>" + data.scaling_governor + "</b>"
#web.status.1.content.1.line.4=InsertHTML("/addons/top3/top3.html")


########################################################################
#   STATISTICS PAGE
########################################################################
web.statistics.1.content.1.name=CPU Loads
web.statistics.1.content.1.graph.1=load1
web.statistics.1.content.1.graph.2=load5
web.statistics.1.content.1.graph.3=load15
web.statistics.1.content.1.graph.4=cpu_voltage
web.statistics.1.content.1.ds_graph_options.load1.label=Load 1min
web.statistics.1.content.1.ds_graph_options.load5.label=Load 5min
web.statistics.1.content.1.ds_graph_options.load15.label=Load 15min
web.statistics.1.content.1.ds_graph_options.cpu_voltage.label=Voltage

 

 

Todo:

CPU: MHz into the Statistics page

Voltage: into the Statistics page

Temperature: get rid of the numbers behind the comma (45.909 --> 45)

Edited by Tido
added Voltage to Statistics page
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines