Linux Thinkfan 1.3.1 .. YAML-Config.File zu Vergleichszwecken

Linux Betriebssystem

Ambrosius

Well-known member
Registriert
23 Juni 2022
Beiträge
981
Wäre jemand freundlicherweise so gütig seine Thinkfan Konfigurations-yaml-Datei unter der aktuellen Thinkfan Version 1.3.1-4 zu Vergleichszwecken hier zur teilen?

Die neue template Datei unter Github ist schon sehr viel "komplexer" struktiert, was wohl an der yaml Syntax liegt. Früher war ja echt nur sensoren auslesen, hwmon output aus dem Terminal und in die config reinkopieren und Werte nach Gusto eintragen..jetzt muss schon alles an der richtigen Stelle stehen..

Wär super nice, wenn man das mal vergleichen könnte mit den eurigen


Ergänzung:

Code:
##############################################################################
# thinkfan Example Config File vom 17.09.2023
# ============================
#
# Please read the config manpage thinkfan.conf(5) before playing around with
# this.
#
# This is NOT a working config file that can just be copied. It is only meant
# to give a rough idea what can be done. In particular, don't copy & paste the
# fan speed config! Think about what you're doing.
#
# If you don't know what temperatures are right for your system, you should
# not be using thinkfan!
##############################################################################


##############################################################################
# Sensor Drivers and Temperature Inputs
# =====================================
#
# ATTENTION: The order in which sensors are specified here is significant when
# specifying the fan speeds further below!
#
# There are multiple ways in which a temperature input can be specified. An
# example for each is given below.
#
# The "correction:" and "optional:" keywords may be specified on any type of
# sensor.

sensors:
  # LM Sensors
  # ==========
  # Temperatures can be read directly from Linux drivers through the LM sensors.
  #
  # To configure this, install "lm-sensors" and "libsensors", then
  # run "sensors-detect", then run "sensors".
  # To build thinkfan from sources, you'll also need to install "libsensors-dev"
  # or equivalent package for your distribution.
  #
  # For example, the following output of "sensors":
  # ...
  # thinkpad-isa-0000
  # Adapter: ISA adapter
  # fan1:        2618 RPM
  # fan2:        2553 RPM
  # CPU:          +63.0 C 
  # GPU 1:        +55.0 C 
  # temp3:        +68.0 C 
  # temp4:         +0.0 C 
  # temp5:        +60.0 C 
  # temp6:        +64.0 C 
  # temp7:        +67.0 C 
  # temp8:         +0.0 C 
  # ...
  # would result in the following configuration:
  #- chip: thinkpad-isa-0000
  #  ids: [ CPU, "GPU 1", temp3, temp4, temp5, temp6, temp7, temp8 ]

  # hwmon: Full path to a temperature file (single sensor).
  # =======================================================
  # Disadvantage is that the index in "hwmon0" depends on the load order of
  # the driver modules, which may change across bootups on some systems.
  #- hwmon: /sys/class/hwmon/hwmon0/temp1_input

  # hwmon: Path to a complete driver folder
  # =======================================
  # Individual sensors need to be picked out with the "indices:" keyword.
  # This can be used with a stable path that does not depend on driver load
  # order. However certain drivers may not appear under such a stable path.
  #- hwmon: /sys/devices/pci0000:00/0000:00:03.1/0000:27:00.0/hwmon
  #  indices: [1, 2, 5, 6] # adds 4 temperature sensors
  #  correction: [0, 0, 0, -5] # add -5 °C to temp6_input

  # hwmon: Base path with name-based search
  # =======================================
  # Thinkfan will search under the given path for a hwmon driver that has a
  # file called "name" which contains the given name. This method should work
  # with all hwmon drivers and is robust against driver load order.
  #- hwmon: /sys/class/hwmon
  #  name: k10temp
  #  indices: [1]

  # Sensors can also be optional, e.g. in case of removable hardware
  #- hwmon: /sys/class/block/sdc/device/hwmon
  #  indices: [1]
  #  optional: true # don't exit if the sensor can't be read

  # atasmart: Read the temperature from a hard disk via S.M.A.R.T
  # =============================================================
  # Note that this is unreasonably CPU-intensive. Since Linux 5.6, the kernel
  # can report the temperatures of hard disks via the hwmon interface (see the
  # example above), which should be preferred if available.
  #
  # This is only available if thinkfan was compiled with USE_ATASMART enabled.
  #- atasmart: /dev/sda

  # tpacpi: Legacy interface to the thinkpad_acpi driver
  # ====================================================
  # Particularly on older Thinkpad laptops, this interface may give access to
  # 8-16 temperature sensors, but it may be hard to tell where/what exactly
  # they measure.
  # Some documentation for older models may be found at the thinkpad wiki:
  # https://www.thinkwiki.org/wiki/Thermal_Sensors
  #
  # Note that the hwmon interface is to be preferred nowadays.
  - tpacpi: /proc/acpi/ibm/thermal
    # Some of the temperature entries in /proc/acpi/ibm/thermal may be
    # irrelevant or unused, so individual ones can be selected:
    indices: [1, 2, 3, 4]

  # nvml: The proprietary nVidia driver
  # ===================================
  # Temperatures can be read directly from nVidia GPUs that run with the
  # proprietary driver. The "nvml:" entry must specify the PCI bus ID of the
  # GPU (can be found with lspci)
  #
  # Note that this does not work with the open-source "nouveau" driver. Open
  # source drivers should support the hwmon interface instead (see above).
  #- nvml: 27:00.0

##############################################################################


##############################################################################
# Fan Drivers
# ===========
#
# Currently, thinkfan supports only one fan, but support for multiple fans is
# in development and will be released soon. For the time being, the examples
# given below are mutually exclusive.
#
fans:
  # hwmon: Full path to a PWM file
  # ==============================
  # Also subject to the potential problem with driver load order (see above)
  #- hwmon: /sys/class/hwmon/hwmon0/pwm1

  # hwmon: Path to a complete driver folder
  # =======================================
  #- hwmon: /sys/class/graphics/fb0/device/hwmon
  #  indices: [1] # Use pwm1

  # hwmon: Base path with name-based search
  # =======================================
  #- hwmon: /sys/class/hwmon
  #  name: amdgpu
  #  indices: [1]

  # tpacpi: Thinkpad-specific fan interface
  # =======================================
  # Currently, this is the only way to use disengaged and automatic mode on
  # thinkpads.
  - tpacpi: /proc/acpi/ibm/fan

##############################################################################


##############################################################################
# Fan Speeds (simple mode)
# ========================
#
# In simple mode, each entry is a [FANSPEED, LOWER_LIMIT, UPPER_LIMIT] tuple.
# This is a quick way to configure a small system like a laptop, where the
# temperature ratings for all monitored devices are similar. Only the highest
# temperature found across all sensors will be compared against these limits.
# All other temperatures are ignored.
#
# Correction values on individual sensors (see above) may be used to equalize
# small discrepancies in temperature ratings.
#
# The FANSPEED values in this example are valid for the thinkpad_acpi fan
# driver only (see above)
#
levels:
  - [0, 0, 51]
  - [1, 52, 59]
  - [2, 60, 63]
  - [3, 64, 69]
  - [4, 70, 75]
  - [5, 76, 81]
  - [6, 82, 87]
  - [7, 88, 91]
  - ["level auto", 45, 75]
  - ["full-speed", 70, 255]

##############################################################################


##############################################################################
# Fan Speeds (detailed mode)
# ==========================
#
# It is generally advisable to configure the temperature limits for each
# sensor individually.
#
# The speed values used here range from 0 to 255, which is valid for the PWM
# control files used by hwmon-based drivers.
#
# The temperatures specified in upper_limit and lower_limit apply to the
# sensors in the same order in which they were specified in the "sensors:"
# section above, and their length must match the total number of sensors that
# have been configured.
#
#levels:
#  - speed: 0
#    upper_limit: [50, 50, 50]
#
#  - speed: 100
#    lower_limit: [45, 45, 45]
#    upper_limit: [65, 65, 65]
#
#  - speed: 255
#    lower_limit: [60, 60, 60]

##############################################################################
 
Zuletzt bearbeitet:
Hi,

geht auch 1.2.1-3.1build1 von meinem L14 Gen 1 AMD? Das ist auch schon YAML...

Eigentlich echt killefit, wenn man das Minimum braucht:

Gucksu:


Läuft seit Juni 2021 ohne Probleme.
 
Ich glücklicher wußte bis gerade eben nichts von irgendeiner yaml, was immer das soll. Bei mir gibt es auch heute eine thinkfan.conf, und diese funktioniert auch mit 1.3.1-4 wunderbar. :unsure:
 
Danke für den Link, die Parameter die du gesetzt hast, kannst du auf eine Referenz hinweisen, für was die Optionen stehen?

Code:
Code:
# Additional startup parameters
DAEMON_ARGS="-q -s 3 -b 0"
START=yes
Beitrag automatisch zusammengeführt:

sensors: - tpacpi: /proc/acpi/ibm/thermal indices: [0]
fans: - tpacpi: /proc/acpi/ibm/fan
auch ich habe alles auskommentiert und nur den acpi-Treiber als Temperaturfühler genommen, das reicht auch dicke...


[0, 0, 61]
[1, 55, 67]
[2, 65, 71]
[3, 68, 77]
[4, 72, 79]
[5, 74, 84]
[7, 80, 91]
[127, 85, 3276]
Bei deinen Temps überschneiden sich aber level 0 und 1, wann genau geht denn jetzt dein Lüfter an, bei 61° oder bei 55°?
Beitrag automatisch zusammengeführt:

Edit: aaaales klar, ich verstehe jetzt worauf du abgezielt hast: spät hochschalten (Obergrenze), früh runterschalten (Untergrenze)...clever!
 
Zuletzt bearbeitet:
@desertstorm klar:


DAEMON_ARGS="-q -s 3 -b 0"

bedeutet:

-q quiet

-s 3 -> alle 3 sekunden aktualisieren

-b 0 -> BIAS 0, keine Glättung

Hast du eine stark schwankende Temperatur, also bei einer Lastspitze von z.B. einer Sekunde plötzlich 20-30 Grad mehr auf der CPU, empfehle ich das BIAS zu setzen, sodass ein Mittelwert aus mehreren Sekunden gezogen wird, ansonsten wirst du, sofern du mit -s 3 alle 3 Sekunden die Temperatur abfragst und damit auch die Lüftergeschwindigkeit setzt, eine stark schwankende Lüftergeschwindigkeit haben, das nervt, ist unharmonisch und wird denke ich mal auch nicht so gut für den Lüfter sein.

Wenn dein ACPI Treiber ohne Probleme klappt, ist das gut, beim T14 Gen1 Intel war der Sensor fürs Netzteil bei ich glaube 59 Grad konstant, deshalb habe ich nur das Relevante für mich genommen.

Bei 61 Grad geht er dann an, das ist korrekt. Das Verhalten hat sich aber praktisch nicht geändert bei Thinkfan oder auch TpFanControl... war früher auch schon so.
 
eine Frage muss ich pro forma noch hinterher werfen. wir reden ja hier bei acpi-sensoren von legacy HW ("Legacy interface to the thinkpad_acpi driver") und im direkten Vergleich zu den coretemp-isa-0000 Temps die ja im Schnitt ca 1-2° höher liegen als der acpi-Wert, frage ich mich schon auch ob die Zuordnung

acpi = mainboard Temperatur
coretemp = cpu package temperatur

so stimmt? Bin im Mint Forum per Websuche drauf gestoßen..


Code:
$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +47.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:        +47.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:        +44.0°C  (high = +87.0°C, crit = +105.0°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +47.0°C  (crit = +103.0°C)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        2992 RPM
CPU:          +47.0°C 
GPU:           +0.0°C 
temp3:         +0.0°C 
temp4:         +0.0°C 
temp5:         +0.0°C 
temp6:         +0.0°C 
temp7:         +0.0°C 
temp8:         +0.0°C 

BAT0-acpi-0
Adapter: ACPI interface
in0:          11.64 V
Beitrag automatisch zusammengeführt:

ca 1-2° höher liegen
nur jetzt gerade nicht :D
Beitrag automatisch zusammengeführt:

Hast du eine stark schwankende Temperatur, also bei einer Lastspitze von z.B. einer Sekunde plötzlich 20-30 Grad mehr auf der CPU, empfehle ich das BIAS zu setzen, sodass ein Mittelwert aus mehreren Sekunden gezogen wird, ansonsten wirst du, sofern du mit -s 3 alle 3 Sekunden die Temperatur abfragst und damit auch die Lüftergeschwindigkeit setzt, eine stark schwankende Lüftergeschwindigkeit haben, das nervt, ist unharmonisch und wird denke ich mal auch nicht so gut für den Lüfter sein.
Besten Dank für die Aufklärung, das wird in meinem Fall dann nicht nötig sein..Größere Sprünge habe ich nur, wenn ich behebigere Programme wie Browser, GIMP und Ähnliches starte, das pendelt sich dann auch aber schnell wieder ein. Wir sprechen hier vom x230 Dual Core, der ist auch nicht für mehr als Office und Sufen gedacht..die BIOS gesteuerte Lüfterkurve war dennoch subobtimal, weswegen ich dann auch aufgegeben habe und thinkfan installiert habe...

ich werde nochmal meine Temps anpassen und ein besseren Übergang zwischen runter- und hochschalten der level angehen...danke fürs teilen...sharing is caring
 
Zuletzt bearbeitet:
Gerne doch.

Ein BIAS von 2 oder 3 zu setzen, lege ich dir aber ans Herz, dann hast du genau diese Programmstarts nicht mit in der Lüfterkurve drin, vorausgesetzt du hast nicht zufällig auf Flüssigmetall umgebaut ;-)
 
So etwas modernes wie ein x230 habe ich zwar gerade nicht vorliegen, kann aber noch den Tipp geben, nicht einen CPU- Sensor zu überwachen, sondern den Chipsatz, welcher an der selben Kühlung hängt wie die CPU. Der Chipsatz gerät unter Last genauso unter Streß wie die CPU auch, heizt aber deutlich träger auf, zumindest bei meinen Systemen (T500/X200/T480).

Der Chipsatz versteckt sich unter temp1 und verrät sich zudem in der Regel über höhere Maximaltemperaturen.

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

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +29.0°C  (crit = +127.0°C)
temp2:        +29.0°C  (crit = +100.0°C)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:           0 RPM
fan2:           0 RPM
CPU:          +29.0°C 
GPU:          +23.0°C 
temp3:        +22.0°C 
temp4:            N/A 
temp5:        +22.0°C 
temp6:            N/A 
temp7:        +22.0°C 
temp8:            N/A 

BAT0-acpi-0
Adapter: ACPI interface
in0:          11.63 V

Hier ist
Code:
temp1:        +29.0°C  (crit = +127.0°C)
der Chipsatz.
Oder hart verdrahtet dieser (T500):
Code:
# Chipsatz (höhere Temperatur, trägeres Temperaturverhalten)
hwmon /sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_input
 
Ein BIAS von 2 oder 3 zu setzen, lege ich dir aber ans Herz, dann hast du genau diese Programmstarts nicht mit in der Lüfterkurve drin
Ja wider Erwarten habe ich jetzt doch einen springenden Lüfter, weswegen ich dann auch ein paar BIAS Werte ausprobiert habe. So richtig dahinter gestiegen bin ich aber noch nicht 100%

auf der tf manpage stand: Default is 15.0, außerdem auch
BIAS Gleitkommazahl (-10 bis 30) zum Steuern der Entwicklung der steigenden Temperatur. Wenn die Temperatur in einem Zyklus um mehr als 2 °C steigt, wird diese Zahl zur Ermittlung des Bias verwendet
Dies bedeutet, dass negative Zahlen verwendet werden können, um kurze und abrupte Temperaturspitzen einzuebnen, die durch einige On-DIE-Sensoren verursacht werden.
Also müsste ich ja eigentlich einen negativen Wert nutzen, -3 statt 3 um eben jene Temperatursprünge aufzufangen, oder?
Beitrag automatisch zusammengeführt:

Der Chipsatz gerät unter Last genauso unter Streß wie die CPU auch, heizt aber deutlich träger auf, zumindest bei meinen Systemen (T500/X200/T480).
junge junge, 29° bist du iwo am Nordpol?
Leider kann ich nicht direkt auf den PCH (Chipset) zugreifen, da er auch on-DIE ist.. also habe ich effektiv nur zwei Temperaturfühler: den acpi, der scheinbar der niedrigste Wert von allen ist und den coretemp-isa-adapter, der beide Kerne individuell auslesen kann und auch eine package_id aufweist...beide Fühler liegen im Idle sehr eng beiander, teils sogar identisch und nur bei Last gehen die Werte auseinander. Wo jetzt der Chipset mit dranhängt weiss ich aber nicht genau..
 
Zuletzt bearbeitet:
Stimmt, das mit dem BIAS hab ich falsch in meiner Erinnerung abgespeichert oder vermische das gerade mit etwas Anderem.

Wenn ich das adhoc so richtig verstehe, müsste man springende Lüfter dann mit einem negativen BIAS abfangen.

current_tmax = current_tmax + delta_t * BIAS / 10
 
  • ok1.de
  • ok2.de
  • thinkstore24.de
  • Preiswerte-IT - Gebrauchte Lenovo Notebooks kaufen

Werbung

Zurück
Oben