SHARE
TWEET

Allwinner_R40.conf (v0.4)

a guest Nov 28th, 2016 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ########################################################################
  2. # Extract R40 information
  3. #  Page: 1
  4. #  Information               Status     Statistics
  5. #  - cpu frequency           - yes      - yes
  6. #  - cpu load 1, 5, 15       - yes      - yes
  7. #  - cpu scaling governor    - yes      - no
  8. #  - cpus available          - yes      - yes
  9. #  - Vcore voltage           - yes      - yes
  10. #  - cooling state           - yes      - yes
  11. #  - cooling limit           - yes      - no
  12. #  - zone1/SoC temperature   - yes      - yes
  13. ########################################################################
  14. dynamic.1.name=cpu_frequency
  15. dynamic.1.source=/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
  16. dynamic.1.regexp=(.*)
  17. dynamic.1.postprocess=sprintf("%.3f", $1/1000000)
  18. dynamic.1.rrd=GAUGE
  19.  
  20. dynamic.2.name=load1,load5,load15
  21. dynamic.2.source=/proc/loadavg
  22. dynamic.2.regexp=^(\S+)\s(\S+)\s(\S+)
  23. dynamic.2.postprocess=
  24. dynamic.2.rrd=GAUGE
  25.  
  26. dynamic.3.name=scaling_governor
  27. dynamic.3.source=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  28. dynamic.3.regexp=(.*)
  29. dynamic.3.postprocess=
  30. dynamic.3.rrd=
  31.  
  32. dynamic.4.name=cpu_count
  33. dynamic.4.source=grep -c '^processor' /proc/cpuinfo
  34. dynamic.4.regexp=(.*)
  35. dynamic.4.postprocess=
  36. dynamic.4.rrd=GAUGE
  37.  
  38. #dynamic.5.name=disktemp
  39. #dynamic.5.source=/usr/sbin/smartctl -a /dev/sda | /usr/bin/awk -F" " '/Temperature_Celsius/ {print $10}'
  40. #dynamic.5.regexp=(.*)
  41. #dynamic.5.postprocess=
  42. #dynamic.5.rrd=GAUGE
  43.  
  44. dynamic.5.name=vcorevoltage
  45. dynamic.5.source=/sys/devices/platform/axp81x_board/axp-regulator.41/regulator/regulator.2/microvolts
  46. dynamic.5.regexp=(.*)
  47. dynamic.5.postprocess=sprintf("%.2f", $1/1000000)
  48. dynamic.5.rrd=GAUGE
  49.  
  50. dynamic.6.name=soctemp
  51. dynamic.6.source=/sys/devices/virtual/thermal/thermal_zone0/temp
  52. dynamic.6.regexp=(.*)
  53. dynamic.6.postprocess=
  54. dynamic.6.rrd=GAUGE
  55.  
  56. dynamic.7.name=coolingstate
  57. dynamic.7.source=/sys/devices/virtual/thermal/cooling_device0/cur_state
  58. dynamic.7.regexp=(.*)
  59. dynamic.7.postprocess=
  60. dynamic.7.rrd=GAUGE
  61.  
  62. dynamic.8.name=coolinglimit
  63. dynamic.8.source=/sys/devices/soc/cpu_budget_cool.2/roomage
  64. dynamic.8.regexp=(.*)
  65. dynamic.8.postprocess=
  66. dynamic.8.rrd=
  67.  
  68. dynamic.9.name=dram_frequency
  69. dynamic.9.source=/sys/devices/1c62000.dramfreq/devfreq/dramfreq/cur_freq
  70. dynamic.9.regexp=(.*)
  71. dynamic.9.postprocess=sprintf("%.3f", $1/1000000)
  72. dynamic.9.rrd=GAUGE
  73.  
  74. web.status.1.content.1.name=CPU
  75. web.status.1.content.1.icon=cpu.png
  76. 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)
  77. web.status.1.content.1.line.2="CPU frequency: <b>" + data.cpu_frequency + "GHz</b> &nbsp;(" + data.coolinglimit + ") &nbsp;DRAM frequency: <b>" + data.dram_frequency + "GHz</b>"
  78. web.status.1.content.1.line.3="Governor: <b>" + data.scaling_governor + "</b> &nbsp;Active CPU cores: <b>" + data.cpu_count + "</b> &nbsp;Vcore: <b>" + data.vcorevoltage + "</b>"
  79.  
  80. web.status.1.content.3.name=Temperature
  81. web.status.1.content.3.icon=cpu_temp.png
  82. web.status.1.content.3.line.1=JustGageBar("SoC", "°C",0, data.soctemp , 100,100,80,percentColors,50,70)+" "+JustGageBar("Cooling State", "",0, data.coolingstate , 7,100,80,percentColors,1,2)
  83. #web.status.1.content.3.line.1=JustGageBar("SoC", "°C",0, data.soctemp , 100,100,80,percentColors,50,70)
  84.  
  85. web.statistics.1.content.1.name=Load / Clockspeeds / Temperature
  86. web.statistics.1.content.1.graph.1=load1
  87. web.statistics.1.content.1.graph.2=load5
  88. web.statistics.1.content.1.graph.3=load15
  89. web.statistics.1.content.1.graph.4=cpu_frequency
  90. web.statistics.1.content.1.graph.5=cpu_count
  91. web.statistics.1.content.1.graph.6=coolingstate
  92. web.statistics.1.content.1.graph.7=soctemp
  93. web.statistics.1.content.1.graph.8=vcorevoltage
  94. web.statistics.1.content.1.graph.9=dram_frequency
  95. web.statistics.1.content.1.ds_graph_options.load1.label=Load 1 min
  96. web.statistics.1.content.1.ds_graph_options.load5.label=Load 5 min
  97. web.statistics.1.content.1.ds_graph_options.load15.label=Load 15 min
  98. web.statistics.1.content.1.ds_graph_options.cpu_frequency.label=CPU Clock speed (GHz)
  99. web.statistics.1.content.1.ds_graph_options.cpu_frequency.yaxis=2
  100. web.statistics.1.content.1.ds_graph_options.cpu_count.label=Active CPUs
  101. web.statistics.1.content.1.ds_graph_options.cpu_count.yaxis=2
  102. web.statistics.1.content.1.ds_graph_options.soctemp.label=SoC temp (°C)
  103. web.statistics.1.content.1.ds_graph_options.disktemp.label=Disk temp (°C)
  104. web.statistics.1.content.1.ds_graph_options.vcorevoltage.label=Vcore (V)
  105. web.statistics.1.content.1.ds_graph_options.vcorevoltage.yaxis=2
  106. web.statistics.1.content.1.ds_graph_options.coolingstate.label=Cooling State
  107. web.statistics.1.content.1.ds_graph_options.coolingstate.yaxis=2
  108. web.statistics.1.content.1.ds_graph_options.dram_frequency.label=DRAM Clock speed (GHz)
  109. web.statistics.1.content.1.ds_graph_options.dram_frequency.yaxis=2
  110. web.statistics.1.content.1.graph_options.y1axis={ position: "left", min: 35, max: 75 }
  111. web.statistics.1.content.1.graph_options.y2axis={ position: "right" }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top