Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RX570] Contrôle de la température
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Anard
Apprentice
Apprentice


Joined: 01 Oct 2020
Posts: 240

PostPosted: Sat Dec 14, 2024 2:41 pm    Post subject: [RX570] Contrôle de la température Reply with quote

Bonjour,

Je viens d'installer une carte graphique RX570 (Sapphire ITX). Celle-ci semble bien supportée dans l'ensemble.
En revanche, j'ai l'impression que le ventilateur n'est pas contrôlé correctement.

Celui-ci ne tourne pas, pourtant il est indiqué par sensors qu'il tourne :
Code:
 $ cat sensors
[...]
amdgpu-pci-0100
Adapter: PCI adapter
vddgfx:          900.00 mV
Ventilateur GPU: 1426 RPM  (min =    0 RPM, max = 3500 RPM)
edge:             +54.0°C  (crit = +94.0°C, hyst = -273.1°C)
PPT:              22.01 W  (cap = 120.00 W)
pwm1:                  0%
sclk:             404 MHz
mclk:               2 GHz


En fait, les réglages d'origine définissent un PWM toujour trop faible pour déclencher le ventilateur, même au-dessus de 50°C.
J'ai essayé de lancer pwmconfig, il parvient bien à le faire tourner à vitesse maximale (~3600 tr/min indiqué) puis l'arrêter temporairement mais quand je lance un test, rien ne se passe :
Code:
$ sudo pwmconfig
# pwmconfig version 3.6.2
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

Found the following devices:
   hwmon0 is acpitz
   hwmon1 is drivetemp
   hwmon10 is hid_1e:d8:aa:a4:99:41_battery
   hwmon2 is drivetemp
   hwmon3 is drivetemp
   hwmon4 is drivetemp
   hwmon5 is drivetemp
   hwmon6 is drivetemp
   hwmon7 is coretemp
   hwmon8 is it8620
   hwmon9 is amdgpu

Found the following PWM controls:
   hwmon8/pwm1           current value: 70
hwmon8/pwm1 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n)
   hwmon8/pwm2           current value: 70
hwmon8/pwm2 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n)
   hwmon8/pwm3           current value: 70
hwmon8/pwm3 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n)
   hwmon8/pwm4           current value: 70
hwmon8/pwm4 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n)
   hwmon8/pwm5           current value: 0
hwmon8/pwm5 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n)
   hwmon9/pwm1           current value: 0
hwmon9/pwm1 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n) y

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon8/fan1_input     current speed: 604 RPM
   hwmon8/fan2_input     current speed: 1285 RPM
   hwmon8/fan3_input     current speed: 437 RPM
   hwmon8/fan4_input     current speed: 0 ... skipping!
   hwmon8/fan5_input     current speed: 0 ... skipping!
   hwmon9/fan1_input     current speed: 3578 RPM

Warning!!! This program will stop your fans, one at a time,
for approximately 5 seconds each!!!
This may cause your processor temperature to rise!!!
If you do not want to do this hit control-C now!!!
Hit return to continue:

Testing pwm control hwmon9/pwm1 ...
  hwmon8/fan1_input ... speed was 604 now 607
    no correlation
  hwmon8/fan2_input ... speed was 1285 now 1225
    no correlation
  hwmon8/fan3_input ... speed was 437 now 436
    no correlation
  hwmon9/fan1_input ... speed was 3578 now 3116
    no correlation

No correlations were detected.
There is either no fan connected to the output of hwmon9/pwm1,
or the connected fan has no rpm-signal connected to one of
the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)

Did you see/hear a fan stopping during the above test (n)? y

Testing is complete.
Please verify that all fans have returned to their normal speed.

The fancontrol script can automatically respond to temperature changes
of your system by changing fanspeeds.
Do you want to set up its configuration file now (y)?
What should be the path to your fancontrol config file (/etc/fancontrol)?
Loading configuration from /etc/fancontrol ...
Device path of hwmon5 has changed
Device path of hwmon6 has changed
Device name of hwmon5 has changed
Device name of hwmon6 has changed
Configuration appears to be outdated, discarded

Select fan output to configure, or other action:
1) hwmon9/pwm1          3) Just quit         5) Show configuration
2) Change INTERVAL     4) Save and quit
select (1-n): 1

Devices:
hwmon0 is acpitz
hwmon1 is drivetemp
hwmon10 is hid_1e:d8:aa:a4:99:41_battery
hwmon2 is drivetemp
hwmon3 is drivetemp
hwmon4 is drivetemp
hwmon5 is drivetemp
hwmon6 is drivetemp
hwmon7 is coretemp
hwmon8 is it8620
hwmon9 is amdgpu

Current temperature readings are as follows:
hwmon0/temp1_input   27
hwmon0/temp2_input   29
hwmon1/temp1_input   29
hwmon2/temp1_input   29
hwmon3/temp1_input   31
hwmon4/temp1_input   31
hwmon5/temp1_input   31
hwmon6/temp1_input   29
hwmon7/temp1_input   33
hwmon7/temp2_input   32
hwmon7/temp3_input   32
hwmon7/temp4_input   31
hwmon7/temp5_input   31
hwmon8/temp1_input   27
hwmon8/temp2_input   -128
hwmon8/temp3_input   26
hwmon8/temp4_input   27
hwmon8/temp5_input   41
hwmon8/temp6_input   45
hwmon9/temp1_input   25

Select a temperature sensor as source for hwmon9/pwm1:
 1) hwmon0/temp1_input
 2) hwmon0/temp2_input
 3) hwmon1/temp1_input
 4) hwmon2/temp1_input
 5) hwmon3/temp1_input
 6) hwmon4/temp1_input
 7) hwmon5/temp1_input
 8) hwmon6/temp1_input
 9) hwmon7/temp1_input
10) hwmon7/temp2_input
11) hwmon7/temp3_input
12) hwmon7/temp4_input
13) hwmon7/temp5_input
14) hwmon8/temp1_input
15) hwmon8/temp2_input
16) hwmon8/temp3_input
17) hwmon8/temp4_input
18) hwmon8/temp5_input
19) hwmon8/temp6_input
20) hwmon9/temp1_input
21) None (Do not affect this PWM output)
select (1-n): 20

Enter the low temperature (degree C)
below which the fan should spin at minimum speed (20):

Enter the high temperature (degree C)
over which the fan should spin at maximum speed (60): 65

Enter the minimum PWM value (0-255)
at which the fan STOPS spinning (press t to test) (100): t

Now we decrease the PWM value to figure out the lowest usable value.
We will use a slightly greater value as the minimum speed.
[...]

Puis plus rien…

Pourriez-vous m'aider à le faire fonctionner correctement SVP ? Peut-être me manque-t-il des drivers ?
Merci beaucoup
_________________
"iMack" : GA-H97M-D3H, Intel i7 4790, 16Go DDR3, Intel HD4600, 2x SSD 256Go, HDD 500Go+2To / Clover - macOS Mojave / Gentoo-Xfce
"Portable" : HP 350G3, HDD 500Go / rEFInd - Xubuntu 20.04 / Windows 10


Last edited by Anard on Sun Dec 15, 2024 8:32 am; edited 1 time in total
Back to top
View user's profile Send private message
Anard
Apprentice
Apprentice


Joined: 01 Oct 2020
Posts: 240

PostPosted: Sat Dec 14, 2024 3:39 pm    Post subject: Reply with quote

J'ai testé manuellement en écrivant ceci, le ventilateur répond bien à ma demande :
Code:
# cd /sys/class/drm/card0/device/hwmon/hwmon9
# echo 1 > fan1_enable
# echo 100 > pwm1
# echo 150 > pwm1
# echo 200 > pwm1
# echo 255 > pwm1


Ce qui m'a permis de créer un /etc/fancontrol qui fonctionne correctement. Après avoir démarré fancontrol, le ventilateur semble géré correctement.

Code:
$ cat /etc/fancontrol
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon9=devices/pci0000:00/0000:00:01.0/0000:01:00.0
DEVNAME=hwmon9=amdgpu
FCTEMPS=hwmon9/pwm1=hwmon9/temp1_input
FCFANS= hwmon9/pwm1=
MINTEMP=hwmon9/pwm1=20
MAXTEMP=hwmon9/pwm1=65
MINSTART=hwmon9/pwm1=150
MINSTOP=hwmon9/pwm1=100


Mais comment se fait-il que celui-ci ne fonctionnait pas correctement à l'origine ? En effet, que ce soit pour le ventilo CPU et pour les ventilos du boîtier, ils étaient gérés automatiquement sans avoir besoin ni de configurer ni de démarrer fancontrol... Aussi, quand je cherchais la corrélation entre la vitesse et la valeur PWM, pwmconfig était capable de me faire une courbe de réponse du ventilateur concerné, apparemment il n'y parvient pas pour le GPU.
_________________
"iMack" : GA-H97M-D3H, Intel i7 4790, 16Go DDR3, Intel HD4600, 2x SSD 256Go, HDD 500Go+2To / Clover - macOS Mojave / Gentoo-Xfce
"Portable" : HP 350G3, HDD 500Go / rEFInd - Xubuntu 20.04 / Windows 10
Back to top
View user's profile Send private message
Anard
Apprentice
Apprentice


Joined: 01 Oct 2020
Posts: 240

PostPosted: Sun Dec 15, 2024 7:26 am    Post subject: Reply with quote

Aussi, je retrouve maintenant le souci que j'avais eu lors de ma première tentative d'utilisation de fancontrol sous Gentoo : le service crashe lors de la mise en veille du système…
https://forums.gentoo.org/viewtopic-t-1148000-highlight-fancontrol.html
_________________
"iMack" : GA-H97M-D3H, Intel i7 4790, 16Go DDR3, Intel HD4600, 2x SSD 256Go, HDD 500Go+2To / Clover - macOS Mojave / Gentoo-Xfce
"Portable" : HP 350G3, HDD 500Go / rEFInd - Xubuntu 20.04 / Windows 10
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum