{"id":6982,"date":"2023-11-21T13:57:02","date_gmt":"2023-11-21T12:57:02","guid":{"rendered":"https:\/\/speefak.spdns.de\/oss_lifestyle\/?p=6982"},"modified":"2025-03-06T01:41:18","modified_gmt":"2025-03-06T00:41:18","slug":"thinkfan-konfiguration","status":"publish","type":"post","link":"https:\/\/speefak.spdns.de\/oss_lifestyle\/thinkfan-konfiguration\/","title":{"rendered":"Thinkfan Konfiguration"},"content":{"rendered":"<div class=\"flex flex-grow flex-col max-w-full gap-3 gizmo:gap-0\">\n<div class=\"min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 overflow-x-auto\" data-message-author-role=\"assistant\" data-message-id=\"7b3ce7a9-74b5-43b1-9090-0c758b70263f\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<p>Thinkfan wurde urspr\u00fcnglich entwickelt, um das Problem des unn\u00f6tig hohen Energieverbrauchs des L\u00fcfters zu l\u00f6sen. Es bietet im Allgemeinen eine einfache M\u00f6glichkeit, den L\u00fcfterpegel f\u00fcr bestimmte Temperaturbereiche zu steuern. Wenn aufgrund einer fehlerhaften Konfiguration der thinkfan Dienst nicht gestartet wird, ist eine manuelle Konfiguration n\u00f6tig. Im Folgenden wird gezeigt, wie der thinkfan Dienst installiert und konfiguriert wird.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"flex flex-grow flex-col max-w-full gap-3 gizmo:gap-0\">\n<div class=\"min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 overflow-x-auto\" data-message-author-role=\"assistant\" data-message-id=\"b582432d-f27d-4830-861b-91d49528ae99\">\n<hr \/>\n<h2>Installation<\/h2>\n<p>Die Installation erfolgt aus den Repositories mittels:<\/p>\n<pre class=\"lang:default decode:true\">sudo apt-get install thinkfan lm-sensors<\/pre>\n<\/div>\n<\/div>\n<pre class=\"lang:default decode:true \">Setting up thinkfan (0.9.2-1) ... Job for thinkfan.service\r\nfailed. See 'systemctl status thinkfan.service' and 'journalctl&gt;\r\n-xn' for details. invoke-rc.d: initscript thinkfan, action\r\n\"start\" failed. dpkg: error processing package thinkfan\r\n(--configure): subprocess installed post-installation script\r\nreturned error exit status 1 Errors were encountered while\r\nprocessing: thinkfan E: Sub-process \/usr\/bin\/dpkg returned an\r\nerror code (1)<\/pre>\n<p>*Treten bei der Installation Fehler auf, ist eine manuelle Konfiguration notwendig<\/p>\n<p>Um Thinkfan beim Systemstart automatisch zu laden, wird der Dienst dem entsprechenden Runlevel hinzugef\u00fcgt:<\/p>\n<pre class=\"lang:default decode:true \">systemctl enable thinkfan.service<\/pre>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2>Manuelle Konfiguration<\/h2>\n<p>Thinkfan greift mittels lm-sensors \u00fcber dessen Datenpunkte auf die Sensoren des Systems zu. Die Grundkonfiguration von lm-sensors erfolgt folgenderma\u00dfen:<\/p>\n<pre class=\"lang:default decode:true\">sensors-detect<\/pre>\n<p>Die eingerichteten Sensoren mit den zugeh\u00f6rigen Werten k\u00f6nnen mit folgendem Befehl aufgelistet werden:<\/p>\n<pre class=\"lang:default decode:true\">for i in $(find \/sys\/devices -type f -name \"temp*_input\"); do printf \"$i =&gt; \" &amp;&amp; cat  $i ;done | grep -v \"=&gt; 0\"\r\n<\/pre>\n<p>Die Ausgabe des o.g. Befehls liefert die von lm-sensors erfassten Datenpunkte, wenn der Wert nicht 0 (inaktiv) ist:<\/p>\n<pre class=\"lang:default decode:true\">\/sys\/devices\/platform\/thinkpad_hwmon\/hwmon\/hwmon3\/temp1_input =&gt; 41000\r\n\/sys\/devices\/platform\/coretemp.0\/hwmon\/hwmon4\/temp3_input =&gt; 44000\r\n\/sys\/devices\/platform\/coretemp.0\/hwmon\/hwmon4\/temp1_input =&gt; 45000\r\n\/sys\/devices\/platform\/coretemp.0\/hwmon\/hwmon4\/temp2_input =&gt; 45000\r\n\/sys\/devices\/virtual\/thermal\/thermal_zone0\/hwmon0\/temp1_input =&gt; 41000\r\n<\/pre>\n<p>Der Zugriffspunkt des Thinkpad L\u00fcfters wird wie folgt ausgelesen:<\/p>\n<pre class=\"lang:default decode:true\">find \/proc -type f -name \"fan*\"<\/pre>\n<p>und verweist auf den Pfad:<\/p>\n<pre class=\"lang:default decode:true \">\/proc\/acpi\/ibm\/fan<\/pre>\n<p>In diesem Fall wurden 5 Sensoren mit entsprechenden Werten sowie eine Steuerungsdatei f\u00fcr den L\u00fcfter gefunden. Diese werden nun in der thinkfan Konfiguration ( etc\/thinkfan.conf ) eingetragen. Der Inhalt der Datei sieht dabei wie folgt aus:<\/p>\n<pre class=\"lang:default decode:true\">tp_fan \/proc\/acpi\/ibm\/fan\r\n\r\n\/sys\/devices\/platform\/thinkpad_hwmon\/hwmon\/hwmon3\/temp1_input\r\n\/sys\/devices\/platform\/coretemp.0\/hwmon\/hwmon4\/temp3_input\r\n\/sys\/devices\/platform\/coretemp.0\/hwmon\/hwmon4\/temp1_input\r\n\/sys\/devices\/platform\/coretemp.0\/hwmon\/hwmon4\/temp2_input\r\n\/sys\/devices\/virtual\/thermal\/thermal_zone0\/hwmon0\/temp1_input \r\n\r\n(0, 0, 55)\r\n(1, 48, 60)\r\n(2, 50, 61)\r\n(3, 52, 63)\r\n(4, 56, 65) \r\n(5, 59, 66)\r\n(7, 63, 32767)\r\n<\/pre>\n<p>Das o.g Muster ist folgenderma\u00dfen aufgebaut:<\/p>\n<p>(STUFE, NIEDRIG, HOCH)<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>STUFE ist die L\u00fcfterstufe, die verwendet werden soll (0-7 mit thinkpad_acpi)<\/li>\n<li>NIEDRIG ist die Temperatur, bei der auf die vorherige Stufe herabgestuft wird<\/li>\n<li>HOCH ist die Temperatur, bei der auf die n\u00e4chste Stufe heraufgestuft wird<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>*Alle Zahlen sind ganze Zahlen.<\/p>\n<hr \/>\n<h2>Tipps und Tricks<\/h2>\n<hr \/>\n<p>Die L\u00fcfterstufe kann auf eine Ganzzahl zwischen 0 (kein L\u00fcfter) und 7 (h\u00f6chste Stufe) eingestellt werden. Dabei entspricht Stufe 7 (ca. 4500 U\/min) nicht der maximalen L\u00fcftergeschwindigkeit.<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>L\u00fcfterstufe setzten:\n<pre class=\"lang:default decode:true\">echo level 4 | sudo tee \/proc\/acpi\/ibm\/fan<\/pre>\n<\/li>\n<li>Maximale L\u00fcfterdrehzahl setzen:\n<pre class=\"lang:default decode:true\">echo level disengaged | sudo tee \/proc\/acpi\/ibm\/fan<\/pre>\n<\/li>\n<li>Automatik Modus sezten\n<pre class=\"lang:default decode:true\">echo level auto | sudo tee \/proc\/acpi\/ibm\/fan<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<p>Die aktuellen L\u00fcfterwerte k\u00f6nnen wie folgt ausgelesen werden:<\/p>\n<pre class=\"lang:default decode:true\">cat \/proc\/acpi\/ibm\/fan<\/pre>\n<hr \/>\n<p>Script zur Ausgabe von CPU Temperatur und Thinkfan Werten:<\/p>\n<pre class=\"lang:default decode:true\">#!\/bin\/bash\r\nwhile [[ -z $Quit ]] ; do\r\n\tclear\r\n\tprintf \" Check CPU and Thinkfan value \\n\"\r\n\tprintf \" host: $(hostname ) ( $(date) )\\n\\n\"\r\n\techo -en \"$(sensors | grep CPU) \\n $(cat \/proc\/acpi\/ibm\/fan | grep -v commands)\" | awk -F \":\" '{printf \"%10s =&gt; %s \\n\" , $1, $2 }'\r\n\tprintf \"\\n\"\r\n\tprintf \" press any key to quit \\n\"\r\n\tread -n 1 -t 1 Quit\r\ndone<\/pre>\n<hr \/>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2821 alignleft\" src=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-content\/uploads\/2014\/08\/CC_BY_NC_SA.png\" alt=\"CC_BY_NC_SA\" width=\"65\" height=\"23\" \/><span style=\"font-size: 10pt;\">by Speefak <span style=\"font-size: 8pt;\">| <a href=\"http:\/\/fmnt.info\/blog\/cpu_thinkpad.html\" target=\"_blank\" rel=\"noopener\">http:\/\/fmnt.info<\/a> | <a href=\"https:\/\/medium.com\/@mirul\/setting-up-thinkfan-for-thinkpad-t420-aaec5108f75f\" target=\"_blank\" rel=\"noopener\">https:\/\/medium.com<\/a><\/span><\/span><span style=\"font-size: 8pt;\">\u00a0| <\/span><a href=\"https:\/\/forum.thinkpads.com\/viewtopic.php?t=119546\"><span style=\"font-size: 8pt;\">forum.thinkpads.com<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thinkfan wurde urspr\u00fcnglich entwickelt, um das Problem des unn\u00f6tig hohen Energieverbrauchs des L\u00fcfters zu l\u00f6sen. Es bietet im Allgemeinen eine einfache M\u00f6glichkeit, den L\u00fcfterpegel f\u00fcr bestimmte Temperaturbereiche zu steuern. Wenn aufgrund einer fehlerhaften Konfiguration der thinkfan Dienst nicht gestartet wird, ist eine manuelle Konfiguration n\u00f6tig. Im Folgenden wird gezeigt, wie der thinkfan Dienst installiert und [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,26],"tags":[],"class_list":["post-6982","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux"],"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"speefak","author_link":"https:\/\/speefak.spdns.de\/oss_lifestyle\/author\/speefak_oss\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/category\/debian\/\" rel=\"category tag\">Debian<\/a> <a href=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/category\/linux\/\" rel=\"category tag\">Linux<\/a>","rttpg_excerpt":"Thinkfan wurde urspr\u00fcnglich entwickelt, um das Problem des unn\u00f6tig hohen Energieverbrauchs des L\u00fcfters zu l\u00f6sen. Es bietet im Allgemeinen eine einfache M\u00f6glichkeit, den L\u00fcfterpegel f\u00fcr bestimmte Temperaturbereiche zu steuern. Wenn aufgrund einer fehlerhaften Konfiguration der thinkfan Dienst nicht gestartet wird, ist eine manuelle Konfiguration n\u00f6tig. Im Folgenden wird gezeigt, wie der thinkfan Dienst installiert und&hellip;","_links":{"self":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/posts\/6982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/comments?post=6982"}],"version-history":[{"count":0,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/posts\/6982\/revisions"}],"wp:attachment":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/media?parent=6982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/categories?post=6982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/tags?post=6982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}