Thinkfan, TLP, mein T420s und ich

supernova

New member
Registriert
23 Dez. 2011
Beiträge
65
Hallo,

mir ist bekannt, dass das Problem in der Regel vor dem Rechner sitzt ... . Aber so ist das nun mal.

Bei meinem Thinkpad T420s (ca. ein Jahr alt) lief von Anfang an der Lüfter permanent auf ca. 4000 rpm. Nach BIOS-Update sowie Installation von tlp und thinkfan beruhigte sich der Lüfter wieder. Allerdings startet der Lüfter auch bei Sensor-Werten, die unterhalb der Einstellung von thinkfan.conf (hier: 53°C) liegen. Was habe ich falsch eingestellt?

Danke und Gruß

supernova


Im Folgenden die Daten aus meiner thinkfan.conf und von tlp stat:

thinkfan.conf:

(0, 0, 53)
(1, 55, 66)
(2, 57, 70)
(3, 64, 75)
(4, 67, 77)
(5, 69, 79)
(6, 71, 82)
(7, 73, 32767)


tlp stat

--- TLP 0.3.7.1 --------------------------------------------

+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
DISK_DEVICES="sda sdb"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
DISK_IOSCHED="noop deadline"
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
WIFI_PWR_ON_AC=5
WIFI_PWR_ON_BAT=5
WOL_DISABLE=Y
SOUND_POWER_SAVE=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
USB_AUTOSUSPEND=1
USB_BLACKLIST="19d2:0117"
RESTORE_DEVICE_STATE_ON_STARTUP=0
DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"
START_CHARGE_THRESH_BAT0=80
STOP_CHARGE_THRESH_BAT0=95
DISABLE_TPACPIBAT=0
DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"

+++ System Info
System = LENOVO ThinkPad T420s 4173RB5
BIOS = 8CET53WW (1.33 )
Release = Ubuntu 12.04.1 LTS
Kernel = 3.2.0-35-generic x86_64
/proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-3.2.0-35-generic root=UUID=8ef0feca-9fb6-4877-8a90-72ae8c36a5d3 ro quiet splash ipv6.disable=1 vt.handoff=7

+++ System Status
TLP power save = enabled
power source = ac

+++ Processor
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2500000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 2501000 2500000 2200000 2000000 1800000 1600000 1400000 1200000 1000000 800000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 2501000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies = 2501000 2500000 2200000 2000000 1800000 1600000 1400000 1200000 1000000 800000 [kHz]

/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 2501000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies = 2501000 2500000 2200000 2000000 1800000 1600000 1400000 1200000 1000000 800000 [kHz]

/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 2501000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_frequencies = 2501000 2500000 2200000 2000000 1800000 1600000 1400000 1200000 1000000 800000 [kHz]

/sys/devices/system/cpu/sched_mc_power_savings = 0
/sys/devices/system/cpu/sched_smt_power_savings = 0
/proc/sys/kernel/nmi_watchdog = 0

+++ Undervolting
PHC kernel not available.

+++ Temperatures
CPU temp = 50 [°C]
/proc/acpi/ibm/fan = 2036 [/min]

+++ File System
/proc/sys/vm/laptop_mode = 0
/proc/sys/vm/dirty_writeback_centisecs = 1500
/proc/sys/vm/dirty_expire_centisecs = 1500
/proc/sys/vm/dirty_ratio = 60
/proc/sys/vm/dirty_background_ratio = 1
/proc/sys/fs/xfs/age_buffer_centisecs = (not available)
/proc/sys/fs/xfs/xfssyncd_centisecs = (not available)
/proc/sys/fs/xfs/xfsbufd_centisecs = (not available)

+++ Storage Devices
/dev/sda:
Model = INTEL SSDSA2CW300G3
Firmware = 4PC10362
APM Level = none/disabled
TRIM = supported
scheduler = noop

SMART info:
4 Start_Stop_Count = 0
5 Reallocated_Sector_Ct = 0
9 Power_On_Hours = 1251 [h]
225 Host_Writes_32MiB = 1.621 [TB]
232 Available_Reservd_Space = 100 [%]
233 Media_Wearout_Indicator = 100 [%]
241 Host_Writes_32MiB = 1.621 [TB]


+++ SATA Aggressive Link Power Management
/sys/class/scsi_host/host0/link_power_management_policy = max_performance
/sys/class/scsi_host/host1/link_power_management_policy = max_performance
/sys/class/scsi_host/host2/link_power_management_policy = max_performance
/sys/class/scsi_host/host3/link_power_management_policy = max_performance
/sys/class/scsi_host/host4/link_power_management_policy = max_performance
/sys/class/scsi_host/host5/link_power_management_policy = max_performance

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = default (disabled by kernel)

+++ Intel Graphics
/sys/module/i915/parameters/powersave = 1
/sys/module/i915/parameters/i915_enable_rc6 = -1
/sys/module/i915/parameters/i915_enable_fbc = -1
/sys/module/i915/parameters/lvds_downclock = 0
/sys/module/i915/parameters/semaphores = -1

+++ Wireless
bluetooth = off (hardware)
wifi = off (hardware)
wwan = none (no device)

wlan0(iwlwifi): power management = on

+++ Audio
/sys/module/snd_hda_intel/parameters/power_save = 1
/sys/module/snd_hda_intel/parameters/power_save_controller = Y

+++ ThinkPad Battery (Main)
Hint: ThinkPad extended battery info not available (tp-smapi kernel module not installed).
/sys/class/power_supply/BAT0/manufacturer = SANYO
/sys/class/power_supply/BAT0/model_name = 42T4845
/sys/class/power_supply/BAT0/cycle_count = 0
/sys/class/power_supply/BAT0/energy_full_design = 39000 [mWh]
/sys/class/power_supply/BAT0/energy_full = 33830 [mWh]
/sys/class/power_supply/BAT0/energy_now = 31900 [mWh]
/sys/class/power_supply/BAT0/power_now = 0 [mW]
/sys/class/power_supply/BAT0/status = Unknown

tpacpi-bat.BAT0.startChargeThreshold = 80 [%]
tpacpi-bat.BAT0.stopChargeThreshold = 95 [%]
tpacpi-bat.BAT0.forceDischarge = 0

+++ Runtime Power Management
/sys/bus/pci/devices/0000:00:00.0/power/control = on [Host]
/sys/bus/pci/devices/0000:00:19.0/power/control = on [Ethernet]
/sys/bus/pci/devices/0000:00:1b.0/power/control = on [Audio]
/sys/bus/pci/devices/0000:03:00.0/power/control = on [Wireless]
/sys/bus/pci/devices/0000:05:00.0/power/control = on [Card]

+++ USB
tlp usb autosuspend = enabled
tlp usb blacklist = 19d2:0117

Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 2.0 root hub (hub)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 2.0 root hub (hub)
Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 002 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 002 Device 003 ID 17ef:6022 control = on, autosuspend_delay_ms = 2000 -- Lenovo (usbhid)
Bus 002 Device 004 ID 17ef:1003 control = auto, autosuspend_delay_ms = 2000 -- Lenovo Integrated Smart Card Reader (no driver)
 
In welcher Reihenfolge starten die Programme denn? Bei mir scheint TLP die Lüftereinstellungen auf BIOS umzustellen, so dass ich Thinkfan nach TLP starten muss...
 
Die Anwendungen starten automatisch beim Booten. Die Reihenfolge ist mir nicht bekannt.

Guten Rutsch ins neue Jahr.
 
Hi,

hast Du die notwendigen sensor-Angaben in thinkfan.conf im Post nur weggelassen oder sind keine drin?

  • Falls Letzteres, dann bitte noch mal den entsprechenden Abschnitt im Wiki durchgehen.
  • Falls sensor-Zeilen vorhanden, dann schau einfach mal im Testbetrieb (und bitte noch die kpl. thinkfan.conf posten, die Kommentare am Anfang kannst Du natürlich weglassen).

Ich halte es allerdings für aussichtslos, ein Sandy-Bridge-Modell lüfterlos betreiben zu wollen. Stufe 1 ist wohl für stabile Temperaturen nötig. Mach vielleicht mal ein BIOS-Update, aktuell ist 1.35 (EDITH: Link korrigiert).

Bei mir scheint TLP die Lüftereinstellungen auf BIOS umzustellen
TLP macht nichts an der Lüftersteuerung. Garantiert.

ps. für schönere Ausgaben haben wir hier Codeblöcke, das ist der #-Knopf im erweiterten Editor.
 
Zuletzt bearbeitet:
Ich stell mich mal hinten an. Bei meinem X220 funkt Thinkfan nur halb.

Im BIOS Mode geht der Lüfter ab 53°C auf Stufe 2 hoch.

In Thinkfan habe ich eingestellt dass bis 70° Stufe 1 aktiv bleibt. Allerdings geht der Lüfter bei 60° auf Stufe 3 oder 5, bläßt ein paar Sekunden bis etwa 55°C erreicht sind un beruhigt sich wieder.

Habe die Anleitung im Wiki Schritt für Schritt befolgt.

Unter Windows kann ich das X220 übrigens passiv betreiben, dabei kann ich auch Full HD Videos schauen und die Temp ist nie ein Problem.
 
@Aurora: frohes Neues. Auch Du darfst zuallererst mal deine /etc/thinkfan.conf zeigen :D.
 
Danke, dir auch frohes neues.:)

Code:
######################################################################
# thinkfan 0.7 example config file
# ================================
#
# ATTENTION: There is only very basic sanity checking on the configuration.
# That means you can set your temperature limits as insane as you like. You
# can do anything stupid, e.g. turn off your fan when your CPU reaches 70°C.
#
# That's why this program is called THINKfan: You gotta think for yourself.
#
######################################################################
#
# IBM/Lenovo Thinkpads (thinkpad_acpi, /proc/acpi/ibm)
# ====================================================
#
# IMPORTANT:
#
# To keep your HD from overheating, you have to specify a correction value for
# the sensor that has the HD's temperature. You need to do this because
# thinkfan uses only the highest temperature it can find in the system, and
# that'll most likely never be your HD, as most HDs are already out of spec
# when they reach 55 °C.
# Correction values are applied from left to right in the same order as the
# temperatures are read from the file.
#
# For example:
# sensor /proc/acpi/ibm/thermal (0, 0, 10)
# will add a fixed value of 10 °C the 3rd value read from that file. Check out
# http://www.thinkwiki.org/wiki/Thermal_Sensors to find out how much you may
# want to add to certain temperatures.

#  Syntax:
#  (LEVEL, LOW, HIGH)
#  LEVEL is the fan level to use (0-7 with thinkpad_acpi)
#  LOW is the temperature at which to step down to the previous level
#  HIGH is the temperature at which to step up to the next level
#  All numbers are integers.
#

# I use this on my T61p:
#sensor /proc/acpi/ibm/thermal (0, 10, 15, 2, 10, 5, 0, 3, 0, 3)

sensor /sys/devices/platform/coretemp.0/temp1_input
sensor /sys/devices/platform/coretemp.0/temp2_input
sensor /sys/devices/platform/coretemp.0/temp3_input
sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input

(0,	0,	30)
(1,	20,	70)
(2,	60,	75)
(3,	70,	79)
(4,	73,	80)
(5,	74,	81)
(7,	75,	32767)
 
Danke linrunner,

und ein frohes neues Jahr.

Ich hatte die tlp stat komplett kopiert und die thinkfan.conf leider nur unvollständig wiedergegeben (wie gesagt, das Problem sitzt in der Regel vor dem Rechner; keine Absicht). Hier die sensor-Angaben:

Code:
sensor /sys/devices/platform/coretemp.0/temp1_input
sensor /sys/devices/platform/coretemp.0/temp2_input
sensor /sys/devices/platform/coretemp.0/temp3_input
sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input

Hier der Rest von der thinkfan.conf:

Code:
0,	0,	53)
(1,	55,	66)
(2,	57,	70)
(3,	64,	75)
(4,	67,	77)
(5,	69,	79)
(6,	71,	82)
(7,	73,	32767)

In meinem T420s ist eine SSD von IBM verbaut.

@ BIOS-Update: Da ich nur Ubuntu nutze, habe ich das 1.35 noch nicht aufgespielt. Wäre das trotz Linux notwendig?

Gruß supernova
 
Sehr schön. Jetzt lasst ihr beide wie im Wiki beschrieben (und oben verlinkt) thinkfan mal im Testbetrieb laufen und schaut euch die Schaltvorgänge dabei an. thinkfan rechnet übrigens aus der Geschwindigkeit des Temperaturanstiegs immer noch etwas auf die tatsächlichen Temperaturen drauf ("Bias").
 
Nachdem ich
Code:
  [COLOR=#000000][FONT=monospace]sudo /etc/init.d/thinkfan stop[/FONT][/COLOR]
durchgeführt habe und mit
Code:
[COLOR=#000000][FONT=monospace]sudo thinkfan -n[/FONT][/COLOR]
die Lüftersteuerung gestartet habe, bläst der Lüfter permanent mit ca. 4000 rpm und es erscheint folgende (Fehler-)Meldung:
Code:
LOWER limit doesn't overlap with previous UPPER limit.
/etc/thinkfan.conf:62:(1,  55,  66)

LOWER limit doesn't overlap  with previous UPPER  limit.

Das wars dann und der Lüfter hält kontinuierlich die 4000 rpm.

Ergänzung:

Ich habe die thinkfan.conf - wie folgt - in der zweiten Zeile (2. Wert: von 55 auf 52) geändert:

Code:
(0,	0,	53)
(1,	52,	66)
(2,	57,	70)
(3,	64,	75)
(4,	67,	77)
(5,	69,	79)
(6,	71,	82)
(7,	73,	32767)

Jetzt ist der Lüfter wieder ruhig.
 
Zuletzt bearbeitet:
Genau dafür ist der Testbetrieb da :D.

Deine Stufung ist auch etwas unregelmäßig und dadurch unübersichtlich. Schau dir mal das Beispiel im Wiki an: dort habe ich die Stufen einheitlich mit 5° gewählt in 2. und 3. Spalte. Die Schalthysterese, d.h. die Differenz zwischen 2. Spalte (Herunterschalten) und 3. Spalte des Vorgängers (Heraufschalten) beträgt immer 2°.

Wenn Du die 1. und 2. Stufe etwas anhebst auf deine Bedürfnisse und die Stufung z.B. auf 4° verringerst, könnte das passen. Die Prozessoren halten 105°C aus, also nicht zu zaghaft! Beachte auch die letzte Zeile für die volle Drehzahl. In der Beispieldatei von thinkfan wurde die leider vergessen ...

Anmerkung: bei meinem X220 regelt thinkfan absolut hektisch, das BIOS kann es mMn besser.
 
Zuletzt bearbeitet:
Danke linrunner für die interessanten Tipps. Ich habe die thinkfan.conf wie folgt eingestellt:

Code:
(0,	0,	56)(1,	54,	60)
(2,	58,	64)
(3,	62,	68)
(4,	66,	72)
(5,	70,	76)
(6,	74,	80)
(7,	78,	84)
(127,	82,	32767)

Wenn ich mir die Werte von dem Testbetrieb mit sudo thinkfan -n anschaue, dann fällt der biased_temp auf, der deutlich von dem temp- und last_temp-Wert abweicht und aus meiner Sicht für die hektische Lüfterreaktionen verantwortlich ist. Wie kann ich den biased_temp etwas beruhigen?

Gruß supernova
 
thinkfan ist Open Source, einfach den Quellcode ändern und neu kompilieren ... ;)
 
Na, das ist ja mal ein guter Vorschlag :unsure:

Aber die Idee finde ich interessant. Die Frage ist nur nach dem WIE: Wenn ich mir thinkfan-0.8.1.tar.gz runterlade, entpacke und dann die folgenden Befehle ausführe, funktioniert danach thinkfan(?):

Code:
[TABLE]
[TR]
[TD]./configure [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]make[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]sudo checkinstall [/TD]
[TD][/TD]
[/TR]
[/TABLE]

(Quelle: http://wiki.ubuntuusers.de/Programme_kompilieren?redirect=no)


Was glaubst Du?

Gruß supernova
 
Ich glaube, dass ein kleiner Programmierfehler hier schnell zur Kernschmelze führen kann :D.
 
Also dann lieber bei der Version 0.7.3.1 aus dem Packetmanager bleiben?!?
 
Ich hab für diesen Thread thinkfan erstmals kurz auf dem X220 laufen lassen und würde sagen, dass mir das Regelverhalten dort generell nicht ganz geheuer ist. Ob das bei anderen Modellen der Generation Sandy Bridge besser ist, weiß ich nicht. Die Prozessoren scheinen sich auf jeden Fall schneller aufzuheizen als die Vorgänger.
 
Zunächst vielen Dank für Deine Beiträge. Thinkfan hat zunächst meinen ruhelosen Lüfter ganz pragmatisch von seinem Dauerföhnen abgelöst. State of the art sollte das bei einem Gerät dieser Klasse aus meiner Sicht eigentlich nicht sein. Aber so ist es halt und hoffentlich bzw. zum Glück gibt es immer noch nette Leute, die das so nicht akzeptieren und sich Gedanken über Optimierungen machen.

Ich habe in der /etc/default/thinkfan noch folgendes eingefügt:

Code:
DAEMON_ARGS="-b 1 -s 3"

Die Syntax steht unter http://manpages.ubuntu.com/manpages/maverick/man1/thinkfan.1.html . Seitdem läuft der Lüfter mit Thinkfan wesentlich ruhiger und die biased_temp sind weniger volatil als vorher. Ich beobachte die Testwerte von thinkfan aber weiter ...

P.S.: Sollte man das BIOS-Update wirklich für Windows durchführen, wenn nur Ubuntu auf dem Rechner installiert ist (http://support.lenovo.com/en_ID/downloads/detail.page?&LegacyDocID=MIGR-77011)? Kann ich mir gar nicht vorstellen.

Gruß supernova
 
Die Parameter sollte ich wohl mal ins Wiki aufnehmen.

Nein, ich würde unter den aktuellen Umständen kein BIOS-Update machen.

ps. wie ist eigentlich beim T420s die Drehzahl bei Stufe 1?
 
  • ok1.de
  • ok2.de
  • thinkstore24.de
  • Preiswerte-IT - Gebrauchte Lenovo Notebooks kaufen

Werbung

Zurück
Oben