Conky não mostra temperaturas da CPU no notebook

1. Conky não mostra temperaturas da CPU no notebook

Henrique
Henrique-RJ

(usa Outra)

Enviado em 30/12/2025 - 00:47h

Podem me ajudar ?

root@desktop:/home/pc# sensors
soc_dts0-virtual-0
Adapter: Virtual device
temp1: +46.0°C

coretemp-isa-0000
Adapter: ISA adapter
Core 0: +46.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +46.0°C (high = +105.0°C, crit = +105.0°C)

soc_dts1-virtual-0
Adapter: Virtual device
temp1: +44.0°C

emc1403-i2c-0-4d
Adapter: SMBus I801 adapter at 2000
temp1: +39.0°C (low = +0.0°C, hyst = +10.0°C)
(high = +85.0°C, hyst = +75.0°C)
(crit = +85.0°C, hyst = +75.0°C)
temp2: +39.0°C (low = +0.0°C, hyst = +10.0°C)
(high = +85.0°C, hyst = +75.0°C)
(crit = +85.0°C, hyst = +75.0°C)
temp3: +38.0°C (low = +0.0°C, hyst = +10.0°C)
(high = +85.0°C, hyst = +75.0°C)
(crit = +85.0°C, hyst = +75.0°C)

BAT1-acpi-0
Adapter: ACPI interface
in0: 0.00 V



-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

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 3 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, see <http://www.gnu.org/licenses/>.
]]

conky.config = {
alignment = false,
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'DejaVu Sans Mono:size=8',
gap_x = 750,
gap_y = 60,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = false,
double_buffer = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_hints = undecorated, below, sticky, skip_taskbar, skip_pager,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
show_graph_scale = false,
show_graph_range = false
}

conky.text = [[
${color white}System Monitor
$hr
Date: ${time %A - %d/%m/%Y} Time: ${time %H}:${time %M}:${time %S}
${color white}System:$color $sysname $kernel on $machine
$hr
${color white}Uptime:$color $uptime
${color white}Frequency (in GHz):$color $freq_g
${color white}CPU1 %:$color ${cpu cpu1%} ${cpubar 4}
${color white}CPU2 %:$color ${cpu cpu2%} ${cpubar 4}
${color white}RAM:${color green} $mem / $memeasyfree / $memfree / $memmax
${color white}Swap:$color $swap/ $swapmax - $swapperc% ${color yellow} ${swapbar 4}
$hr
${color white}UPS APC BE600N-BR:
${color white}Charge: ${apcupsd localhost 3551} ${apcupsd_charge}% Load:${apcupsd_load}% ${color yellow} ${apcupsd_loadbar 4}
${color white}Inp Volt: ${apcupsd_linev}V Time Left: ${apcupsd_timeleft}min
${color white}Reason: ${apcupsd_lastxfer}
$hr
${color white}Temperatures: Core0:$color ${hwmon 0 temp 1}°C Core1:$color ${hwmon 0 temp 3}°C HDD:$color ${exec hddtemp /dev/sda | awk '{print $NF}'}
#${color white}Voltages: Core0:$color ${hwmon 1 vol 0} Core1: ${hwmon 1 vol 1} 3,3V: ${hwmon 1 vol 2}
#${color white}5V: ${hwmon 1 vol 5} 12V: ${hwmon 1 vol 8} Vbat: ${hwmon 1 vol 8}
#${color white}CPU Fan:$color ${exec sensors | awk '/fan1/ { print $2 }'}rpm
$hr
${color white}Networking: ${color green} Up:$color ${upspeed wlp4s0} ${color green} Down:$color ${downspeed wlp4s0}
${color white}File systems:
${color white}Name PID CPU% MEM%
${color white}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color white}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color white}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color white}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color white}${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color white}${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
]]



  


2. Re: Conky não mostra temperaturas da CPU no notebook

Buckminster
Buckminster

(usa Debian)

Enviado em 30/12/2025 - 10:11h

Você está usando:

${hwmon 0 temp 1}
${hwmon 0 temp 3}

O número hwmon 0 pode não ser a CPU.

A CPU costuma aparecer na saída do comando sensors:
coretemp, k10temp, zenpower ou outro driver.

No teu caso é coretemp.

Como você colocou hwmon 0 e hwmon 1 o Conky não sabe onde está a temperatura da sua CPU.

Para ver os hwmon:
$ ls /sys/class/hwmon/
hwmon0 hwmon1

Depois para cada um:
$ cat /sys/class/hwmon/hwmon0/name

A saída pode ser coretemp, pch_skylake, k10temp, etc, depende do fabricante.

Para qual é a CPU, veja na saída de:
$ cat /sys/class/hwmon/hwmon0/name
$ cat /sys/class/hwmon/hwmon1/name

Por exemplo, aqui:
$ cat /sys/class/hwmon/hwmon0/name
pch_skylake
$ cat /sys/class/hwmon/hwmon1/name
coretemp

As saídas acima indicam que pch_skylake é o chipset da placa-mão e coretemp é a CPU.
Compare a saída do comando sensors com as saídas dos comandos cat, o que bater com a saída do comando sensors é a CPU; ou pesquise na internet pelo nome.

A temperatura real da CPU está aqui na saída do comando sensors:
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +46.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +46.0°C (high = +105.0°C, crit = +105.0°C)

Substitua essa linha no Conky:
${color white}Temperatures: Core0:$color ${hwmon 0 temp 1}°C Core1:$color ${hwmon 0 temp 3}°C

Por:
${color white}Temperatures:
${color white}Core 0:$color ${hwmon coretemp temp 2}°C
${color white}Core 1:$color ${hwmon coretemp temp 3}°C

Em temp deve ficar temp 2 e temp 3, mas confirme com:
$ cat /sys/class/hwmon/hwmon1/temp*_label

Por exemplo, aqui:
$ cat /sys/class/hwmon/hwmon1/temp*_label
Package id 0
Core 0
Core 1
Core 2
Core 3

temp1 é CPU Package id 0
temp2 é Core 0
temp3 é Core 1

Use sempre hwmon pelo nome (coretemp, k10temp, etc).
Não use hwmon 0, hwmon 1, etc.


_________________________________________________________
Rule number one: Always listen 'to' Buck!
Enquanto o cursor estiver pulsando, há vida!


3. Re: Conky não mostra temperaturas da CPU no notebook

Henrique
Henrique-RJ

(usa Outra)

Enviado em 30/12/2025 - 12:37h

Deu uma aula ...

Aqui funcionou para:

${color white}Temperatures:
${color white}Core 0:$color ${hwmon coretemp temp 2}°C
${color white}Core 1:$color ${hwmon coretemp temp 3}°C

root@desktop:/home/pc# cat /sys/class/hwmon/hwmon2/temp*_label
Core 0
Core 1

E já que me resolveu fácil essa xarada o que deveria eu fazer para a linha do código abaixo para visualizar a mensagem de alerta só quando a temperatura fosse maior que 50 ?

#${if_match ${execi 60 hddtemp /dev/sda | awk '{print $NF}'} > 50} ${color yellow} WARNING - HDD TEMPERATURE IS TOO HIGH ${endif}

Com essa linha a mensagem aparece sempre mesmo a temperatura estando abaixo de 50


_______________________________________________________
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 )


4. Re: Conky não mostra temperaturas da CPU no notebook

Buckminster
Buckminster

(usa Debian)

Enviado em 30/12/2025 - 13:20h

Tente assim:
Para eu:
${if_match ${execi 5 sensors | awk '/Package id 0/ {print $4}' | sed 's/[+°C]//g'} > 75}\
${color red}WARNING - CPU TEMPERATURE TOO HIGH${color}${endif}

Para você:
${if_match ${execi 5 sensors | awk '/Core 0/ {print $4}' | sed 's/[+°C]//g'} > 75}\
${color red}WARNING - CPU TEMPERATURE TOO HIGH${color}${endif}

Repare que depois do awk deve colocar o que estiver na saída do comando sensors, no meu caso Package id 0, no teu caso Core 0.

Acredito que antes não dava certo porque o if_match não estava comparando um número, mas sim uma string que continha o símbolo °C (awk '{print $NF}' pegava 56ºC, 32°C, etc), então a condição acabava sendo considerada sempre verdadeira.
Com sed separa a parte numérica do símbolo.
E você estava pegando a temperatura do HD (/dev/sda).
O problema não era exatamente do Conky.
E repare que acima coloquei o limite como 75°C, adapte para tuas necessidades.

Agora, se é do HD mesmo:
${if_match ${execi 60 hddtemp /dev/sda | awk '{print $NF}' | sed 's/[^0-9]//g'} > 50}${color yellow} WARNING - HDD TEMPERATURE IS TOO HIGH${endif}

Aqui fiz um alerta da CPU piscando:
${if_match ${execi 5 sensors | awk '/Package id 0/ {print $4}' | sed 's/[+°C]//g'} > 75}\
${if_match ${updates} % 2 == 0}${color red}${else}${color yellow}${endif}\
CUIDADO - A CPU ESTÁ DERRETENDO!!!\
${color}\
${endif}

Mas veja a marca e o modelo do processador porque tem processadores que trabalham fácil com 70°C, então o warning com 50°C será exibido toda hora nesse caso.

_________________________________________________________
Rule number one: Always listen 'to' Buck!
Enquanto o cursor estiver pulsando, há vida!


5. Re: Conky não mostra temperaturas da CPU no notebook

Henrique
Henrique-RJ

(usa Outra)

Enviado em 30/12/2025 - 15:58h

Quem sabe, sabe ... !!

Só com a ajuda de quem entende ou é especializado mesmo ...

Aqui tentei fazer o alerta piscar com a linha que sugeriu mas não pisca:

${if_match ${execi 60 hddtemp /dev/sda | awk '{print $NF}' | sed 's/[+°C]//g'} > 30} ${if_match ${updates}%2 = = 0} ${color yellow} ${else} ${color yellow} ${endif} WARNING - HDD TEMPERATURE IS TOO HIGH ${color} ${endif}

Onde estará o erro ? Será nos espaços entre os códigos ?

Minha preocupação com a temperatura deste HD é que ele esquenta muito ao ponto de causar travamento no sistema. É um HD IDE de 80GB antigão em um antigo Core 2 Duo que funciona bem. Instalei um cooler no gabinete que aparentemente resolveu o problema nesta máquina antiga mas mesmo assim quiz eu por esse alerta no conky para me avisar.

Um print da minha tela abaixo ...

Agradeço pela atenção


_______________________________________________________
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 )


6. Re: Conky não mostra temperaturas da CPU no notebook

Buckminster
Buckminster

(usa Debian)

Enviado em 30/12/2025 - 16:58h

Aqui
${color yellow} ${else} ${color yellow}

deixe assim

${color red} ${else} ${color yellow}

Ficando assim:
${if_match ${execi 60 hddtemp /dev/sda | awk '{print $NF}' | sed 's/[+°C]//g'} > 30}
${if_match ${updates} % 2 == 0}${color red}${else}${color yellow}${endif}\
CUIDADO - O HD ESTÁ DERRETENDO!!!\
${color}\
${endif}

Caso quiser uns temas estilizados do Conky, no link abaixo tem imagens e confs:
https://store.kde.org/browse?cat=124&order=latest

_________________________________________________________
Rule number one: Always listen 'to' Buck!
Enquanto o cursor estiver pulsando, há vida!


7. Re: Conky não mostra temperaturas da CPU no notebook

Henrique
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 )


8. Re: Conky não mostra temperaturas da CPU no notebook

Buckminster
Buckminster

(usa Debian)

Enviado em 30/12/2025 - 20:54h

O pisca-pisca tente assim:

${if_match ${execi 60 hddtemp /dev/sda | awk '{print $NF}' | sed 's/[+°C]//g'} > 30}
${if_match ${execi 1 date +%S} < 30}${color red}${else}${color yellow}${endif}\
CUIDADO - O HD ESTÁ DERRETENDO!!!\
${color}
${endif}

ou assim

${if_existing /dev/sda}
${if_match ${execi 60 sudo smartctl -A /dev/sda | awk '/Temperature_Celsius/ {print $10}'} > 30}

${if_match ${execi 1 sh -c 'echo $(( $(date +%s) % 2 ))'} == 0}
${color red}
${else}
${color yellow}
${endif}
CUIDADO - O HD ESTÁ DERRETENDO!!!
${color}

${endif}
${endif}

Este último funciona para eu, mas tem de instalar:
$ sudo apt install smartmontools

O hddtemp ficou obsoleto no Debian.

Daí para ver a temperatura no terminal, para SD nvme:
$ sudo smartctl -A /dev/nvme0n1 | grep -i temperature

E para SD sem ser nvme e HD:
$ sudo smartctl -A /dev/sda | grep -i temperature

E tem de colocar no conky.conf:
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]
update_interval 1 <<< acrescente essa linha no topo, logo antes das configurações, ela define o intervalo de atualização do monitoramento do sistema para 1 segundo.

conky.config = {
alignment = 'top_right',
background = false,
...

Em relação às voltagens:
O Conky só mostra o que o lm-sensors fornece.
Pelo que vi na saída do comando sensors não tem sensores dessas voltagens na tua máquina.

Confirme executando o código abaixo no terminal:

for i in /sys/class/hwmon/hwmon*; do
echo "== $(cat $i/name) =="
ls $i
done

Caso aparecer somente temp*, nenhum in*, então é porque não tem esses sensores, daí o Conky mostra qualquer coisa porque está pedindo no conf.
Sugiro retirar do Conky caso não tenha mesmo os sensores, pois daí não tem o que fazer.
Tire ou comente qualquer linha com voltage, in, +5V e +12V.

Por exemplo, aqui:
$ for i in /sys/class/hwmon/hwmon*; do
echo "== $(cat $i/name) =="
ls $i
done

== acpitz ==
device name power subsystem temp1_input uevent
== BAT0 ==
curr1_input device in0_input name power subsystem uevent
== coretemp ==
device temp1_max temp3_input temp5_crit
name temp2_crit temp3_label temp5_crit_alarm
power temp2_crit_alarm temp3_max temp5_input
subsystem temp2_input temp4_crit temp5_label
temp1_crit temp2_label temp4_crit_alarm temp5_max
temp1_crit_alarm temp2_max temp4_input uevent
temp1_input temp3_crit temp4_label
temp1_label temp3_crit_alarm temp4_max
== AC ==
device name power subsystem uevent
== dell_smm ==
device fan1_min pwm1 temp2_input temp4_input temp6_input
fan1_input fan1_target subsystem temp2_label temp4_label uevent
fan1_label name temp1_input temp3_input temp5_input
fan1_max power temp1_label temp3_label temp5_label


Veja que tem
== BAT0 ==
curr1_input device in0_input name power subsystem uevent

indicando in0_input o que bate com a saída do meu comando sensors na seção ao final:

BAT0-acpi-0
Adapter: ACPI interface
in0: 12.02 V
curr1: 2.04 A

Porém, não tem sensor de voltagem da placa-mãe.
Essa indicação é da bateria do notebook.

No teu caso tem:
BAT1-acpi-0
Adapter: ACPI interface
in0: 0.00 V

in0: 0.00 V indica que também não tem sensores de voltagens (tensão), mas confirme com o for.

Caso tivesse sensores o arquivo certo é /etc/sensors.d/nomedoarquivo.conf.
Em nomedoarquivo.conf seria um arquivo dentro de /etc/sensors.d e teria o nome, por exemplo, coretemp-isa-000.conf, dell_smm-isa-00de, etc, ou seja, algum desses que aparece na saída do comando sensors.

Não mexa nesses arquivos que você mostrou o conteúdo, alguns estão obsoletos.

Veja:
$ cd /etc/sensors.d
$ ls
$
Tem nada dentro aqui do diretório confirmando que não tem esses sensores, confirme aí vendo se tem alguma coisa dentro desse diretório.



_________________________________________________________
Rule number one: Always listen 'to' Buck!
Enquanto o cursor estiver pulsando, há vida!


9. Re: Conky não mostra temperaturas da CPU no notebook

Henrique
Henrique-RJ

(usa Outra)

Enviado em 31/12/2025 - 05:03h

Esta linha de códigos abaixo fez a mensagem de alerta piscar mas fica indiferente para > 30 ou > 60 talvez caindo naquela situação da string que você havia comentado:

#${if_existing /dev/sda} ${if_match ${execi 60 sudo smartctl -A /dev/sda | awk '/Temperature_Celsius/ {print $10}'}\
> 30} ${if_match ${execi 1 sh -c 'echo $(( $(date +%s) % 2 ))'} == 0} ${color red} ${else} ${color yellow} ${endif}\ WARNING: HDD TEMPERATURE IS TOO HIGH !!! ${color} ${endif} ${endif}

Lembrando que o HD é um antigão IDE de 80GB ( tijolão ), não é dos mais novos SD ou NVME.

_________________________________-

Quanto ás voltagens erradas de 5V (in5) e de 12V (in6) estarem mostrando as duas 4,1V no conky, o sensors do início deste tópico é do notebook. O sensors da máquina dessa questão é este abaixo:


pc@desktop:~$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +41.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +40.0°C (high = +76.0°C, crit = +100.0°C)

it8718-isa-0290
Adapter: ISA adapter
in0: 1.06 V (min = +0.00 V, max = +4.08 V)
in1: 1.90 V (min = +0.00 V, max = +4.08 V)
in2: 3.33 V (min = +0.00 V, max = +4.08 V)
+5V: 2.80 V (min = +0.00 V, max = +4.08 V)
in4: 608.00 mV (min = +0.00 V, max = +2.10 V)
in5: 4.08 V (min = +0.00 V, max = +4.08 V) ALARM
in6: 4.08 V (min = +0.00 V, max = +4.08 V) ALARM
in7: 3.12 V (min = +0.00 V, max = +4.08 V)
Vbat: 3.04 V
fan1: 1106 RPM (min = 10 RPM)
fan2: 2500 RPM (min = 10 RPM)
temp1: -55.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp2: -2.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp3: +31.0°C (low = +127.0°C, high = +60.0°C) sensor = thermal diode
cpu0_vid: +1.100 V
intrusion0: ALARM

pc@desktop:~$



Em /etc/sensors.d encontro apenas o arquivo .placeholder com zero bytes ou seja, sem conteúdo. Não tem mais nada dentro dessa pasta.

Rapaize ... essa coisa de conky dá trabalho e consome tempo né ?


_______________________________________________________
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 )


10. Re: Conky não mostra temperaturas da CPU no notebook

Buckminster
Buckminster

(usa Debian)

Enviado em 31/12/2025 - 16:26h

Vamos por partes, como o esquartejador!

Você colocou a linha update_interval 1 no /etc/conky/conky.conf?

Segue vídeozinho com o Conky aqui (Debian 13):

https://imgur.com/a/jG1S5Ev

O código é esse:

${if_existing /dev/sda}
${if_match ${execi 60 sudo smartctl -A /dev/sda | awk '/Temperature_Celsius/ {print $10}'} > 35}
${if_match ${execi 1 sh -c 'echo $(( $(date +%s) % 2 ))'} == 0}
${color red}
${else}
${color yellow}
${endif}
CUIDADO - O HD ESTÁ DERRETENDO!!!
${color}
${endif}
${endif}
]]

Repare que tem ]] no final, pois deve ficar dentro do bloco.

Teste no terminal com (lembre de verificar se /dev/sda é o HD em questão mesmo):
$ sudo smartctl -A /dev/sda | grep -i "temperature"
ou
$ sudo hddtemp /dev/sda

A parte "print $10" pega a décima coluna com a temperatura.
Para verificar se aí é a décima coluna execute:
$ sudo smartctl -A /dev/sda

A saída será algo parecido com:
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0032 100 100 --- Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 --- Old_age Always - 899
12 Power_Cycle_Count 0x0032 100 100 --- Old_age Always - 527
165 Block_Erase_Count 0x0032 100 100 --- Old_age Always - 30108811820
166 Minimum_PE_Cycles_TLC 0x0032 100 100 --- Old_age Always - 1

Daí você conta as colunas e adapta, se for o caso.
Aqui é a coluna RAW_VALUE com 194 Temperature_Celsius no começo.

Em relação à linha dos 12V no meu caso é:

${color grey}Voltagem 12V: ${execi 5 sensors | grep 'BAT0-acpi' -A2 | grep 'in0' | awk '{print $2}'}

Aqui é um notebook Dell Vostro 3550 de 2009 com SD (sem ser nvme) de 500 GB, mas no teu caso é diferente.

Em relação às voltagens!
Tive de pedir ajuda aos universitários do Chat "Jarvis" GPT, mas adaptei a resposta para teu caso.

"Isso não é um erro do Conky - ele apenas mostra exatamente o que o lm-sensors entrega.
O problema está na leitura das voltagens pelo chip IT8718 e na falta de calibração (escala/divisor) dessas entradas.

O que está acontecendo!
Nos chips da família ITE (it87):
As entradas inX não medem diretamente 12 V ou 5 V;
A placa-mãe usa divisores de tensão;
O driver não sabe automaticamente qual divisor sua placa usa.

Por isso:
O valor máximo fica em 4.08 V;
Leituras como 4.08 V ALARM significam apenas saturação do ADC;
O “+5V: 2.80 V” não é 5 V real, é o valor antes do fator de correção.

Resultado: o Conky mostra ~4.08 V porque essa é a leitura crua do sensor.

Como corrigir (se a placa permitir)!
Você precisa calibrar manualmente usando /etc/sensors.conf.

Identifique quais entradas são 5V e 12V!

Normalmente:
in5 ou in6 = 12 V
+5V ou in3 = 5 V

(Depende da placa - datasheet ou tentativa/erro)

Edite /etc/sensors.conf
$ sudo nano /etc/sensors.conf

Adicione algo assim (exemplo típico):

chip "it8718-*"

label in5 "12V"
compute in5 @ * 3, @ / 3

label in3 "5V"
compute in3 @ * 2, @ / 2

Os multiplicadores (* 2, * 3) variam conforme a placa-mãe.
Você ajusta até o valor bater com o medido no BIOS ou multímetro.

Recarregue os sensores
$ sudo sensors -s
$ sensors

Agora o sensors deve mostrar algo próximo de:

12V: 11.9 V
5V: 5.02 V

E o Conky passará a mostrar corretamente.

Quando NÃO tem solução!
Em muitas placas:
As linhas 12 V e 5 V não são conectadas;
Ou o divisor real é desconhecido;
Ou o driver simplesmente não suporta.

Nesse caso:
Não há como obter valores confiáveis no Linux;
Nem Conky, nem lm-sensors conseguem corrigir.

Resumo rápido:
-Conky não está errado;
-lm-sensors está mostrando valores crus;
-Precisa de compute no sensors.conf;
-Algumas placas simplesmente não permitem leitura correta."

No meu caso no notebook aqui não tinha o arquivo /etc/sensors.conf e nem precisei criá-lo dentro de /etc/sensors.d, somente acrescentei a linha no ~/.conkyrc.
No teu caso, se não tiver o arquivo /etc/sensors.conf é preciso criar o arquivo dentro de /etc/sensors.d, colocar as linhas e recarregar os sensores.
Teste aí.

Aqui eu não deixo o Conky ligado o tempo todo, somente aciono ele pela linha de comando (conky) quando quero verificar algum valor, no mais deixo desligado.


_________________________________________________________
Rule number one: Always listen 'to' Buck!
Enquanto o cursor estiver pulsando, há vida!


11. Re: Conky não mostra temperaturas da CPU no notebook

Henrique
Henrique-RJ

(usa Outra)

Enviado em 31/12/2025 - 19:50h

No sensors, no terminal, essas tensões agora ficaram dentro do que seria o normal com a fórmula para " chip it8718 " que você indicou para o /etc/sensors.conf


root@desktop:/home/pc# sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +41.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +38.0°C (high = +76.0°C, crit = +100.0°C)

it8718-isa-0290
Adapter: ISA adapter
in0: 1.17 V (min = +0.00 V, max = +4.08 V)
in1: 1.90 V (min = +0.00 V, max = +4.08 V)
in2: 3.34 V (min = +0.00 V, max = +4.08 V)
5V: 5.63 V (min = +0.00 V, max = +8.16 V)
in4: 432.00 mV (min = +0.00 V, max = +2.10 V)
12V: 12.24 V (min = +0.00 V, max = +12.24 V) ALARM
in6: 4.08 V (min = +0.00 V, max = +4.08 V) ALARM
in7: 3.14 V (min = +0.00 V, max = +4.08 V)
Vbat: 3.04 V
fan1: 1108 RPM (min = 10 RPM)
fan2: 2454 RPM (min = 10 RPM)
temp1: -55.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp2: -2.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp3: +31.0°C (low = +127.0°C, high = +60.0°C) sensor = thermal diode
cpu0_vid: +1.100 V
intrusion0: ALARM

root@desktop:/home/pc#


Mas no conky continuam aparecendo as tensões antigas erradas para 5V ( in3 ) e 12V ( in6 ) isto é, 2,8V e 4,1V respectivamente. Antes estavam 4,1V ( in5 ) e 4,1V ( in6 )


_________________________________________________



Quanto ao pisca pisca da mensagem do HD continua do mesmo jeito. A mensagem de alerta pisca o tempo todo ponha eu a temperatura que for na linha de comando seja > 30 ou > 60

________________________________________________

Eu vi o vídeozinho que postou e teu conky é bem simples

Isso parece estar te dando muito trabalho e te consumindo tempo. Se achar melhor ficamos por aqui que você já me ajudou muito. ;-)


_______________________________________________________
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 )


12. Re: Conky não mostra temperaturas da CPU no notebook

Buckminster
Buckminster

(usa Debian)

Enviado em 31/12/2025 - 21:07h

Qual é o sistema (Debian, Ubuntu, etc)?
E posta aqui todo teu conkyrc como está agora.

"Mas no conky continuam aparecendo as tensões antigas erradas para 5V ( in3 ) e 12V ( in6 ) isto é, 2,8V e 4,1V respectivamente. Antes estavam 4,1V ( in5 ) e 4,1V ( in6 )"

A tensão 5V é in3, a tensão 12V é in5, não é in6.
Confira se você colocou certo no arquivo sensors.conf.


_________________________________________________________
Rule number one: Always listen 'to' Buck!
Enquanto o cursor estiver pulsando, há vida!



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts