[ltp] Fan always on problem... does it happen on R52 with the
Intel Media Gr
Leon Brokken
linux-thinkpad@linux-thinkpad.org
Thu, 11 Aug 2005 17:19:55 +0300
This is a multi-part message in MIME format.
--Boundary_(ID_wQ/ZNnX9gsYAkheVR9iiQA)
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 8BIT
Thanks a lot Honey,
however, upon starting the init script, I get the following
bash-3.00# /etc/rc.d/rc.ibm_manage_fan start
: bad interpreter: No such file or directory
I have the script in /usr/local/sbin/ and checked all references to it
in the init script, but I can't figure out what the heck could be wrong
here??? Both are executable. All files in /proc/acpi are in the
appropriate place too.
Any suggestions as to what might be wrong??
PS: when I run the script /usr/local/sbin/ibm_manage_fan.sh directly,
the fan boosts for a second and then returns to it normal speed. I don't
know if it's supposed to do that (haven't checked the config yet) but at
least that script is not causing the error.
Cheers, Leon.
honey@gneek.com wrote:
> On Thu, 11 Aug 2005, Leon Brokken wrote:
>
>> I've checked the archives, but can only dig up the init script, not the
>> ibm_manage_fan.sh script.
>> Could someone please post it again, or giveme a pointer as to where to
>> find it?
>>
>> Not that my T41 is noisy at all, but it would be nice to not be running
>> the fan if not necessary.
>>
>> Cheers, Leon.
>
>
> If this helps, it's in my personal archive here:
>
> From: Paul RIVIER <paul.rivier@eleve.emn.fr>
> Subject: [ltp] Fan management for thinkpad
> Date: Mon, 11 Jul 2005 12:46:54 +0200
>
> I'll attach my own versions of Paul's scripts I nabbed at the time -
> from memory all I did was add some chkconfig lines for Red Hat/Fedora
> to the init - will be ignored by other distros - and a signal trap
> in the main script for ^C and exit to always turn the fan back on in
> case I was testing. I maybe also changed the path to /usr/local/sbin.
> The credit for the idea and script should go entirely to Paul.
>
> To install just:
> # cp ibm_manage_fan.sh /usr/local/sbin/
> # cp init-script /etc/init.d/ibm_manage_fan
>
> and turn on the service for your distro in the usual way - for
> Fedora/RH:
> # chkconfig ibm_manage_fan on
> # service ibm_manage_fan start
>
> You can tweak the battery and AC temperature limits. Be *very*
> careful using the scripts obviously. I haven't checked for other
> possible cases where they may crash and the fan stay off - in which
> case you'll melt. I don't really use it much.
>
>------------------------------------------------------------------------
>
>#!/bin/sh
>#
># ibm_manage_fan: Controls fan
>#
># chkconfig: 345 98 02
># description: Starts and stop ibm_manage_fan to control the fan on an
># ibm thinkpad. Read /usr/sbin/ibm_manage_fan.sh !
>#
># processname: ibm_manage_fan
># pidfile: /var/run/ibm_manage_fan.pid
>
>if [ ! -f /proc/acpi/ibm/fan ] ; then
> echo "Please use ibm-acpi 0.11 or higher, with experimental=1"
> exit -1
>fi
>
>if [ ! -f /usr/local/sbin/ibm_manage_fan.sh -a -x /usr/local/sbin/ibm_manage_fan.sh ] ; then
> echo "Please copy ibm_manage_fan in /usr/local/sbin and make it executable"
> exit -1
>fi
>
># Enable ibm_manage_fan when the system is booted
>
>case $1 in
> start)
> if [ -f /var/run/ibm-manage-fan-enabled ] ; then
> echo "Thinkpad fan management is already running ..."
> exit 0
> fi
> echo -n "Initializing thinkpad fan management ... "
> touch /var/run/ibm-manage-fan-enabled
> /usr/local/sbin/ibm_manage_fan.sh &
> echo "done."
> exit 0
> ;;
>
> restart|reload|force-reload)
> set -e
> echo -n "Restarting thinkpad fan management... "
> $0 stop > /dev/null
> $0 start > /dev/null
> echo "done."
> exit 0
> ;;
>
> stop)
> echo -n "Stopping thinkpad fan management ... "
> rm -f /var/run/ibm-manage-fan-enabled
> sleep 5
> echo -n enable > /proc/acpi/ibm/fan
> echo "done."
> exit 0
> ;;
>
> *)
> echo "Usage: $0 {stop|start|restart|reload|force-reload}" >&2
> exit 1
> ;;
>esac
>
>
--
Leon J.S. Brokken
Dept. of Anatomy, Inst. of Biomedicine, University of Turku
Tykistökatu 6 A, 20520 Turku, Finland
Tel. +358(0)405845063, Fax +358(0)22502610
--
GnuPG: 0x3C0E8DAE | 1EE8 511D A6D3 9F9C 2F43 EB6E 8387 B051 3C0E 8DAE
--
--Boundary_(ID_wQ/ZNnX9gsYAkheVR9iiQA)
Content-type: text/html; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks a lot Honey,<br>
<br>
however, upon starting the init script, I get the following<br>
<blockquote>bash-3.00# /etc/rc.d/rc.ibm_manage_fan start<br>
: bad interpreter: No such file or directory<br>
</blockquote>
I have the script in /usr/local/sbin/ and checked all references to it
in the init script, but I can't figure out what the heck could be wrong
here??? Both are executable. All files in /proc/acpi are in the
appropriate place too.<br>
<br>
Any suggestions as to what might be wrong??<br>
<br>
PS: when I run the script /usr/local/sbin/ibm_manage_fan.sh directly,
the fan boosts for a second and then returns to it normal speed. I
don't know if it's supposed to do that (haven't checked the config yet)
but at least that script is not causing the error.<br>
<br>
Cheers, Leon.<br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:honey@gneek.com">honey@gneek.com</a> wrote:
<blockquote cite="midPine.LNX.4.63.0508111403490.589@localhost"
type="cite">On Thu, 11 Aug 2005, Leon Brokken wrote:
<br>
<br>
<blockquote type="cite">I've checked the archives, but can only dig
up the init script, not the
<br>
ibm_manage_fan.sh script.
<br>
Could someone please post it again, or giveme a pointer as to where to
<br>
find it?
<br>
<br>
Not that my T41 is noisy at all, but it would be nice to not be running
<br>
the fan if not necessary.
<br>
<br>
Cheers, Leon.
<br>
</blockquote>
<br>
If this helps, it's in my personal archive here:
<br>
<br>
From: Paul RIVIER <a class="moz-txt-link-rfc2396E" href="mailto:paul.rivier@eleve.emn.fr"><paul.rivier@eleve.emn.fr></a>
<br>
Subject: [ltp] Fan management for thinkpad
<br>
Date: Mon, 11 Jul 2005 12:46:54 +0200
<br>
<br>
I'll attach my own versions of Paul's scripts I nabbed at the time -
<br>
from memory all I did was add some chkconfig lines for Red Hat/Fedora
<br>
to the init - will be ignored by other distros - and a signal trap
<br>
in the main script for ^C and exit to always turn the fan back on in
<br>
case I was testing. I maybe also changed the path to /usr/local/sbin.
<br>
The credit for the idea and script should go entirely to Paul.
<br>
<br>
To install just:
<br>
# cp ibm_manage_fan.sh /usr/local/sbin/
<br>
# cp init-script /etc/init.d/ibm_manage_fan
<br>
<br>
and turn on the service for your distro in the usual way - for
<br>
Fedora/RH:
<br>
# chkconfig ibm_manage_fan on
<br>
# service ibm_manage_fan start
<br>
<br>
You can tweak the battery and AC temperature limits. Be *very*
<br>
careful using the scripts obviously. I haven't checked for other
<br>
possible cases where they may crash and the fan stay off - in which
<br>
case you'll melt. I don't really use it much.<br>
<pre wrap="">
<hr size="4" width="90%">
#!/bin/sh
#
# ibm_manage_fan: Controls fan
#
# chkconfig: 345 98 02
# description: Starts and stop ibm_manage_fan to control the fan on an
# ibm thinkpad. Read /usr/sbin/ibm_manage_fan.sh !
#
# processname: ibm_manage_fan
# pidfile: /var/run/ibm_manage_fan.pid
if [ ! -f /proc/acpi/ibm/fan ] ; then
echo "Please use ibm-acpi 0.11 or higher, with experimental=1"
exit -1
fi
if [ ! -f /usr/local/sbin/ibm_manage_fan.sh -a -x /usr/local/sbin/ibm_manage_fan.sh ] ; then
echo "Please copy ibm_manage_fan in /usr/local/sbin and make it executable"
exit -1
fi
# Enable ibm_manage_fan when the system is booted
case $1 in
start)
if [ -f /var/run/ibm-manage-fan-enabled ] ; then
echo "Thinkpad fan management is already running ..."
exit 0
fi
echo -n "Initializing thinkpad fan management ... "
touch /var/run/ibm-manage-fan-enabled
/usr/local/sbin/ibm_manage_fan.sh &
echo "done."
exit 0
;;
restart|reload|force-reload)
set -e
echo -n "Restarting thinkpad fan management... "
$0 stop > /dev/null
$0 start > /dev/null
echo "done."
exit 0
;;
stop)
echo -n "Stopping thinkpad fan management ... "
rm -f /var/run/ibm-manage-fan-enabled
sleep 5
echo -n enable > /proc/acpi/ibm/fan
echo "done."
exit 0
;;
*)
echo "Usage: $0 {stop|start|restart|reload|force-reload}" >&2
exit 1
;;
esac
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Leon J.S. Brokken
Dept. of Anatomy, Inst. of Biomedicine, University of Turku
Tykistökatu 6 A, 20520 Turku, Finland
Tel. +358(0)405845063, Fax +358(0)22502610
--
GnuPG: 0x3C0E8DAE | 1EE8 511D A6D3 9F9C 2F43 EB6E 8387 B051 3C0E 8DAE
--
</pre>
</body>
</html>
--Boundary_(ID_wQ/ZNnX9gsYAkheVR9iiQA)--