# $Id: hwmon-gigabyte-ga-n3150n-d3v.inc 51847 2018-03-06 14:55:07Z kristov $
# Do not edit! This file is automaticly generated by hwmon-inc.xsl
hwmon_gigabyte_ga_n3150n_d3v_frequency ()
{
# cpuinfo_cur_freq fehlt bei dieser CPU N3150N und der fli4l version 4.0.0
# var1=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq`
var1=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
var1=$((var1 / 1000))
# var2=`cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq`
var2=`cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq`
var2=$((var2 / 1000))
# var3=`cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq`
var3=`cat /sys/devices/system/cpu/cpu2/cpufreq/scaling_cur_freq`
var3=$((var3 / 1000))
# var4=`cat /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq`
var4=`cat /sys/devices/system/cpu/cpu3/cpufreq/scaling_cur_freq`
var4=$((var4 / 1000))
show_tab_header ${_HWSUPP_RT_FREQUENCY} no
echo "
"
echo ""
echo "${_HWSUPP_HWMON_SENSOR} | "
echo "${_HWSUPP_RL_FREQUENCY} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} 0 | "
echo "${var1} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} 1 | "
echo "${var2} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} 2 | "
echo "${var3} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} 3 | "
echo "${var4} | "
echo "
"
echo "
"
show_tab_footer
}
hwmon_gigabyte_ga_n3150n_d3v_coretemp ()
{
var_coretemp2=`sensors -u coretemp-isa-0000 | grep temp2_input | cut -d : -f 2`
var_coretemp2=`echo ${var_coretemp2}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{1\}\).*/\1.\2/'`
var_coretemp3=`sensors -u coretemp-isa-0000 | grep temp3_input | cut -d : -f 2`
var_coretemp3=`echo ${var_coretemp3}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{1\}\).*/\1.\2/'`
var_coretemp4=`sensors -u coretemp-isa-0000 | grep temp4_input | cut -d : -f 2`
var_coretemp4=`echo ${var_coretemp4}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{1\}\).*/\1.\2/'`
var_coretemp5=`sensors -u coretemp-isa-0000 | grep temp5_input | cut -d : -f 2`
var_coretemp5=`echo ${var_coretemp5}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{1\}\).*/\1.\2/'`
show_tab_header Core-${_HWSUPP_TEMP} no
echo ""
echo ""
echo "${_HWSUPP_HWMON_SENSOR} | "
echo "$Core-${_HWSUPP_RL_TEMP} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} 0 | "
echo "${var_coretemp2} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} 1 | "
echo "${var_coretemp3} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} 2 | "
echo "${var_coretemp4} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} 3 | "
echo "${var_coretemp5} | "
echo "
"
echo "
"
show_tab_footer
}
hwmon_gigabyte_ga_n3150n_d3v_it8628_temp ()
{
var_temp4=`sensors -u it8628-isa-0a40 | grep temp4_input | cut -d : -f 2`
var_temp4=`echo ${var_temp4}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{1\}\).*/\1.\2/'`
var_temp1=`sensors -u it8628-isa-0a40 | grep temp1_input | cut -d : -f 2`
var_temp1=`echo ${var_temp1}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{1\}\).*/\1.\2/'`
show_tab_header MB-${_HWSUPP_TEMP} no
echo ""
echo ""
echo "${_HWSUPP_HWMON_SENSOR} | "
echo "${_HWSUPP_RL_TEMP} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} | "
echo "${var_temp4} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_SYS} | "
echo "${var_temp1} | "
echo "
"
echo "
"
show_tab_footer
}
hwmon_gigabyte_ga_n3150n_d3v_it8628_fan ()
{
var_fan1=`sensors -u it8628-isa-0a40 | grep fan1_input | cut -d : -f 2`
var_fan1=`echo ${var_fan1}| sed 's/[^0-9]*\([0-9]*\).*/\1/'`
var_fan2=`sensors -u it8628-isa-0a40 | grep fan2_input | cut -d : -f 2`
var_fan2=`echo ${var_fan2}| sed 's/[^0-9]*\([0-9]*\).*/\1/'`
show_tab_header MB-${_HWSUPP_FANSPEED} no
echo ""
echo ""
echo "${_HWSUPP_HWMON_SENSOR} | "
echo "${_HWSUPP_RL_FANSPEED} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} | "
echo "${var_fan1} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_MB} | "
echo "${var_fan2} | "
echo "
"
echo "
"
show_tab_footer
}
hwmon_gigabyte_ga_n3150n_d3v_it8628_voltage ()
{
var_in0=`sensors -u it8628-isa-0a40 | grep in0_input | cut -d : -f 2`
var_in0=`echo ${var_in0}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{3\}\).*/\1.\2/'`
var_in1=`sensors -u it8628-isa-0a40 | grep in1_input | cut -d : -f 2`
var_in1=`echo ${var_in1}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{3\}\).*/\1.\2/'`
var_in2=`sensors -u it8628-isa-0a40 | grep in2_input | cut -d : -f 2`
var_in2=`echo ${var_in2}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{3\}\).*/\1.\2/'`
var_in3=`sensors -u it8628-isa-0a40 | grep in3_input | cut -d : -f 2`
var_in3=`echo ${var_in3}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{3\}\).*/\1.\2/'`
var_in4=`sensors -u it8628-isa-0a40 | grep in4_input | cut -d : -f 2`
var_in4=`echo ${var_in4}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{3\}\).*/\1.\2/'`
var_in5=`sensors -u it8628-isa-0a40 | grep in5_input | cut -d : -f 2`
var_in5=`echo ${var_in5}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{3\}\).*/\1.\2/'`
var_in6=`sensors -u it8628-isa-0a40 | grep in6_input | cut -d : -f 2`
var_in6=`echo ${var_in6}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{3\}\).*/\1.\2/'`
var_in7=`sensors -u it8628-isa-0a40 | grep in7_input | cut -d : -f 2`
var_in7=`echo ${var_in7}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{3\}\).*/\1.\2/'`
var_in8=`sensors -u it8628-isa-0a40 | grep in8_input | cut -d : -f 2`
var_in8=`echo ${var_in8}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{3\}\).*/\1.\2/'`
show_tab_header MB-${_HWSUPP_VOLTAGE} no
echo ""
echo ""
echo "${_HWSUPP_HWMON_SENSOR} | "
echo "${_HWSUPP_RL_VOLTAGE} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_VCORE} | "
echo "${var_in0} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_V3_3} | "
echo "${var_in1} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_V12} | "
echo "${var_in2} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_V5} | "
echo "${var_in3} | "
echo "
"
echo ""
echo "CPU_VAXG | "
echo "${var_in4} | "
echo "
"
echo ""
echo "Vnn | "
echo "${var_in5} | "
echo "
"
echo ""
echo "VCC DDR3 | "
echo "${var_in6} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_V3SB} | "
echo "${var_in7} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_VBAT} | "
echo "${var_in8} | "
echo "
"
echo "
"
show_tab_footer
}
hwmon_gigabyte_ga_n3150n_d3v ()
{
hwmon_gigabyte_ga_n3150n_d3v_frequency
hwmon_gigabyte_ga_n3150n_d3v_coretemp
hwmon_gigabyte_ga_n3150n_d3v_it8628_temp
hwmon_gigabyte_ga_n3150n_d3v_it8628_fan
hwmon_gigabyte_ga_n3150n_d3v_it8628_voltage
}
# _oOo_