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 29 Jul 2014, 11:05
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
eee-fan
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Sun 26 Oct 2008, 17:00    Post subject:  eee-fan
Subject description: A script to control the fan inb the EeePC
 

I wrote a little script that runs as a daemon and controls the fan in the EeePC.

To run is all you need to do is add to /etc/rc.d/rc.local:
Code:
/usr/sbin/eee-fan-ctrl.sh &


I also wrote a simple config gui using gtkdialog. To run it, just type "eee-fan-config.sh" in a terminal.

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

Last edited by Dougal on Sun 12 Apr 2009, 05:42; edited 2 times in total
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4759
Location: Manila

PostPosted: Sun 26 Oct 2008, 19:48    Post subject: thanks  

Lots of eee "fans" will be happy with this, thanks, Dougal. Smile
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5218
Location: Australia

PostPosted: Mon 27 Oct 2008, 06:22    Post subject:  

Thanks Dougal. It's important to mention that the "eee" kernel module must be installed and loaded. This module is provided by the eee-fan-CPU-0.2-k2.6.25.16.pet, available here -
http://www.murga-linux.com/puppy/viewtopic.php?p=237746#237746
I updated that post to link to this post.

Last edited by tempestuous on Sun 02 Nov 2008, 06:17; edited 1 time in total
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Mon 27 Oct 2008, 06:52    Post subject:  

tempestuous wrote:
It's important to mention that the "eee" kernel module must be installed and loaded.

Ah, yes. The eee-fan script actually loads it if it's not loaded, but installing it first can be helpful...

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
mawebb88

Joined: 13 Jul 2008
Posts: 245
Location: France nr Lyon

PostPosted: Tue 28 Oct 2008, 10:19    Post subject: Eee PC 901 fan control
Subject description: Where can I see the temperature and fan speed?
 

Dougal wrote:
tempestuous wrote:
It's important to mention that the "eee" kernel module must be installed and loaded.

Ah, yes. The eee-fan script actually loads it if it's not loaded, but installing it first can be helpful...


Another Eee "fan" here. Many thanks for this but where can I see a read-out the temperature and fan speeds? I see in Hardinfo under sensors TZ00=57. I assume this in the CPU temperature? The current fan speed would be nice to see.

Do I need to install eee-fan-CPU-0.2-k2.6.25.16.pet as well?

Mike
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Wed 29 Oct 2008, 06:57    Post subject: Re: Eee PC 901 fan control
Subject description: Where can I see the temperature and fan speed?
 

mawebb88 wrote:
Another Eee "fan" here. Many thanks for this but where can I see a read-out the temperature and fan speeds? I see in Hardinfo under sensors TZ00=57. I assume this in the CPU temperature? The current fan speed would be nice to see.

Hardinfo will not give you that info because the eee uses its own "uniq" interface for those things... hence the need for various specialized tools for everything.
To see the temperature you need to run
Code:
cat /proc/eee/temperature
and for the fan speed
Code:
cat /proc/eee/fan_speed



Quote:
Do I need to install eee-fan-CPU-0.2-k2.6.25.16.pet as well?

That's probably for the cpu... you'll have to look at the thread it's posted on.

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5218
Location: Australia

PostPosted: Wed 29 Oct 2008, 07:43    Post subject:  

mawebb88 wrote:
Do I need to install eee-fan-CPU-0.2-k2.6.25.16.pet as well?

Yes. This dotpet package provides the "eee" kernel module.
Back to top
View user's profile Send private message 
mawebb88

Joined: 13 Jul 2008
Posts: 245
Location: France nr Lyon

PostPosted: Wed 29 Oct 2008, 14:11    Post subject: Re: Eee PC 901 fan control
Subject description: Where can I see the temperature and fan speed?
 

[quote="Dougal"]
Hardinfo will not give you that info because the eee uses its own "uniq" interface for those things... hence the need for various specialized tools for everything.
To see the temperature you need to run
Code:
cat /proc/eee/temperature
and for the fan speed
Code:
cat /proc/eee/fan_speed


Many thanks for this. I have put them in 2 little executable script files for myself:

Code:
xterm -hold -e cat /proc/eee/temperature

&
Code:
xterm -hold -e cat /proc/eee/fan_speed


(That's the real xterm not the symlinked rxvt)

But what I was hoping was that you might put this code in your GUI so we could see the values there?

By the way I don't know if its just coincidence but the temperature script gives the same value as I see in the Hardinfo sensor TZ00 value.

I tried to get away with a manual fan speed of 40% but have had to change it to 60% to keep things cool.

Mike
Back to top
View user's profile Send private message 
slappinjohn

Joined: 31 Oct 2008
Posts: 2

PostPosted: Sun 02 Nov 2008, 05:33    Post subject: eee-fan adopted for archlinux  

@Dougal: Thanks for your work. using gtkdialog for configtool was a good idea. I adopted your package to run script as daemon on arch linux. Just had to add a line in eee-fan-ctrl.sh to trap SIGTERM when sending the kill command and to do an clean shutdown and set fan to autocontrol. I also wrote a script to start as daemon, placed in /etc/rc.d/ .
Maybe you're interrested in the changes I made, so I put the packagesource as attachment.

Greets
eee-fan.tar.gz
Description  Archlinux Source Package (see PKGBUILD for where to place the files)
gz

 Download 
Filename  eee-fan.tar.gz 
Filesize  3.47 KB 
Downloaded  671 Time(s) 
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Sun 02 Nov 2008, 08:16    Post subject: Re: eee-fan adopted for archlinux  

slappinjohn wrote:
I adopted your package to run script as daemon on arch linux. Just had to add a line in eee-fan-ctrl.sh to trap SIGTERM when sending the kill command and to do an clean shutdown and set fan to autocontrol. I also wrote a script to start as daemon, placed in /etc/rc.d/ .
Maybe you're interrested in the changes I made, so I put the packagesource as attachment.

Greets

Thanks.
I assume you added
Code:
trap "exit_script" TERM
at the top?
I'll add that.
I've been meaning to send the script to the Debian-eeepc folks, too.
I've made some little refinements, so I'll upload an updated package.

Note that I think that, on "normal" distros, you can give the config file and configuration gui user permissions, then all you need is to use sudo/su for the "killall -HUP" (or just cancel that feature...).

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
slappinjohn

Joined: 31 Oct 2008
Posts: 2

PostPosted: Sun 02 Nov 2008, 13:24    Post subject: Re: Re: eee-fan adopted for archlinux  

Yes, it's the line saying:
Code:
trap "exit_script" SIGTERM

You can also use '15' instead of SIGTERM, is just for exec function exit_script when SIGTERM is caught. Means when doing
Code:
kill eee-fan-ctrl.sh

I'll change the userrights for eee-fan.conf to allow write access for normal users. Or maybe change group to users. Thanks
Back to top
View user's profile Send private message 
magerlab

Joined: 08 Jul 2007
Posts: 731

PostPosted: Sun 02 Nov 2008, 17:15    Post subject:  

may be it's possible to share your experience on how one must use this eee-fan control

i do manually turn off the fan at start and wait untill the temp gets about 51-54 degrees and only then turn it on ( 20%)
the temperature stays at about 50-52 degrees.
also i use cpu scaling with cpufrequtils( took from slackware)

_________________
skype: desafimager
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Mon 03 Nov 2008, 09:21    Post subject:  

I've updated the dotpet with some minor changes (and the "clean" exit).

I've also added a "verbose logging" option, that makes it log the temperature every time it is checked, so you can plot the cooling rate for different fan speeds... it could help decide on the best settings.

I've also included in the config gui mention of something I keep forgetting: the daemon will not accept temperatures below 30 degrees or above 80 degrees from the configuration.
The reasoning behind this is:
- If you set the lower limit too low, the fan will probably never stop (since you just can't bring the temp that low...)
- If you set the high limit too high, you might damage the processor...
Note that I just made up those limits, so if someone wants to google and find the critical temperatures for the processors used in the eee I can adjust it appropriately...
(These limits are now set at the end of the config file, so you can change them manually.)

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
venger

Joined: 17 Sep 2008
Posts: 13

PostPosted: Tue 18 Nov 2008, 19:28    Post subject:  

just to share my experience with a eeepc 901 unit:

Fan control works a treat - it is set to run at 40%. However, when my power plug is connected up to the laptop, temperature climbs up to 60degC +/- 3degC. The bottom gets much warmer then say the Ubuntu 8.04 install that i was running.
My fsb is set to a 'powersave' setting (i hope) at '75 50 0'.
regular cat /proc/eee/fsb does confirm that the setting is set at these values.

Anyway, will try a few things out to see if can sort out this problem -else, puppy 4.1.1 NOP with XFCE is proving to be snappy, faster bootup and generally just as fun as the heavier distros.

Many thanks to BK and team incl. Dougal for getting these netbooks to almost full functionality!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
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: 13 (0.0049s) ][ GZIP on ]