Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 23-09-2017 16:18:37

Debian Alain
Membre
Lieu : BREST 29200
Distrib. : W$10 1709 / stretch / ubuntu 17.10 / buster-sid
Noyau : Linux 4.13.0-0.bpo.1-amd64
(G)UI : Mate / Gdm3
Inscription : 11-03-2017

[résolu] conky température gpu

bonjour ,

je cherche , en vain jusqu'ici , le moyen de lire la température de mon GPU et de l'afficher dans conky .

j'ai trouvé la  fonction

${execi 60 sensors | grep 'Package id 0' | cut -c 1-25}



qui m'affiche la température moyenne du processeur .

mais , au contraire de lmsensors , je ne trouve aucun programme qui me  donne la température de mon GPU.

j'ai trouvé ce site qui m'a , pour partie , inspiré :

https://forums.bunsenlabs.org/viewtopic.php?id=789

voilà mon conky.conf :

$ cat /etc/conky/conky.conf



-- 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 = 'top_left',
    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=12',
    gap_x = 5,
    gap_y = 60,
    minimum_height = 5,
  minimum_width = 5,
    net_avg_samples = 2,
    double_buffer = yes,
    no_buffers = yes,
    text_buffer_size = 2048,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
$hr
${scroll 37 $nodename $sysname $kernel on $machine}
$hr
          ${font steelworks:pixelsize=40}${time %H:%M:%S}${font}
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color green}RAM Usage: $mem/$memmax - $memperc% ${color green} ${membar 4}
${color green}Swap Usage: $swap/$swapmax - $swapperc% ${color green} ${swapbar 4}
${color red}CPU Usage: $cpu% ${color red} ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color yellow}File systems:
 /    ${color yellow}${fs_used /}/${fs_size /} ${color yellow} ${fs_bar 6 /}
 /tmp ${color yellow}${fs_used /tmp}/${fs_size /tmp} ${color yellow} ${fs_bar 6 /tmp}
 /var ${color yellow}${fs_used /var}/${fs_size /var} ${color yellow} ${fs_bar 6 /var}
${color grey}Networking:
Up:$color ${upspeed enp3s0} ${color grey} - Down:$color ${downspeed enp3s0}
$hr
${color orange} Name              PID    CPU%   MEM%
${color orange} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color orange} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color orange} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color orange} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$hr
${color white}Température des disques durs :
WIN10 / D. STRETCH  sda : ${hddtemp /dev/sda}°C
SAUVEGARDES W10     sdb : ${hddtemp /dev/sdb}°C
CLONEZILLA          sdc : ${hddtemp /dev/sdc}°C
UBUNTU / D. BUSTER  sdd : ${hddtemp /dev/sdd}°C
HDD EXT 3           sde : ${hddtemp /dev/sde}°C
HDD EXT 4           sdf : ${hddtemp /dev/sdf}°C
$hr
Temperature des coeurs du processeur :
      ${execi 60 sensors | grep 'Package id 0' | cut -c 1-25}
      ${execi 60 sensors | grep 'Core 0' | cut -c 1-25}
      ${execi 60 sensors | grep 'Core 1' | cut -c 1-25}
      ${execi 60 sensors | grep 'Core 2' | cut -c 1-25}
      ${execi 60 sensors | grep 'Core 3' | cut -c 1-25}
$hr
${color lightblue}Espace Disque Libre :
WINDOWS 10        Libre : ${fs_free_perc /media/alain/WIND_10} %
SAUVEGARDES WIN10 Libre : ${fs_free_perc /media/alain/SAUVEGARDES W10} %
DEBIAN STRETCH    Libre : ${fs_free_perc /home} %
CLONEZILLA        Libre : ${fs_free_perc /media/alain/CLONEZILLA} %
UBUNTU            Libre : ${fs_free_perc /media/alain/8493cc7d-746c-4b19-98bf-bb57187cbb8e} %
DEBIAN BUSTER     Libre : ${fs_free_perc /media/alain/0a196521-86c6-4c29-8562-366c15f3b026} %
HDD EXT 3         Libre : ${fs_free_perc /media/alain/HDD EXT 3} %
HDD EXT 4         Libre : ${fs_free_perc /media/alain/HDD EXT 4} %
$hr
]]
 



et voilà le résultat :

392935Capturedu20170923161407.png

j'ai trouvé ceci :

https://askubuntu.com/questions/34449/h … -ati-intel

https://askubuntu.com/questions/132433/ … phics-card

https://www.unixmen.com/howto-install-a … in-ubuntu/

mais pour l'instant , cela ne me mêne nulle part .

Dernière modification par Debian Alain (24-09-2017 14:15:11)


1498826560.jpg 1498812139.jpg Bip ! Bip !

Hors ligne

#2 23-09-2017 17:33:00

nIQnutn
Modérateur
Lieu : Lyon
Distrib. : Stretch
Noyau : Linux 4.9.0-3-amd64
(G)UI : Gnome
Inscription : 16-03-2012
Site Web

Re : [résolu] conky température gpu

lspci

En ligne

#3 23-09-2017 17:43:03

Debian Alain
Membre
Lieu : BREST 29200
Distrib. : W$10 1709 / stretch / ubuntu 17.10 / buster-sid
Noyau : Linux 4.13.0-0.bpo.1-amd64
(G)UI : Mate / Gdm3
Inscription : 11-03-2017

Re : [résolu] conky température gpu

$ lspci



00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.4 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c4)
00:1c.6 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 7 (rev c4)
00:1c.7 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 8 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Z77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01)
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon RX 550] (rev c7)
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aae0
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)
04:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 03)
05:02.0 USB controller: NEC Corporation OHCI USB Controller (rev 43)
05:02.1 USB controller: NEC Corporation OHCI USB Controller (rev 43)
05:02.2 USB controller: NEC Corporation uPD72010x USB 2.0 Controller (rev 04)
06:00.0 USB controller: Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller (rev 02)
07:00.0 SATA controller: Marvell Technology Group Ltd. Device 9215 (rev 11)
 



$ lspci | grep VGA



02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon RX 550] (rev c7)
 



j'ai trouvé ça :

https://debian-facile.org/doc:materiel: … ue:ati:ati

sachant que je dispose de xserver-xorg-video-amdgpu sur mon systeme ,

est ce que je peux faire ceci :

apt-get install fglrx-modules-dkms fglrx-driver linux-headers-$(uname -r) fglrx-control

?

ou je désinstalle amdgpu d'abord ?

la page suivante n'est pas très rassurante :

https://unix.stackexchange.com/question … an-stretch

dans le fil suivant :

https://debian-facile.org/viewtopic.php?id=16432

je relève les propos de robert2a :

le firmware est obligatoire pour prendre en compte la prise en charge materielle de la carte .
le fglrx a été abandonné par debian pour stretch .



autrement dit :

je ne peux pas obtenir de données techniques sur ma carte (T°C) tant que je n'aurai pas le firmware .
sachant que fglrx est abandonné par stretch , il y a 1 chance sur 3 pour que je puisse , un jour , obtenir ces renseignements .

je vais faire des recherches pour buster ; sachant que , là , au moins , j'ai le firmware et peut être fglrx ....

sous buster :

$ apt-cache policy fglrx-modules-dkms fglrx-driver fglrx-control



N: Impossible de trouver le paquet fglrx-modules-dkms
N: Impossible de trouver le paquet fglrx-driver
N: Impossible de trouver le paquet fglrx-control
 


donc , dans debian 10 , fglrx n'existe plus .

et sous stretch , c'est pas mieux :

$ apt-cache policy fglrx-modules-dkms fglrx-driver fglrx-control



N: Impossible de trouver le paquet fglrx-modules-dkms
N: Impossible de trouver le paquet fglrx-driver
N: Impossible de trouver le paquet fglrx-control
 



maintenant , ni sous stretch , ni sous buster , fglrx n'existe pas (plus) .
donc , depuis stretch , impossible de récupérer ne serai-ce que la température de la carte graphique AMD/ATI Radeon (RX550)

si quelqun peut me tuyauter ....

j'utilise xserver-xorg-video-amdgpu et firmware-amd-graphics .
sous  buster mate tout est ok sauf fglrx qui n'existe plus .

à regarder : (faites vos recherches , vous verrez bien si je me trompe)  smile
https://packages.debian.org/search?keyw … lrx-driver

Dernière modification par Debian Alain (23-09-2017 20:50:44)


1498826560.jpg 1498812139.jpg Bip ! Bip !

Hors ligne

#4 24-09-2017 01:28:38

robert2a
Membre
Lieu : France
Distrib. : Stretch 9
Noyau : Linux 4.9.0-3 4.9.30-2
(G)UI : Mate
Inscription : 15-11-2014

Re : [résolu] conky température gpu

Bonjour

pour nvidia tu a avec le driver propriétaire le paquet nvidia-smi et le paquet nvidia-settings

pour AMD je sais pas , il faut voir avec la commande "sensors-detect" (du paquet lm-sensors)  si il te propose un module (a charger) a la fin pour AMD GPU
je pense pas avoir fait le test , et la carte n'est plus en service.

pour fglrx tu oublie , c'est pour les vieilles cartes AMD et en plus il ne fonctionne plus avec gnome depuis stretch .
ta carte graphique a besoin d'un driver propriétaire plus récent , il me semble pas qu il y ai un projet sur debian (comme pour nvidia ) pour l' intégrer dans le non-free
et pour le driver libre AMD aucune idée , mais ta carte ne chauffe pas , le ventilateur tourne en permanence et elle consomme très peu

Hors ligne

#5 24-09-2017 10:16:01

Debian Alain
Membre
Lieu : BREST 29200
Distrib. : W$10 1709 / stretch / ubuntu 17.10 / buster-sid
Noyau : Linux 4.13.0-0.bpo.1-amd64
(G)UI : Mate / Gdm3
Inscription : 11-03-2017

Re : [résolu] conky température gpu

voilà mon sensors-detect , robert2a , je n'y ai trouvé  aucune référence à la carte graphique pci-e


# sensors-detect



# sensors-detect revision 6284 (2015-05-31 14:00:33 +0200)
# Board: ASUSTeK COMPUTER INC. P8Z77-V LX
# Kernel: 4.12.0-0.bpo.1-amd64 x86_64
# Processor: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz (6/42/7)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): y
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 16h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 thermal sensor...                       No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): y
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               Yes
Found `Nuvoton NCT5532D/NCT6779D Super IO Sensors'          Success!
    (address 0x290, driver `nct6775')
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No

Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): y
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (yes/NO): n

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): y
Using driver `i2c-i801' for device 0000:00:1f.3: Intel Panther Point (PCH)
Module i2c-dev loaded successfully.

Next adapter: SMBus I801 adapter at f000 (i2c-0)
Do you want to scan it? (YES/no/selectively): y
Client found at address 0x51
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Client found at address 0x53
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)


Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

Driver `nct6775':
  * ISA bus, address 0x290
    Chip `Nuvoton NCT5532D/NCT6779D Super IO Sensors' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
nct6775
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)n

Unloading i2c-dev... OK
Unloading cpuid... OK

 


1498826560.jpg 1498812139.jpg Bip ! Bip !

Hors ligne

#6 24-09-2017 10:54:13

Severian
Membre
Distrib. : Debian GNU/Linux 8.7 (jessie)
Noyau : Linux 4.9.0-0.bpo.1-amd64
(G)UI : Openbox 3.6.1-4
Inscription : 13-12-2014

Re : [résolu] conky température gpu

bonsoir
il un point qui me chiffonne dans ton conky

Temperature des coeurs du processeur :
      ${execi 60 sensors | grep 'Package id 0' | cut -c 1-25}
      ${execi 60 sensors | grep 'Core 0' | cut -c 1-25}
      ${execi 60 sensors | grep 'Core 1' | cut -c 1-25}
      ${execi 60 sensors | grep 'Core 2' | cut -c 1-25}
      ${execi 60 sensors | grep 'Core 3' | cut -c 1-25}


pourquoi n'utilise tu pas directement la commande hwmon ?
https://github.com/brndnmtthws/conky/wi … -Variables

hwmon
(dev) type n (factor offset)
Hwmon sensor from sysfs (Linux 2.6). Parameter dev may be omitted if you have only one hwmon device. Parameter type is either 'in' or 'vol' meaning voltage; 'fan' meaning fan; 'temp' meaning temperature. Parameter n is number of the sensor. See /sys/class/hwmon/ on your local computer. The optional arguments 'factor' and 'offset' allow precalculation of the raw input, which is being modified as follows: 'input = input * factor + offset'. Note that they have to be given as decimal values (i.e. contain at least one decimal place).


ça t'évitera de faire lancer à conky la commande sensors, il lui suffit de lire les résultats qui sont inscrit dans /sys/class/hwmon/...

dans conky ça se présente sous la forme (par exemple)

${hwmon 1 temp 2}


qui représente pour moi
hwmon 1 −> températures des processeurs
temp 2 -> température du premier cœur (le temp1 étant la température général)


"il est urgent d'attendre" (bendia)
ob3-de10.pngbanner98x30.png

Hors ligne

#7 24-09-2017 13:38:30

Debian Alain
Membre
Lieu : BREST 29200
Distrib. : W$10 1709 / stretch / ubuntu 17.10 / buster-sid
Noyau : Linux 4.13.0-0.bpo.1-amd64
(G)UI : Mate / Gdm3
Inscription : 11-03-2017

Re : [résolu] conky température gpu

merci severian .

sous buster mate , j'ai trouvé la soluce pour le gpu .

lm-sensors le prenant en charge , j'ai pu utiliser hwmon .

ce qui donne :


     Carte graphique :
     GPU Temp     ${hwmon 0 temp 1} °C
     GPU Fan      ${hwmon 0 fan 1} Tr/Min
 



par contre , pour la température des coeurs du µp , je n'y arrive pas .

hwmon ne  fonctionne pas dans ce cas .

${hwmon 4 temp 1}  (T°C générale) fonctionne mais pas les suivants .

$ cat /etc/conky/conky.conf



-- 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 = 'top_right',
    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=12',
    gap_x = 5,
    gap_y = 60,
    minimum_height = 5,
  minimum_width = 5,
    net_avg_samples = 2,
    double_buffer = true,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
          ${font steelworks:pixelsize=40}${time %H:%M:%S}${font}
$hr
${scroll 37 $nodename - $sysname $kernel on $machine | }
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
 / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color grey}Networking:
Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}
$hr
${color grey} Name              PID    CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$hr
     Disques durs :
WIN10/DEBIAN   : sda ${hddtemp /dev/sda}°C
SAUVEGARDES w10: sdb ${hddtemp /dev/sdb}°C
CLONEZILLA     : sdc ${hddtemp /dev/sdc}°C
UBUNTU/BUSTER  : sdd ${hddtemp /dev/sdd}°C
HDD EXT 3      : sde ${hddtemp /dev/sde}°C
HDD EXT 4      : sdf ${hddtemp /dev/sdf}°C
$hr
     Microprocesseur :
     ${execi 60 sensors | grep 'Package id 0' | cut -c1-25}
     ${execi 60 sensors | grep 'Core 0' | cut -c1-25}
     ${execi 60 sensors | grep 'Core 1' | cut -c1-25}
     ${execi 60 sensors | grep 'Core 2' | cut -c1-25}
     ${execi 60 sensors | grep 'Core 3' | cut -c1-25}
$hr
     Carte graphique :
     GPU Temp     ${hwmon 0 temp 1} °C
     GPU Fan      ${hwmon 0 fan 1} Tr/Min
 



et voilà mon sensors :

$ sensors



amdgpu-pci-0200
Adapter: PCI adapter
fan1:         903 RPM
temp1:        +42.0°C  (crit =  +0.0°C, hyst =  +0.0°C)

nct6779-isa-0290
Adapter: ISA adapter
Vcore:                  +0.75 V  (min =  +0.00 V, max =  +1.74 V)
in1:                    +1.02 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:                   +3.28 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:                  +3.28 V  (min =  +2.98 V, max =  +3.63 V)
in4:                    +1.02 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:                    +0.00 V  (min =  +0.00 V, max =  +0.00 V)
in6:                    +0.98 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
3VSB:                   +3.39 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:                   +3.28 V  (min =  +2.70 V, max =  +3.63 V)
in9:                    +1.05 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in10:                   +0.14 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in11:                   +0.12 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in12:                   +0.11 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in13:                   +0.11 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in14:                   +0.12 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
fan1:                   287 RPM  (min =    0 RPM)
fan2:                   871 RPM  (min =    0 RPM)
fan3:                     0 RPM  (min =    0 RPM)
fan4:                     0 RPM  (min =    0 RPM)
fan5:                     0 RPM  (min =    0 RPM)
SYSTIN:                +121.0°C  (high =  +0.0°C, hyst =  +0.0°C)  sensor = thermistor
CPUTIN:                 +29.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
AUXTIN0:                +34.0°C  (high =  +0.0°C, hyst =  +0.0°C)  sensor = thermistor
AUXTIN1:               +113.0°C    sensor = thermistor
AUXTIN2:               +111.0°C    sensor = thermistor
AUXTIN3:                +34.0°C    sensor = thermal diode
PECI Agent 0:           +33.5°C  
PCH_CHIP_CPU_MAX_TEMP:   +0.0°C  
PCH_CHIP_TEMP:           +0.0°C  
PCH_CPU_TEMP:            +0.0°C  
intrusion0:            ALARM
intrusion1:            ALARM
beep_enable:           disabled

acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +99.0°C)
temp2:        +29.8°C  (crit = +99.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:        0 RPM

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +35.0°C  (high = +80.0°C, crit = +98.0°C)
Core 0:        +35.0°C  (high = +80.0°C, crit = +98.0°C)
Core 1:        +34.0°C  (high = +80.0°C, crit = +98.0°C)
Core 2:        +31.0°C  (high = +80.0°C, crit = +98.0°C)
Core 3:        +34.0°C  (high = +80.0°C, crit = +98.0°C)
 



voilà mon résultat  :

1506253253.png

Dernière modification par Debian Alain (24-09-2017 13:41:27)


1498826560.jpg 1498812139.jpg Bip ! Bip !

Hors ligne

#8 24-09-2017 13:54:08

Severian
Membre
Distrib. : Debian GNU/Linux 8.7 (jessie)
Noyau : Linux 4.9.0-0.bpo.1-amd64
(G)UI : Openbox 3.6.1-4
Inscription : 13-12-2014

Re : [résolu] conky température gpu

il faudrait voir le contenu de tes dossiers /sys/class/hwmon/
pour voir quelle sont ceux qui sont lié aux cpu
normalement c'est indiqué dans les fichiers tempx_label

"il est urgent d'attendre" (bendia)
ob3-de10.pngbanner98x30.png

Hors ligne

#9 24-09-2017 15:51:08

Debian Alain
Membre
Lieu : BREST 29200
Distrib. : W$10 1709 / stretch / ubuntu 17.10 / buster-sid
Noyau : Linux 4.13.0-0.bpo.1-amd64
(G)UI : Mate / Gdm3
Inscription : 11-03-2017

Re : [résolu] conky température gpu

$ ls -la /sys/class/hwmon/



total 0
drwxr-xr-x  2 root root 0 sept. 24 15:46 .
drwxr-xr-x 52 root root 0 sept. 24  2017 ..
lrwxrwxrwx  1 root root 0 sept. 24 14:09 hwmon0 -> ../../devices/virtual/hwmon/hwmon0
lrwxrwxrwx  1 root root 0 sept. 24 14:09 hwmon1 -> ../../devices/platform/coretemp.0/hwmon/hwmon1
lrwxrwxrwx  1 root root 0 sept. 24 14:09 hwmon2 -> ../../devices/platform/nct6775.656/hwmon/hwmon2
lrwxrwxrwx  1 root root 0 sept. 24 14:09 hwmon3 -> ../../devices/platform/eeepc-wmi/hwmon/hwmon3
lrwxrwxrwx  1 root root 0 sept. 24 14:09 hwmon4 -> ../../devices/pci0000:00/0000:00:1c.0/0000:02:00.0/hwmon/hwmon4
 



après recherches :

$ ls -la /sys/class/hwmon/hwmon1/



total 0
drwxr-xr-x 3 root root    0 sept. 24 15:50 .
drwxr-xr-x 3 root root    0 sept. 24 14:09 ..
lrwxrwxrwx 1 root root    0 sept. 24 14:09 device -> ../../../coretemp.0
-r--r--r-- 1 root root 4096 sept. 24 14:09 name
drwxr-xr-x 2 root root    0 sept. 24 14:13 power
lrwxrwxrwx 1 root root    0 sept. 24 14:10 subsystem -> ../../../../../class/hwmon
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp1_crit
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp1_crit_alarm
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp1_input
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp1_label
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp1_max
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp2_crit
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp2_crit_alarm
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp2_input
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp2_label
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp2_max
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp3_crit
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp3_crit_alarm
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp3_input
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp3_label
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp3_max
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp4_crit
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp4_crit_alarm
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp4_input
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp4_label
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp4_max
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp5_crit
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp5_crit_alarm
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp5_input
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp5_label
-r--r--r-- 1 root root 4096 sept. 24 14:09 temp5_max
-rw-r--r-- 1 root root 4096 sept. 24 14:09 uevent
 



alain@Alain-Buster-PC:/sys/class/hwmon/hwmon1$ cat temp2_label



Core 0
 



évidemment , si je confonds hwmon 4 avec hwmon 1 ....

j'ai corrigé mon conky.conf :

$ cat /etc/conky/conky.conf



-- 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 = 'top_right',
    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=12',
    gap_x = 5,
    gap_y = 60,
    minimum_height = 5,
  minimum_width = 5,
    net_avg_samples = 2,
    double_buffer = true,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
          ${font steelworks:pixelsize=40}${time %H:%M:%S}${font}
$hr
${scroll 37 $nodename - $sysname $kernel on $machine | }
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
 / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color grey}Networking:
Up:$color ${upspeed enp3s0} ${color grey} - Down:$color ${downspeed enp3s0}
$hr
${color grey} Name              PID    CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$hr
    Température Des Disques durs    
WIN10/DEBIAN     sda : ${hddtemp /dev/sda}°C
SAUVEGARDES w10  sdb : ${hddtemp /dev/sdb}°C
CLONEZILLA       sdc : ${hddtemp /dev/sdc}°C
UBUNTU/BUSTER    sdd : ${hddtemp /dev/sdd}°C
HDD EXT 3        sde : ${hddtemp /dev/sde}°C
HDD EXT 4        sdf : ${hddtemp /dev/sdf}°C
$hr
     Température Microprocesseur
Température moyenne  : ${hwmon 1 temp 1} °C
Température coeur 0  : ${hwmon 1 temp 2} °C
Température coeur 1  : ${hwmon 1 temp 3} °C
Température coeur 2  : ${hwmon 1 temp 4} °C
Température coeur 3  : ${hwmon 1 temp 5} °C
$hr
     AMD / ATI Radeon RX 550
     GPU Température : ${hwmon 4 temp 1} °C
     GPU Ventilateur : ${hwmon 4 fan 1} Tr/Min
]]

 




et voilà le résultat :

1506270096.png

Dernière modification par Debian Alain (24-09-2017 18:25:44)


1498826560.jpg 1498812139.jpg Bip ! Bip !

Hors ligne

Pied de page des forums