<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BjdWfy</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BjdWfy"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/BjdWfy"/>
	<updated>2026-05-13T12:11:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Code/fan-enable-extended&amp;diff=29193</id>
		<title>Code/fan-enable-extended</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Code/fan-enable-extended&amp;diff=29193"/>
		<updated>2007-04-11T01:57:31Z</updated>

		<summary type="html">&lt;p&gt;BjdWfy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
# fan control-script&lt;br /&gt;
#&lt;br /&gt;
# based upon ibm-acpi 0.11 (experimental=1 !)&lt;br /&gt;
#&lt;br /&gt;
# eliminates anoying &amp;quot;fan always on&amp;quot; in battery mode&lt;br /&gt;
# works with hysteresis (DELTA) so that always-turn-on/turn-off is avoided&lt;br /&gt;
# fan acivates at MAXTEMP and cools down CPU, GPU etc. to MAXTEMP-DELTA than the fan is turned off&lt;br /&gt;
# furthermore detects if AC is on and gives back fan control to default behaviour than&lt;br /&gt;
#&lt;br /&gt;
# one can change MAXTEMP and DELTA to individual values&lt;br /&gt;
# but take care of your THINKPAD don`t melt it!&lt;br /&gt;
#&lt;br /&gt;
# have fun!&lt;br /&gt;
# mk 05.05.05&lt;br /&gt;
&lt;br /&gt;
MAXTEMP=51&lt;br /&gt;
DELTA=4&lt;br /&gt;
&lt;br /&gt;
SWITCHTEMP=$MAXTEMP&lt;br /&gt;
&lt;br /&gt;
#make sure the script doesn't leave the fan off on error&lt;br /&gt;
trap &amp;quot;echo enable &amp;gt; /proc/acpi/ibm/fan&amp;quot; EXIT&lt;br /&gt;
&lt;br /&gt;
while [ 1 ];&lt;br /&gt;
do&lt;br /&gt;
  for ac in `sed s/state:// &amp;lt; /proc/acpi/ac_adapter/AC/state`&lt;br /&gt;
    do&lt;br /&gt;
     if [ &amp;quot;$ac&amp;quot; = &amp;quot;off-line&amp;quot; ]; then&lt;br /&gt;
         fan=no&lt;br /&gt;
         for temp in `sed s/temperatures:// &amp;lt; /proc/acpi/ibm/thermal`&lt;br /&gt;
           do&lt;br /&gt;
             test $temp -gt $SWITCHTEMP&lt;/div&gt;</summary>
		<author><name>BjdWfy</name></author>
		
	</entry>
</feed>