Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reducing fan speed
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 169

PostPosted: Sun Oct 30, 2005 6:21 am    Post subject: Reply with quote

Yes, I did:
Code:
rc-update add fancontrol default

rc-update -s confirms it.

and here is the output:
Code:

# /etc/init.d/fancontrol start
#

but if I do:
Code:
 # /usr/sbin/fancontrol
Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=10

Settings for *-0290/pwm2:
  Depends on *-0290/temp2_input
  Controls *-0290/fan2_input
  MINTEMP=45
  MAXTEMP=60
  MINSTART=0
  MINSTOP=0

Settings for *-0290/pwm1:
  Depends on *-0290/temp1_input
  Controls *-0290/fan1_input
  MINTEMP=45
  MAXTEMP=60
  MINSTART=0
  MINSTOP=0

Enabling PWM on fans...
Starting automatic fan control...

Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 169

PostPosted: Sun Oct 30, 2005 7:12 pm    Post subject: Reply with quote

I don't know if it helps but here is the output from rc-status:
Code:
 # rc-status
Runlevel: default
 xdm                                                                 [ started ]
 cupsd                                                               [ started ]
 local                                                               [ started ]
 mysql                                                               [ started ]
 samba                                                               [ started ]
 lm_sensors                                                          [ started ]
 domainname                                                          [ started ]
 net.lo                                                              [ started ]
 net.eth0                                                            [ started ]
 splash                                                              [ started ]
 apache2                                                             [ started ]
 fancontrol                                                          [ stopped ]
#
Back to top
View user's profile Send private message
Deepak420
Apprentice
Apprentice


Joined: 12 Jan 2005
Posts: 173
Location: Beantown

PostPosted: Tue Nov 15, 2005 5:05 am    Post subject: Reply with quote

This line needs to be added to the top of the script:
Code:
#!/sbin/runscript
Back to top
View user's profile Send private message
fly-a-lot
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2005
Posts: 83

PostPosted: Sat Jan 14, 2006 6:37 pm    Post subject: Reply with quote

Hi guys,

I hope somebody is still watching this topic :)

After quite some time and after following a couple of tricks I finally got the PWM interface for the fans running on my mainboard (Asus A8N-E). After taking that hurdle I founf this thread and liked the idea to start fancontrol with the start-stop-daemon as suggested before.

Unfortunately I ran into some unexpected problems. But let me first show you my /etc/init.d/fancontrol
Code:
#!/sbin/runscript


start() {

   ebegin "Starting fancontrol"
   start-stop-daemon --start --background --pidfile /var/run/fancontrol.pid --exec /usr/sbin/fancontrol
   eend $? "Failed to start fancontrol"

}

stop() {

   ebegin "Stopping fancontrol"
   start-stop-daemon --stop --pidfile /var/run/fancontrol.pid
   eend $? "Failed to stop fancontrol"

}

That is pretty staightforward and basically what has been suggested before.

Now, when I start fancontrol with
Code:
/etc/init.d/fancontrol start
fancontrol starts and works fine. The fan speed is reduced and everything works as expected. Stopping fancontrol sets the fan to full speed - everything is working fine so far.

But when I do
Quote:
rc-update add fancontrol default
and reboot the system, the following happens.
- on the boot screen a message appears that fancontrol starts ok
- immediately after booting I do the following checks:
1. fan is running at full speed: fancontrol appears to be not running
2. /var/run/fancontrol.pid contains a different pid than the one I checked before I rebooted the system
3. can't find a process with the pid shown in fancontrol.pid

Conclusion: fancontrol started but aborted immediately for some reason. No error message, nothing.

Has anybody an idea what is going on here?

Thanks!!!
Back to top
View user's profile Send private message
r8dhex
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2002
Posts: 120

PostPosted: Thu Apr 20, 2006 9:15 am    Post subject: Reply with quote

I modified the init script like this. This was because when booting, fancontrol would fail since lm_sensors wasn't running yet, adding depend() makes sure that lm_sensors starts first before fancontrol

Code:
#!/sbin/runscript

depend() {
        need lm_sensors
}

start() {
        ebegin "Starting fancontrol"
        start-stop-daemon --start  --background --pidfile /var/run/fancontrol.p$
        eend $? "Failed to start fancontrol"
}

stop() {
        ebegin "Stopping fancontrol"
        start-stop-daemon --stop --pidfile /var/run/fancontrol.pid
        eend $? "Failed to stop fancontrol"
}
Back to top
View user's profile Send private message
fly-a-lot
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2005
Posts: 83

PostPosted: Fri Apr 21, 2006 11:12 pm    Post subject: Reply with quote

Oh, you are right, r8dhex!
depend() was indeed missing :oops:

Just to close the case, after adding depend() to /etc/init.d/fancontrol
Code:
/sbin/depscan.sh --update
needs to be run.
Back to top
View user's profile Send private message
fataki
n00b
n00b


Joined: 02 Mar 2006
Posts: 9

PostPosted: Sat Sep 09, 2006 10:57 am    Post subject: Reply with quote

I managed to get fancontrol to work, but the fan keeps stopping for few seconds once a minute or so. I would like the fan to always stay at least around 1000rpm. I tried to set MINTEMP to very low and adjust MINSTART and MINSTOP, but the fan always wants to stop.

My normal idle temperature is 45 degrees when the fan spins at around 1000rpm (and for a second once in a while) and <38 when fan's at full speed.

Here's /etc/fancontrol
Code:
INTERVAL=10
FCTEMPS= 9191-0290/pwm1=9191-0290/temp1_input
FCFANS= 9191-0290/pwm1=9191-0290/fan1_input
MINTEMP= 9191-0290/pwm1=35
MAXTEMP= 9191-0290/pwm1=100
MINSTART= 9191-0290/pwm1=100
MINSTOP= 9191-0290/pwm1=0
Back to top
View user's profile Send private message
alkan
Guru
Guru


Joined: 06 Aug 2004
Posts: 385
Location: kasimlar yaylasi

PostPosted: Sat Sep 09, 2006 3:21 pm    Post subject: Reply with quote

run the fancotrol script manually like:
Code:
DEBUG=1 /usr/sbin/fancontrol

and watch what is going on with some values.

Your fan might want to stop if your temperature goes below minimum temperature. quoting from /usr/sbin/fancontrol script
Code:
 if (( $tval <= $mint ))
                  then pwmval=0 # at specified mintemp shut fan off
                elif (( $tval >= $maxt ))
                  then pwmval=255 # at specified maxtemp switch to 100%
                else
                  # calculate the new value from temperature and settings
                   ....
                   ....

You see if temperature goes below minimum temp, it shuts down the fan and vice versa. You said you tried setting the min temperature to very low, there might be a glitch reading the temperature, so you watch temperature output with DEBUG=1.
Back to top
View user's profile Send private message
fataki
n00b
n00b


Joined: 02 Mar 2006
Posts: 9

PostPosted: Mon Sep 11, 2006 10:10 am    Post subject: Reply with quote

fataki wrote:
I managed to get fancontrol to work, but the fan keeps stopping for few seconds once a minute or so. I would like the fan to always stay at least around 1000rpm. I tried to set MINTEMP to very low and adjust MINSTART and MINSTOP, but the fan always wants to stop.


I forgot to mention, that fancontrol didn't start up correctly after doing 'rc-update add fancontrol default' and I had to start it manually. After I did 'killall -9 fancontrol' the manually started fancontrol started to work perfectly, so there must have been multiple fancontrol prosesses running.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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