Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 12:59
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Make laptop fan come on at certain temp [solved]
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
liro

Joined: 28 Jul 2012
Posts: 149

PostPosted: Sat 06 Jul 2013, 15:02    Post_subject:  Make laptop fan come on at certain temp [solved]  

I'll keep this question to the point as I usually waffle on too much Razz:

How can I make the CPU fan on my IBM Thinkpad X31 come on only when the CPU reaches a certain temperature?

I'm specifically interested in making it come on at a certain temp rather than adjusting the fan speed (I know about the IBM fan speed control and other similar programs).

In Windows I use a program called TPFanControl, which has a smart mode that works well on my laptop. Ideally I'd like to find something similarly easy-to-install-and-use for Linux, but I'd settle on just being able to adjust the temp values manually.

Thanks for any help.

Edited_time_total
Back to top
View user's profile Send_private_message 
Semme

Joined: 07 Aug 2011
Posts: 3966
Location: World_Hub

PostPosted: Sat 06 Jul 2013, 15:19    Post_subject:  

Ideally (me thinks..), you'll need a cron directed script to monitor /proc/acpi/thermal_zone/THM/temperature.

Perhaps if SFR sees this and has time to spare, he'll craft you one. He's resolved many a request..

Edited_time_total
Back to top
View user's profile Send_private_message 
Burn_IT


Joined: 12 Aug 2006
Posts: 1027
Location: Tamworth UK

PostPosted: Sat 06 Jul 2013, 15:26    Post_subject:  

Snap for my T43p.
I'm not so worried about the temp in Puppy as it is quite cool compared with Windows (less resources used so CPU doesn't work so hard).

First step is to use frequency scaling and give it quite a low figure for the lower frequency. I use 33%. That allows it to scale down.

I also discovered the Windows update from Lenovo that does the same thing and that has reduced my windows temps by 10 degrees C

_________________
I can't remember the last time I forgot something!
Back to top
View user's profile Send_private_message 
Semme

Joined: 07 Aug 2011
Posts: 3966
Location: World_Hub

PostPosted: Sat 06 Jul 2013, 15:45    Post_subject:  

Frequency scaling? << Yeah! Keep fergit'n bout dis..
Back to top
View user's profile Send_private_message 
liro

Joined: 28 Jul 2012
Posts: 149

PostPosted: Sat 06 Jul 2013, 19:31    Post_subject:  

Thanks for the replies. My issue is that I don't want to the fan to be running so frequently. I've achieved this in Windows with the TPFanControl program, and just want to find a way of doing the same in Linux. I already use the CPU frequency scaling tool, but whatever settings I use don't seem to make any difference with regard to how often the fan runs.

There's a program (Thinkpad Fan Control) mentioned here: thinkwiki.org/wiki/How_to_control_fan_speed ...that could possibly be useful, but after a year or so of using Puppy I've rarely got a non-PET-installed program to work Confused and I don't know how to install/run it correctly.

Is there no simple way of doing what I want to do on Puppy? (like just adjusting some values in some file somewhere, or something...)
Back to top
View user's profile Send_private_message 
Burn_IT


Joined: 12 Aug 2006
Posts: 1027
Location: Tamworth UK

PostPosted: Sat 06 Jul 2013, 19:42    Post_subject:  

can you post the full url for that wiki and I'll have a look at it when I've got a minute.
_________________
I can't remember the last time I forgot something!
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Sat 06 Jul 2013, 20:00    Post_subject:  

https://www.kernel.org/doc/Documentation/laptops/thinkpad-acpi.txt
Reading that it seems that you need to
Code:
modprobe -v --first-time thinkpad-acpi

to load it if not loaded , see also menu > system > bootmanager

and to load the temperature driver for your chip/cpu .

Puppy's autoloading of platform:coretemp does not work, due to limitations of /sbin/pup_event_backend_modprobe ,

and to
Code:
find /sys -name "temp*input" -print -exec cat {} \;
find /sys -name "*fan*" -print -exec ls {} \;

to find evtl files that contain values

and something like

read TEMP </sys/*/driver/temp1_input
if [ "$TEMP" -gt 99 ] ; then
echo 'some_value' > /sys/*/fan/start_me
echo "some_other_value" > /sys/*/fan/rounds_per_minute
fi

_________________
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal Razz
Back to top
View user's profile Send_private_message Visit_website 
Semme

Joined: 07 Aug 2011
Posts: 3966
Location: World_Hub

PostPosted: Sat 06 Jul 2013, 20:04    Post_subject:  

Perhaps if..
Quote:
"Is there no simple way of doing what I want to do on Puppy?"
Back to top
View user's profile Send_private_message 
liro

Joined: 28 Jul 2012
Posts: 149

PostPosted: Sat 06 Jul 2013, 20:25    Post_subject:  

Burn_IT wrote:
can you post the full url for that wiki and I'll have a look at it when I've got a minute.

Cheers Burn_IT. The full address is the one I wrote (thinkwiki.org/wiki/How_to_control_fan_speed) but the site seems to be loading extreming slowly at the moment (was working fine earlier).

Karl Godt wrote:

and something like

read TEMP </sys/*/driver/temp1_input
if [ "$TEMP" -gt 99 ] ; then
echo 'some_value' > /sys/*/fan/start_me
echo "some_other_value" > /sys/*/fan/rounds_per_minute
fi

Thanks Karl, but I'll be honest, I can't really follow what you've written due to my severe Linux-retardation. Embarassed

Semme wrote:
Perhaps if..
Quote:
"Is there no simple way of doing what I want to do on Puppy?"

Yeah Semme, I'm looking for something thicko-proof, ideally Very Happy.
Back to top
View user's profile Send_private_message 
liro

Joined: 28 Jul 2012
Posts: 149

PostPosted: Sun 14 Jul 2013, 13:25    Post_subject:  

As well as the "Simple Thinkpad Control" program described here, I found a couple of other things ("fanctrld" & "tp-fan") that might work on this fan control scripts page: www.thinkwiki.org/wiki/Fan_control_scripts

Does anyone know how I can install any of these programs/scripts on Puppy?

Thanks!
Back to top
View user's profile Send_private_message 
trio


Joined: 21 Dec 2008
Posts: 1798
Location: अनुमोदना

PostPosted: Mon 15 Jul 2013, 00:19    Post_subject:  

MAYBE this can help

http://murga-linux.com/puppy/viewtopic.php?t=44511&search_id=813150141

_________________
PET Maker|WbarCC
Back to top
View user's profile Send_private_message 
liro

Joined: 28 Jul 2012
Posts: 149

PostPosted: Mon 15 Jul 2013, 21:52    Post_subject:  

trio wrote:
MAYBE this can help

http://murga-linux.com/puppy/viewtopic.php?t=44511&search_id=813150141

Hi trio,

I actually already have that program installed, but as mentioned I'm looking to be able to control at what CPU temperature the fan comes on, rather than control the fan speed.

However, I notice in that thread you wrote: "The usual acpi makes the fan to go on at 70 C point, so to test I apply this fan to go on at 45 C..."

...and was wondering if you could you tell me how you made the fan turn on at that temp? Thanks.
Back to top
View user's profile Send_private_message 
trio


Joined: 21 Dec 2008
Posts: 1798
Location: अनुमोदना

PostPosted: Mon 15 Jul 2013, 22:36    Post_subject:  

Hi,

It's been a long while since I played with puppy. There is actually a way which I did, I forgot how. sorry

_________________
PET Maker|WbarCC
Back to top
View user's profile Send_private_message 
liro

Joined: 28 Jul 2012
Posts: 149

PostPosted: Mon 15 Jul 2013, 23:01    Post_subject:  

trio wrote:
Hi,

It's been a long while since I played with puppy. There is actually a way which I did, I forgot how. sorry

No worries, trio, thanks anyway for your help.

The fan starts up at quite a low temp, which is kind of annoying. With the TPFanControl program in Windows it comes on at about 65 C. I've been trying to find a way of getting it to do this in Linux Puppy, but can't get my head around it.

If anyone else knows how it can be done, please let me know!
Back to top
View user's profile Send_private_message 
liro

Joined: 28 Jul 2012
Posts: 149

PostPosted: Wed 18 Sep 2013, 17:40    Post_subject:  

Eventually found something that I've managed to get working... Probably not the most elegant of solutions, but it works and does more or less what I want, so I can't complain.

Just needed to add "options thinkpad-acpi experimental=1 fan_control=1" to a .conf file in /etc/modprobe.d, then make this script start on boot up: http://www.thinkwiki.org/wiki/Code/fan-enable-safe
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0871s ][ Queries: 12 (0.0136s) ][ GZIP on ]