Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 25/04/2021, à 19:03

Nexurcis

Problème de configuration mbpfan

Linux ptitsmonstres-iMac 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Imac 21" de 2011

Bonjour,

J'ai un problème depuis la réinstallation de mbpfan.

Quand je lance

mbpfan -v -t

il me rend

Starting the tests..
It is normal for them to take a bit to finish.
Using new sensor path for kernel >= 3.15.0 or some CentOS versions with kernel 3.10.0
Found hwmon path at /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp
Found 5 sensors
Found 3 fans
Using new sensor path for kernel >= 3.15.0 or some CentOS versions with kernel 3.10.0
Found hwmon path at /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp
Found 5 sensors
Couldn't open configfile, using defaults
Error: max_fan_speed value is not 6200 
Tests run: 5

Et voici mon mbpfan.conf

[general]
# see https://ineed.coffee/3838/a-beginners-tutorial-for-mbpfan-under-ubuntu for the values
# 
# mbpfan will load the max / min speed of from the files produced by the applesmc driver. If these files are not found it will set all fans to the default of min_speed = 2000 and max_speed = 6300
# by setting the values for the speeds in this config it will override whatever it finds in:
# /sys/devices/platform/applesmc.768/fan*_min
# /sys/devices/platform/applesmc.768/fan*_max
# or the defaults.
#
# multiple fans can be configured by using the config key of min_fan*_speed and max_fan*_speed
# the number used will correlate to the file number of the fan in the applesmc driver that are used to control the fan speed.
#
min_fan1_speed = 2000	# put the *lowest* value of "cat /sys/devices/platform/applesmc.768/fan*_min"
max_fan1_speed = 4350	# put the *highest* value of "cat /sys/devices/platform/applesmc.768/fan*_max"
min_fan2_speed = 2000	# put the *lowest* value of "cat /sys/devices/platform/applesmc.768/fan*_min"
max_fan2_speed = 6300	# put the *highest* value of "cat /sys/devices/platform/applesmc.768/fan*_max"
min_fan3_speed = 1200	# put the *lowest* value of "cat /sys/devices/platform/applesmc.768/fan*_min"
max_fan3_speed = 2600	# put the *highest* value of "cat /sys/devices/platform/applesmc.768/fan*_max"

# temperature units in celcius
min_fan1_speed = 2000 # default is 2000
max_fan1_speed = 4000 # default is 4350
min_fan2_speed = 2000 # default is 2000
max_fan2_speed = 6300 # default is 6300
min_fan3_speed = 1400 # default is 1200
max_fan3_speed = 2600 # default is 2600
low_temp = 63 # try ranges 55-63, default is 63
high_temp = 66 # try ranges 58-66, default is 66
max_temp = 86 # do not set it > 90, default is 86

polling_interval = 1	# default is 1 seconds

et voici le retour de sensors

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +39.0°C  (high = +80.0°C, crit = +86.0°C)
Core 0:        +39.0°C  (high = +80.0°C, crit = +86.0°C)
Core 1:        +36.0°C  (high = +80.0°C, crit = +86.0°C)
Core 2:        +36.0°C  (high = +80.0°C, crit = +86.0°C)
Core 3:        +39.0°C  (high = +80.0°C, crit = +86.0°C)

applesmc-isa-0300
Adapter: ISA adapter
ODD :        2001 RPM  (min = 1400 RPM, max = 4350 RPM)
HDD :        2002 RPM  (min = 1100 RPM, max = 6300 RPM)
CPU :        1401 RPM  (min = 1200 RPM, max = 2600 RPM)
TA0P:         +24.2°C  
TA0V:         +24.0°C  
TA0p:         +25.8°C  
TC0H:         +37.8°C  
TC0P:         +42.0°C  
TC0c:         +39.0°C  
TC0h:         +37.8°C  
TC0p:         +42.0°C  
TC1c:         +39.0°C  
TC2c:         +39.0°C  
TC3c:         +40.0°C  
TCGc:         +39.0°C  
TCSc:         +38.0°C  
TCXc:         +38.8°C  
TG0D:         +45.5°C  
TG0H:         +42.2°C  
TG0d:         +45.5°C  
TG0h:         +42.2°C  
TG0p:         +44.0°C  
TH0O:          +0.0°C  
TH1O:          +1.8°C  
TL0P:         +36.5°C  
TL0V:         +37.5°C  
TL0p:         +49.5°C  
TL1P:         +41.8°C  
TL1V:         +40.0°C  
TL1p:         +41.8°C  
TL1v:         +40.0°C  
TL2V:         +39.2°C  
TLAV:         +39.2°C  
TLBV:         +30.8°C  
TLCV:         +37.5°C  
TO0P:         +39.0°C  
TO0p:         +40.0°C  
TPCD:         +52.0°C  
TS0P:         +36.5°C  
TS0V:         +33.8°C  
TS0p:         +36.5°C  
TS2P:         +37.8°C  
TS2V:         +37.2°C  
TS2p:         +37.8°C  
Tm0P:         +45.5°C  
Tm0p:         +45.5°C  
Tp1P:         +46.8°C  
Tp1p:         +46.8°C  
Tp2H:         +51.5°C  
Tp2h:         +51.5°C  
Tp3H:         +46.8°C  
Tp3h:         +46.8°C  

Mes ventilo sont bien calme, c'est cool mais je joue avec cette machine, et elle a donc tendance à chauffer...

J'avais testé macfanctld, et je l'ai enlevé car pire que tout, il ne me trouvait plus que deux ventilo sur les 3. J'ai donc remis mbpfan et j'ai essayé d'affiné les réglages, mais il ne veut plus rien savoir...

Si quelqu'un a une idée...

Dernière modification par Nexurcis (Le 25/04/2021, à 22:18)

Hors ligne

#2 Le 25/04/2021, à 22:07

Nexurcis

Re : Problème de configuration mbpfan

résolu... huhu

il m'a suffit de supprimer le fichier /var/run/mbpfan.pid

et de relancer la bête




20 minutes plus tard... Ben en fait... Non mad

sudo mbpfan -v -f

retour

riting a new .pid file with value 5175 at: /var/run/mbpfan.pid
mbpfan[5175]: Writing a new .pid file with value 5175 at: /var/run/mbpfan.pid
Successfully written a new .pid file with value 5175 at: /var/run/mbpfan.pid
mbpfan[5175]: Successfully written a new .pid file with value 5175 at: /var/run/mbpfan.pid
Using new sensor path for kernel >= 3.15.0 or some CentOS versions with kernel 3.10.0
Found hwmon path at /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp
Found 5 sensors
Found 3 fans
Sleeping for 2 seconds to get first temp delta
Old Temp 37: New Temp: 37, Fan Speed: 2000
Old Temp 37: New Temp: 37, Fan Speed: 2000
Old Temp 37: New Temp: 37, Fan Speed: 1400
Sleeping for 1 seconds
Old Temp 37: New Temp: 40, Fan Speed: 2000
Old Temp 37: New Temp: 40, Fan Speed: 2000
Old Temp 37: New Temp: 40, Fan Speed: 1400
Sleeping for 1 seconds

mais toujour le même retour qu'en haut pour

sudo mbpfan -v -t

je vais devenir chauve...

Le pire c'est que la config de mbpfan semble fonctionner... Alors pourquoi cette erreur...

Dernière modification par Nexurcis (Le 25/04/2021, à 22:39)

Hors ligne

#3 Le 07/08/2021, à 06:45

pihier

Re : Problème de configuration mbpfan

Bonjour Nexurcis,

je réponds tardivement mais j'ai utilisé tes données pour modifier mon fichier /etc/mbpfan.conf et il y avait du ménage à faire dedans pour que tout soit pris en compte. Par exemple, ici je propose une section du code tel qu'il était, avec des erreurs dedans.

min_fan1_speed = 2000 # default is 2000
max_fan1_speed = 4000 # default is 4350
min_fan2_speed = 2000 # default is 2000
max_fan2_speed = 6300 # default is 6300
min_fan3_speed = 1400 # default is 1200
max_fan3_speed = 2600 # default is 2600

Pour que les ventilateurs 1, 2 et 3 soient régulés il faut mettre les commentaires sur leur propre ligne.

min_fan1_speed = 2000 
# default is 2000
max_fan1_speed = 4000 
# default is 4350
min_fan2_speed = 2000 
# default is 2000
max_fan2_speed = 6300 
# default is 6300
min_fan3_speed = 1400 
# default is 1200
max_fan3_speed = 2600 
# default is 2600

Pour mon système, un iMac 10.1 de 2009 à double coeurs j'ai modifié le code du fichier /etc/mbpfan.conf comme ceci :

  GNU nano 5.4                    /etc/mbpfan.conf                              
[general]
# see https://ineed.coffee/3838/a-beginners-tutorial-for-mbpfan-under-ubuntu
# for the values
# 
# mbpfan will load the max / min speed of from the files produced by the
# applesmc driver. If these files are not found it will set all fans to the
# default of min_speed = 2000 and max_speed = 6200
#
# by setting the values for the speeds in this config it will override
# whatever it finds in:
# /sys/devices/platform/applesmc.768/
# fan1_min, fan1_max, fan2_min, fan2_max, fan3_min, fan3_max
#
# multiple fans can be configured by using the config key of:
# min_fan*_speed = x     max_fan*_speed = x
#
#
# fan1 = ODD = ?
min_fan1_speed = 2500
# min 1000 
max_fan1_speed = 4200
# max 4350
#
#
# fan2 = HDD = fan du disque dur HDD ou du SSD de remplacement
min_fan2_speed = 1400
# min 1100
max_fan2_speed = 3000
# max 6300
#
#
# fan3 = CPU = fan du CPU
min_fan3_speed = 2500
# min 1200
max_fan3_speed = 3600
# max 4000
#
#
...

Le retour de la commande $ sensors, là aussi je mets juste l'essentiel

$ sensors
applesmc-isa-0300
Adapter: ISA adapter
ODD :        2497 RPM  (min = 1000 RPM, max = 4350 RPM)
HDD :        1400 RPM  (min = 1100 RPM, max = 6300 RPM)
CPU :        2501 RPM  (min = 1200 RPM, max = 4000 RPM)
...
nouveau-pci-0300
Adapter: PCI adapter
temp1:        +54.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +100.0°C, hyst =  +2.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +41.0°C  (high = +76.0°C, crit = +100.0°C)
Core 1:       +36.0°C  (high = +76.0°C, crit = +100.0°C)

On voit que mes ventilateurs tournent comme je l'ai demandé. Et que mes Core 0 et Core 1 ne sont plus à 57C au repos.
Il faut redémarrer mbpfan pour que les nouveaux paramètres soient pris en compte.

J'utilise les commandes suivantes pour désactiver et réactiver mbpfan, je sais pas si ça fonctionne sous ubuntu, je suis sous Debian. Il faut être en root, (sudo je crois sous Ubuntu).

# systemclt stop mbpfan
# systemctl start mbpfan
# systemctl enable mbpfan

La dernière ligne de commande active mbpfan à chaque démarrage.

# systemctl status mbpfan

nous informe de l'état de service de mbpfan.

J'espère que ces informations vont t'aider

Mon disque dur d'origine avait un sensor connecté qui régulait la vitesse de sa fan selon la température du HDD. J'ai changé le HDD pour un SSD sans sensor connecté, alors le ventilateur s'emballe. mbpfan sert à contrôler ce problème.
Voilà ma petite contribution
Bonne chance. Tu me diras si ça a été utile.
Pierre

Dernière modification par pihier (Le 07/08/2021, à 18:13)

Hors ligne