
Henrique-RJ
(usa Outra)
Enviado em 30/12/2025 - 19:49h
Copiei e colei e mesmo assim a mensagem não quer piscar mas deixa assim mesmo sem piscar.
O importante é que a mensagem só aparece se a temperatura do HD for superior ao determinado.
Não sei se reparou no print da minha tela mas a voltagem de 5V e de 12V que aparecem estão erradas mostrando 4,1 em ambas. Teria como calibrar isso em algum lugar tipo /etc/sensors3.conf ou em /usr/bin/sensors-conf-convert como mostrado abaixo respectivamente ?
/etc/sensors3.conf
# libsensors configuration file
# -----------------------------
#
# This default configuration file only includes statements which do not
# differ from one mainboard to the next. Only label, compute and set
# statements for internal voltage and temperature sensors are included.
#
# In general, local changes should not be added to this file, but rather
# placed in custom configuration files located in /etc/sensors.d. This
# approach makes further updates much easier.
#
# Such custom configuration files for specific mainboards can be found in
# "configs" directory of lm-sensors package.
#
# Please contribute back a configuration of your board so other users with
# the same hardware won't need to recreate it again and again.
chip "lm78-*" "lm79-*" "lm80-*" "lm96080-*"
label temp1 "M/B Temp"
chip "w83792d-*"
label in0 "VcoreA"
label in1 "VcoreB"
label in6 "+5V"
label in7 "5VSB"
label in8 "Vbat"
set in6_min 5.0 * 0.90
set in6_max 5.0 * 1.10
set in7_min 5.0 * 0.90
set in7_max 5.0 * 1.10
set in8_min 3.0 * 0.90
set in8_max 3.0 * 1.10
chip "w83793-*"
label in0 "VcoreA"
label in1 "VcoreB"
label in7 "+5V"
label in8 "5VSB"
label in9 "Vbat"
set in7_min 5.0 * 0.90
set in7_max 5.0 * 1.10
set in8_min 5.0 * 0.90
set in8_max 5.0 * 1.10
set in9_min 3.0 * 0.90
set in9_max 3.0 * 1.10
chip "w83795g-*" "w83795adg-*"
label in12 "+3.3V"
label in13 "3VSB"
label in14 "Vbat"
set in12_min 3.3 * 0.90
set in12_max 3.3 * 1.10
set in13_min 3.3 * 0.90
set in13_max 3.3 * 1.10
set in14_min 3.0 * 0.90
set in14_max 3.3 * 1.10
chip "via686a-*"
label in0 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in4_min 12.0 * 0.90
set in4_max 12.0 * 1.10
chip "adm1025-*" "ne1619-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "VCC"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
# Depending on how your chip is hardwired, you may or may not have
# +12V readings.
# set in4_min 12.0 * 0.90
# set in4_max 12.0 * 1.10
label temp1 "CPU Temp"
label temp2 "M/B Temp"
chip "lm87-*" "adm1024-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in4_min 12.0 * 0.90
set in4_max 12.0 * 1.10
label temp1 "M/B Temp"
label temp2 "CPU Temp"
chip "it87-*" "it8712-*" "it8716-*" "it8718-*" "it8720-*"
label in8 "Vbat"
chip "fscpos-*" "fscher-*"
#FSC "Hermes"
label in0 "+12V"
label in1 "+5V"
label in2 "Vbat"
label temp1 "CPU Temp"
label temp2 "M/B Temp"
label temp3 "Aux Temp"
chip "fscscy-*"
#FSC "Scylla"
label in0 "+12V"
label in1 "+5V"
label in2 "+3.3V"
label temp1 "CPU0 Temp"
label temp2 "CPU1 Temp"
label temp3 "M/B Temp"
label temp4 "Aux Temp"
chip "fschds-*"
# Fujitsu Technology Solutions, "Hades"-Chip
# Temperatures
label temp1 "CPU Temp"
label temp2 "Super I/O Temp"
label temp3 "System Temp"
# Fans
label fan1 "PSU Fan"
label fan2 "CPU Fan"
label fan3 "System FAN2"
label fan4 "System FAN3"
label fan5 "System FAN4"
# Voltages
label in0 "+12V"
label in1 "+5V"
label in2 "Vbat"
chip "fscsyl-*"
# Fujitsu Technology Solutions, "Syleus"-Chip
# Temperatures
label temp1 "CPU Temp"
label temp4 "Super I/O Temp"
label temp5 "Northbridge Temp"
# Fans
label fan1 "CPU Fan"
label fan2 "System FAN2"
label fan3 "System FAN3"
label fan4 "System FAN4"
label fan7 "PSU Fan"
# Voltages
label in0 "+12V"
label in1 "+5V"
label in2 "Vbat"
label in3 "+3.3V"
label in5 "+3.3V-Aux"
chip "vt1211-*"
label in5 "+3.3V"
label temp2 "SIO Temp"
chip "vt8231-*"
label in5 "+3.3V"
chip "smsc47m192-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "VCC"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in4_min 12.0 * 0.90
set in4_max 12.0 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
label temp1 "SIO Temp"
chip "lm85-*" "lm85b-*" "lm85c-*" "adm1027-*" "adt7463-*" "adt7468-*" \
"emc6d100-*" "emc6d102-*" "emc6d103-*" "emc6d103s-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
# Depending on how your chip is hardwired, you may or may not have
# +12V readings.
# set in4_min 12.0 * 0.90
# set in4_max 12.0 * 1.10
label temp2 "M/B Temp"
chip "emc6w201-*"
label in2 "+3.3V"
label in3 "+5V"
label temp6 "M/B Temp"
chip "pc87365-*" "pc87366-*"
# Voltage inputs
label in7 "3VSB"
label in8 "VDD"
label in9 "Vbat"
label in10 "AVDD"
compute in7 @*2, @/2
compute in8 @*2, @/2
compute in10 @*2, @/2
# These are the operating conditions as recommended by National
# Semiconductor
set in7_min 3.0
set in7_max 3.6
set in8_min 3.0
set in8_max 3.6
set in10_min 3.0
set in10_max 3.6
# Depending on the hardware setup, the battery voltage may or may not
# be monitored.
# set in9_min 2.4
# set in9_max 3.6
label temp3 "SIO Temp"
set temp3_min 0
set temp3_max 70
set temp3_crit 85
chip "adm1030-*" "adm1031-*"
label temp1 "M/B Temp"
chip "w83627thf-*"
label in3 "+5V"
label in7 "5VSB"
label in8 "Vbat"
# Internal resistors
compute in3 @ * (1 + 34/51), @ / (1 + 34/51)
compute in7 @ * (1 + 34/51), @ / (1 + 34/51)
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in7_min 5.0 * 0.90
set in7_max 5.0 * 1.10
# The battery voltage may or may not be monitored.
# set in8_min 3.0 * 0.90
# set in8_max 3.0 * 1.10
chip "w83627ehf-*" "w83627dhg-*" "w83667hg-*" "nct6775-*" "nct6776-*" \
"nct6779-*" "nct6791-*" "nct6795-*" "nct6796-*"
label in0 "Vcore"
label in2 "AVCC"
label in3 "+3.3V"
label in7 "3VSB"
label in8 "Vbat"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 3.3 * 0.90
set in3_max 3.3 * 1.10
set in7_min 3.3 * 0.90
set in7_max 3.3 * 1.10
set in8_min 3.0 * 0.90
set in8_max 3.3 * 1.10
chip "w83627uhg-*"
label in2 "AVCC"
label in3 "+5V"
label in7 "5VSB"
label in8 "Vbat"
set in2_min 5.0 * 0.90
set in2_max 5.0 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in7_min 5.0 * 0.90
set in7_max 5.0 * 1.10
set in8_min 3.0 * 0.90
set in8_max 3.3 * 1.10
chip "f71805f-*"
label in0 "+3.3V"
set in0_min 3.3 * 0.90
set in0_max 3.3 * 1.10
chip "f71872f-*"
label in0 "+3.3V"
label in9 "Vbat"
label in10 "3VSB"
set in0_min 3.3 * 0.90
set in0_max 3.3 * 1.10
set in9_min 3.0 * 0.90
set in9_max 3.0 * 1.10
set in10_min 3.3 * 0.90
set in10_max 3.3 * 1.10
chip "k8temp-*"
label temp1 "Core0 Temp"
label temp2 "Core0 Temp"
label temp3 "Core1 Temp"
label temp4 "Core1 Temp"
chip "dme1737-*"
label in0 "5VSB"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "3VSB"
label in6 "Vbat"
label temp2 "SIO Temp"
set in0_min 5.0 * 0.90
set in0_max 5.0 * 1.10
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in4_min 12.0 * 0.90
set in4_max 12.0 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
set in6_min 3.0 * 0.90
set in6_max 3.0 * 1.10
chip "sch311x-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "3VSB"
label in6 "Vbat"
label temp2 "SIO Temp"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in4_min 12.0 * 0.90
set in4_max 12.0 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
set in6_min 3.0 * 0.90
set in6_max 3.0 * 1.10
chip "sch5027-*"
label in0 "5VSB"
label in1 "Vcore"
label in2 "+3.3V"
label in5 "3VSB"
label in6 "Vbat"
label temp2 "SIO Temp"
set in0_min 5.0 * 0.90
set in0_max 5.0 * 1.10
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
set in6_min 3.0 * 0.90
set in6_max 3.0 * 1.10
chip "sch5127-*"
label in2 "+3.3V"
label in5 "3VSB"
label in6 "Vbat"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
set in6_min 3.0 * 0.90
set in6_max 3.0 * 1.10
chip "f71808e-*" "f71808a-*" "f71862fg-*" "f71869-*" "f71869a-*" "f71882fg-*" \
"f71889fg-*" "f71889ed-*" "f71889a-*"
label in0 "+3.3V"
label in7 "3VSB"
label in8 "Vbat"
compute in0 @*2, @/2
compute in7 @*2, @/2
compute in8 @*2, @/2
chip "f71858fg-*" "f8000-*"
label in0 "+3.3V"
label in1 "3VSB"
label in2 "Vbat"
compute in0 @*2, @/2
compute in1 @*2, @/2
compute in2 @*2, @/2
chip "f71868a-*"
label in0 "+3.3V"
label in7 "3VSB"
label in8 "Vbat"
label in9 "5VSB"
compute in0 @*2, @/2
compute in7 @*2, @/2
compute in8 @*2, @/2
compute in9 @*3, @/3
chip "f81865f-*"
label in0 "+3.3V"
label in5 "3VSB"
label in6 "Vbat"
compute in0 @*2, @/2
compute in5 @*2, @/2
compute in6 @*2, @/2
chip "adt7473-*" "adt7475-*"
label in2 "+3.3V"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
label temp2 "Board Temp"
chip "adt7476-*" "adt7490-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
# Depending on how your ADT7476 is hardwired, you may or may not have
# +12V readings.
# set in4_min 12.0 * 0.90
# set in4_max 12.0 * 1.10
label temp2 "M/B Temp"
/usr/bin//sensors-conf-convert
#!/usr/bin/perl -w -pi.old
# Convert a sensors.conf file from the old (Linux 2.4, lm-sensors 2)
# symbol names to the new (Linux 2.6 or 3, lm-sensors 3) symbol names.
#
# Copyright (C) 2007, 2011 Jean Delvare <jdelvare@suse.de>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
# Implemented conversions:
# * The "algorithm name" part of bus statements is removed.
# * Bus statements for the ISA bus are removed.
# * Chip names containing dashes are removed.
# * Label, ignore, set and compute statements referencing features
# which are not part of the new interface are removed.
# * Label, ignore, set and compute statements referencing features
# which have been renamed are updated. This includes both general
# feature name changes and chip-specific feature name changes.
#
# Note that we have to look at the commented out lines too, so that
# the user doesn't have a bad surprise when uncommenting them.
use strict;
use vars qw($debug $chip %trans @delete %chip_trans %chip_delete $first_part $second_part $compute_next);
BEGIN
{
$debug = 0;
%trans = (
qr/\bvid\b/ => sub { "cpu0_vid" },
qr/\bremote_temp\b/ => sub { "temp2" },
qr/\bremote_temp_hyst\b/ => sub { "temp2_max_hyst" },
qr/\bremote_temp_low\b/ => sub { "temp2_min" },
qr/\bremote_temp_over\b/ => sub { "temp2_max" },
qr/\btemp\b/ => sub { "temp1" },
qr/\btemp_hyst\b/ => sub { "temp1_max_hyst" },
qr/\btemp_low\b/ => sub { "temp1_min" },
qr/\btemp_over\b/ => sub { "temp1_max" },
qr/\btemp_high\b/ => sub { "temp1_max" },
qr/\btemp_crit\b/ => sub { "temp1_crit" },
qr/\bvin(\d+)_max\b/ => sub { "in$1_max" },
qr/\bvin(\d+)_min\b/ => sub { "in$1_min" },
qr/\bvin(\d+)\b/ => sub { "in$1" },
qr/\btemp(\d+)_over\b/ => sub { "temp$1_max" },
qr/\btemp(\d+)_hyst\b/ => sub { "temp$1_max_hyst" },
qr/\btemp(\d+)_high\b/ => sub { "temp$1_max" },
qr/\btemp(\d+)_low\b/ => sub { "temp$1_min" },
qr/\bsensor(\d+)\b/ => sub { "temp$1_type" },
);
@delete = (
qr/\balarms\b/,
qr/\bbeeps\b/,
qr/\bpwm\d*\b/,
qr/\bpwm\d+_enable\b/,
qr/\b(in|temp|fan)\d+_(state|status)\b/,
qr/\banalog_out\b/,
qr/\balarms_(in|temp|fan)\b/,
);
%chip_trans = (
"gl518sm" => {
qr/\bvdd\b/ => sub { "in0" },
qr/\bvdd_min\b/ => sub { "in0_min" },
qr/\bvdd_max\b/ => sub { "in0_max" },
},
"gl520sm" => {
qr/\bvdd\b/ => sub { "in0" },
qr/\bvdd_min\b/ => sub { "in0_min" },
qr/\bvdd_max\b/ => sub { "in0_max" },
},
"lm80" => {
qr/\btemp_hot_hyst\b/ => sub { "temp1_max_hyst" },
qr/\btemp_hot_max\b/ => sub { "temp1_max" },
qr/\btemp_os_hyst\b/ => sub { "temp1_crit_hyst" },
qr/\btemp_os_max\b/ => sub { "temp1_crit" },
},
"lm83" => {
qr/\btcrit\b/ => sub { "temp3_crit" },
},
"lm90" => {
qr/\btcrit(\d)\b/ => sub { "temp$1_crit" },
qr/\bhyst(\d)\b/ => sub { "temp$1_crit_hyst" },
},
"adm1032" => {
qr/\btcrit(\d)\b/ => sub { "temp$1_crit" },
qr/\bhyst(\d)\b/ => sub { "temp$1_crit_hyst" },
},
"lm86" => {
qr/\btcrit(\d)\b/ => sub { "temp$1_crit" },
qr/\bhyst(\d)\b/ => sub { "temp$1_crit_hyst" },
},
"lm99" => {
qr/\btcrit(\d)\b/ => sub { "temp$1_crit" },
qr/\bhyst(\d)\b/ => sub { "temp$1_crit_hyst" },
},
"adt7461" => {
qr/\btcrit(\d)\b/ => sub { "temp$1_crit" },
qr/\bhyst(\d)\b/ => sub { "temp$1_crit_hyst" },
},
"max6657" => {
qr/\btcrit(\d)\b/ => sub { "temp$1_crit" },
qr/\bhyst(\d)\b/ => sub { "temp$1_crit_hyst" },
},
"max6680" => {
qr/\btcrit(\d)\b/ => sub { "temp$1_crit" },
qr/\bhyst(\d)\b/ => sub { "temp$1_crit_hyst" },
},
"lm93" => {
qr/\bvid([12])\b/ => sub { "cpu".($1-1)."_vid" },
},
"adm9240" => {
qr/"2\.5V(|_min|_max)"/ => sub { "in0$1" },
qr/\bVccp1(|_min|_max)\b/ => sub { "in1$1" },
qr/"3\.3V(|_min|_max)"/ => sub { "in2$1" },
qr/"5V(|_min|_max)"/ => sub { "in3$1" },
qr/"12V(|_min|_max)"/ => sub { "in4$1" },
qr/\bVccp2(|_min|_max)\b/ => sub { "in5$1" },
},
"lm81" => {
qr/"2\.5V(|_min|_max)"/ => sub { "in0$1" },
qr/\bVccp1(|_min|_max)\b/ => sub { "in1$1" },
qr/"3\.3V(|_min|_max)"/ => sub { "in2$1" },
qr/"5V(|_min|_max)"/ => sub { "in3$1" },
qr/"12V(|_min|_max)"/ => sub { "in4$1" },
qr/\bVccp2(|_min|_max)\b/ => sub { "in5$1" },
},
"ds1780" => {
qr/"2\.5V(|_min|_max)"/ => sub { "in0$1" },
qr/\bVccp1(|_min|_max)\b/ => sub { "in1$1" },
qr/"3\.3V(|_min|_max)"/ => sub { "in2$1" },
qr/"5V(|_min|_max)"/ => sub { "in3$1" },
qr/"12V(|_min|_max)"/ => sub { "in4$1" },
qr/\bVccp2(|_min|_max)\b/ => sub { "in5$1" },
},
"adm1024" => {
qr/"2\.5V(|_min|_max)"/ => sub { "in0$1" },
qr/\bVccp1(|_min|_max)\b/ => sub { "in1$1" },
qr/"3\.3V(|_min|_max)"/ => sub { "in2$1" },
qr/"5V(|_min|_max)"/ => sub { "in3$1" },
qr/"12V(|_min|_max)"/ => sub { "in4$1" },
qr/\bVccp2(|_min|_max)\b/ => sub { "in5$1" },
qr/\btemp_hyst\b/ => sub { "temp1_min" },
qr/\btemp(\d)\b/ => sub { "temp".($1+1) },
qr/\btemp(\d)_hyst\b/ => sub { "temp".($1+1)."_min" },
qr/\btemp(\d)_over\b/ => sub { "temp".($1+1)."_max" },
},
"maxilife" => {
qr/\bvid(\d)(|_min|_max)\b/ => sub { "in".($1-1).$2 },
},
"thmc50" => {
qr/\btemp_hyst\b/ => sub { "temp1_min" },
qr/\bremote_temp_hyst\b/ => sub { "temp2_min" },
qr/\bremote_temp2\b/ => sub { "temp3" },
qr/\bremote_temp2_hyst\b/ => sub { "temp3_min" },
qr/\bremote_temp2_over\b/ => sub { "temp3_max" },
},
"adm1022" => {
qr/\btemp_hyst\b/ => sub { "temp1_min" },
qr/\bremote_temp_hyst\b/ => sub { "temp2_min" },
qr/\bremote_temp2\b/ => sub { "temp3" },
qr/\bremote_temp2_hyst\b/ => sub { "temp3_min" },
qr/\bremote_temp2_over\b/ => sub { "temp3_max" },
},
"adm1026" => {
qr/\bfan(\d)(|_div|_min)\b/ => sub { "fan".($1+1).$2 },
qr/\btemp(\d)_therm\b/ => sub { "temp$1_crit" },
},
"via686a" => {
qr/"2\.0V"/ => sub { "in0" },
qr/"2\.5V"/ => sub { "in1" },
qr/"3\.3V"/ => sub { "in2" },
qr/"5\.0V"/ => sub { "in3" },
qr/"12V"/ => sub { "in4" },
},
"lm87" => {
qr/"2\.5V(|_min|_max)"/ => sub { "in0$1" },
qr/\bVccp1(|_min|_max)\b/ => sub { "in1$1" },
qr/"3\.3V(|_min|_max)"/ => sub { "in2$1" },
qr/"5V(|_min|_max)"/ => sub { "in3$1" },
qr/"12V(|_min|_max)"/ => sub { "in4$1" },
qr/\bVccp2(|_min|_max)\b/ => sub { "in5$1" },
qr/\bAIN1(|_min|_max)\b/ => sub { "in6$1" },
qr/\bAIN2(|_min|_max)\b/ => sub { "in7$1" },
qr/\bCPU_Temp\b/ => sub { "temp2" },
},
"fscpos" => {
qr/\bvolt12\b/ => sub { "in0" },
qr/\bvolt5\b/ => sub { "in1" },
qr/\bvoltbatt\b/ => sub { "in2" },
},
"fscscy" => {
qr/\bvolt12\b/ => sub { "in0" },
qr/\bvolt5\b/ => sub { "in1" },
qr/\bvoltbatt\b/ => sub { "in2" },
},
"pcf8591" => {
qr/\bch(\d)\b/ => sub { "in$1" },
},
"smsc47m192" => {
qr/\btemp(\d)_input_fault\b/ => sub { "temp$1_fault" },
},
"lm92" => {
qr/\btemp_hyst\b/ => sub { "temp1_crit_hyst" },
},
"max1619" => {
qr/\btemp2_hyst\b/ => sub { "temp2_crit_hyst" },
},
"lm78" => {
qr/\bin([56])_(min|max)\b/ => sub { "in$1_".($2 eq "max" ? "min" : "max") },
},
"lm79" => {
qr/\bin([56])_(min|max)\b/ => sub { "in$1_".($2 eq "max" ? "min" : "max") },
},
"w83781d" => {
qr/\bin([56])_(min|max)\b/ => sub { "in$1_".($2 eq "max" ? "min" : "max") },
},
"as99127f" => {
qr/\bin([56])_(min|max)\b/ => sub { "in$1_".($2 eq "max" ? "min" : "max") },
},
);
%chip_delete = (
"adm1021" => [
qr/\bdie_code\b/,
],
"lm84" => [
qr/\bdie_code\b/,
],
"gl523" => [
qr/\bdie_code\b/,
],
"thmc10" => [
qr/\bdie_code\b/,
],
"gl518sm" => [
qr/\bfan1_off\b/,
qr/\bfan1_off_pin\b/,
qr/\biterate\b/,
],
"gl520sm" => [
qr/\bfan1_off\b/,
qr/\btwo_temps\b/,
],
"w83792d" => [
qr/\bchassis\b/,
],
"w83793" => [
qr/\bchassis\b/,
],
"maxilife" => [
qr/\bpll(|_min|_max)\b/,
],
"thmc50" => [
qr/\banalog output\b/,
qr/\binterrupts\b/,
qr/\binterrupt mask\b/,
qr/\bdie_code\b/,
],
"adm1022" => [
qr/\banalog output\b/,
qr/\binterrupts\b/,
qr/\binterrupt mask\b/,
qr/\bdie_code\b/,
],
"adm1026" => [
qr/\balarm_mask\b/,
qr/\bgpio\b/,
qr/\bgpio_mask\b/,
qr/\bafc_pwm\b/,
qr/\bafc_analog_out\b/,
qr/\btemp\d_tmin\b/,
],
"lm85" => [
qr/\bpwm\d_(spinup|min|freq|min_ctl|zone|spinup_ctl)\b/,
qr/\bzone\d_(limit|hyst|range|critical|smooth)\b/,
qr/\bfan\d_(tach_mode|ppr)\b/,
],
"lm85b" => [
qr/\bpwm\d_(spinup|min|freq|min_ctl|zone|spinup_ctl)\b/,
qr/\bzone\d_(limit|hyst|range|critical|smooth)\b/,
qr/\bfan\d_(tach_mode|ppr)\b/,
],
"lm85c" => [
qr/\bpwm\d_(spinup|min|freq|min_ctl|zone|spinup_ctl)\b/,
qr/\bzone\d_(limit|hyst|range|critical|smooth)\b/,
qr/\bfan\d_(tach_mode|ppr)\b/,
],
"emc6d100" => [
qr/\bpwm\d_(spinup|min|freq|min_ctl|zone|spinup_ctl)\b/,
qr/\bzone\d_(limit|hyst|range|critical|smooth)\b/,
qr/\bfan\d_(tach_mode|ppr)\b/,
],
"emc6d102" => [
qr/\bpwm\d_(spinup|min|freq|min_ctl|zone|spinup_ctl)\b/,
qr/\bzone\d_(limit|hyst|range|critical|smooth)\b/,
qr/\bfan\d_(tach_mode|ppr)\b/,
],
"adm1027" => [
qr/\bpwm\d_(spinup|min|freq|min_ctl|zone|spinup_ctl)\b/,
qr/\bzone\d_(limit|hyst|range|critical|smooth)\b/,
qr/\bfan\d_(tach_mode|ppr)\b/,
],
"adt7473" => [
qr/\bpwm\d_(spinup|min|freq|min_ctl|zone|spinup_ctl)\b/,
qr/\bzone\d_(limit|hyst|range|critical|smooth)\b/,
qr/\bfan\d_(tach_mode|ppr)\b/,
],
"fscpos" => [
qr/\brev\b/,
qr/\bevent\b/,
qr/\bcontrol\b/,
qr/\bfan\d_ripple\b/,
qr/\bwdog_(preset|state|control)\b/,
],
"fscscy" => [
qr/\brev\b/,
qr/\bevent\b/,
qr/\bcontrol\b/,
qr/\btemp\d_lim\b/,
qr/\bfan\d_ripple\b/,
qr/\bwdog_(preset|state|control)\b/,
],
"fscher" => [
qr/\brev\b/,
qr/\bevent\b/,
qr/\bcontrol\b/,
qr/\bfan\d_ripple\b/,
qr/\bwdog_(preset|state|control)\b/,
],
"pcf8591" => [
qr/\bain_conf\b/,
qr/\baout_enable\b/,
qr/\baout\b/,
],
"vt1211" => [
qr/\bconfig\b/,
],
"vt8231" => [
qr/\bconfig\b/,
],
"max6650" => [
qr/\bspeed\b/,
],
"max6651" => [
qr/\bspeed\b/,
],
"applesmc" => [
qr/\bfan\d_(max|safe)\b/,
],
);
if (defined $ARGV[0] && ($ARGV[0] eq '-h' || $ARGV[0] eq '--help')) {
print "Convert sensors.conf from lm-sensors 2 format to lm-sensors 3 format\n",
"Typical usage: sensors-conf-convert < /etc/sensors.conf > /etc/sensors3.conf\n";
exit 0;
}
}
if ($. == 1) {
print "# Converted by sensors-conf-convert on ".localtime()."\n";
}
sub substitute_line($$)
{
my ($chip, $line) = @_;
# First the chip-specific ones
if ($chip && exists $chip_trans{$chip}) {
foreach my $t (keys %{$chip_trans{$chip}}) {
$line =~ s/$t/$chip_trans{$chip}->{$t}->()/ge;
}
}
# Then the general substitutions
foreach my $t (keys %trans) {
# Kudos to the nice folks in #perl on freenode :)
$line =~ s/$t/$trans{$t}->()/ge;
}
return $line;
}
sub delete_line($)
{
my $feature = shift;
# First the general deletions
foreach my $t (@delete) {
return 1 if $feature =~ m/$t/;
}
# Then the chip-specific ones
if ($chip && exists $chip_delete{$chip}) {
foreach my $t (@{$chip_delete{$chip}}) {
return 1 if $feature =~ m/$t/;
}
}
return 0;
}
if (m/^# Converted by sensors-conf-convert/) {
print STDERR "WARNING: Converting an already converted file!\n";
print STDERR " Result will be incorrect for some chip types.\n";
}
# Bus statements
if (m/^([\s#]*bus\s+"?i2c-\d+"?\s+"([^"]+)")\s+"[^"]*"/) {
print STDERR "Processing bus statement: $2\n" if $debug;
if ($2 eq "ISA main adapter") {
$_ = ''; # Drop entirely
} else {
$_ = "$1\n"; # Drop algorithm name
}
}
# Chip statements
elsif (m/^[\s#]*chip\s+"([\w\d*-]+)"/) {
# We only remember the first chip name, assuming that all chips
# in a given "chip" statement need the same specific processing
$chip = $1;
$chip =~ s/-.*//;
undef $chip if $chip eq "*";
# Remove dashes from chip names, as this is no longer allowed
s/(\s+"lm78-)j-/$1/g;
s/(\s+"maxilife-)(cg|co|as|nba)-/$1/g;
# Simplify possible duplicates
s/("lm78-\*")(\s+"lm78-\*")+/$1/g;
s/("maxilife-\*")(\s+"maxilife-\*")+/$1/g;
# "*" is no longer a valid chip name
s/"\*"/"\*-\*"/g;
print STDERR "Processing chip section: $chip\n" if $chip and $debug;
}
# Drop references to lm78-j
elsif (m/^\s*#+.*lm78-?j/i) {
s/(lm78), lm78-?j/$1/gi;
s/(lm78)-?j/$1/gi;
}
# Drop references to vrm
elsif (m/^[\s#]*set\s+vrm\s/i
|| m/^\s*#+\s*adjust this if your vid is wrong/i
|| m/^\s*#+\s*Also, one should set vrm prior to using vid in any formula/) {
$_ = '';
}
# Drop references to pwm
elsif (m/^\s*#+\s*PWM Output/i) {
$_ = '';
}
# Feature name substitution
elsif (m/^[\s#]*(?:label|ignore|set|compute)\s+(\S+)\s/) {
if (delete_line($1)) {
# Delete references to features that are now gone
$_ = '';
} else {
# Substitute feature names
$_ = substitute_line($chip, $_);
}
}
# Formula changes (in0 -> in0_input)
if (m/^([\s#]*compute\s+\S+)(.*)/) {
$first_part = $1;
$second_part = $2;
$second_part =~ s/in(\d+)/in$1_input/gi;
$_ = "$first_part$second_part\n";
$compute_next = 1 if (m/\\$/);
} elsif ($compute_next) {
s/in(\d+)/in$1_input/gi;
$compute_next = 0 if (! m/\\$/);
} else {
$compute_next = 0;
}
_______________________________________________________
E viu-se um grande sinal no céu: uma mulher vestida de sol, tendo a lua debaixo dos seus pés, e uma coroa de doze estrelas sobre a sua cabeça. Apocalipse 12:1 Nsa Sra de Fátima, Nsa Sra de Lourdes, Nsa Sra das Graças ...
_______________________________________________________
São Padre Pio de Pietrelcina, Santa Faustina Kowalska, São Francisco de Assis e Santa Gema Galgani foram alguns dos que tiveram os milagres dos Estigmas de Cristo em seus corpos, Ferimentos que sangravam
_______________________________________________________
Milagre Eucarístico que ocorreu em uma Igreja de Lanciano na Itália no ano de 750 em que o vinho se tornou sangue e o pão carne humana estão até hoje em seus estados naturais.
https://pt.wikipedia.org/wiki/Milagre_eucar%C3%ADstico_de_Lanciano
_______________________________________________________
A Luz veio ao mundo mas o mundo amou mais as trevas do que a Luz ( João 3, 19-20 )