Page 10 of 12 FirstFirst ... 89101112 LastLast
Results 91 to 100 of 119

Thread: HOWTO: Fancontrol

  1. #91
    Join Date
    Apr 2009
    Location
    home
    Beans
    88
    Distro
    Kubuntu

    Re: HOWTO: Fancontrol

    attached is a gzip'ed tar file containing a modified /etc/fancontrol configuration file and a diff to generate a modified /usr/[local/]sbin/fancontrol..
    some things i added are:
    - multiple sensors per output
    now you can have a fan controlled by lets say, 4 averaged or maximized coretemp readings instead of 1 cpu case temp sensor..
    - "peak/hold" like operation
    instead of fancontrol maxing out and idling fans on intermittent loads, the last highest pwm value is held on to for a specified amount of seconds..

    maybe an idea to add these to the howto as a nice add-on?

    anyway, let me know how you like it (or not)
    Attached Files Attached Files

  2. #92
    Join Date
    Mar 2008
    Beans
    16

    Re: HOWTO: Fancontrol

    I've been trying to lower my power fan speed for a few hours now and I can't seem to crack it. I followed the guide and I get hung up on the pwmconfig command which gives me the "There are no pwm-capable sensor modules installed" message. I have a fintek super I/O chip. I was stumbling around and found this on the lm-sensors web site. Here's the url: http://www.lm-sensors.org/ticket/2332

    That seems to be what i need, however it refers to a .patch file. How does it work. It appears to have html code in it. I'm CONFUSED... Hardware sensors are loaded and working as the hardware sensors applet is running and gives me cpu, gpu, hdd temps and cpu, and system fan speeds. I just can't seem to adjust them. (I bought an aftermarket CPU fan that is rated at just over 1 AMP and it's running at 3350 RPM which is kinda loud. I'd like to run it at half that .

  3. #93
    Join Date
    Apr 2009
    Location
    home
    Beans
    88
    Distro
    Kubuntu

    Re: HOWTO: Fancontrol

    Quote Originally Posted by Nerevar144 View Post
    I've been trying to lower my power fan speed for a few hours now and I can't seem to crack it. I followed the guide and I get hung up on the pwmconfig command which gives me the "There are no pwm-capable sensor modules installed" message. I have a fintek super I/O chip. I was stumbling around and found this on the lm-sensors web site. Here's the url: http://www.lm-sensors.org/ticket/2332

    That seems to be what i need, however it refers to a .patch file. How does it work. It appears to have html code in it. I'm CONFUSED... Hardware sensors are loaded and working as the hardware sensors applet is running and gives me cpu, gpu, hdd temps and cpu, and system fan speeds. I just can't seem to adjust them. (I bought an aftermarket CPU fan that is rated at just over 1 AMP and it's running at 3350 RPM which is kinda loud. I'd like to run it at half that .
    google 'patch' and 'diff' and you will find your answers

    edit: http://www.linuxforums.org/articles/...-patch_80.html
    Last edited by djurny; August 6th, 2009 at 07:23 AM.

  4. #94
    Join Date
    Apr 2009
    Beans
    5
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Fancontrol

    Hi!

    I did not want to set up new topic.

    My mb has option that can automatically control fan speed, but rpm's are too high, so I want to decrease them. I also can use lm-sensors to do that, but if I start fancontrol and stop it, my fan is on max speed, I saw in script (/usr/sbin/fancontrol) part of code responsible for it:

    Code:
    function restorefans()
    {
        local status=$1
        echo 'Aborting, restoring fans...'
        let fcvcount=0
        while (( $fcvcount < ${#AFCPWM[@]} )) # go through all pwm outputs
        do
            pwmo=${AFCPWM[$fcvcount]}
            pwmdisable $pwmo
            let fcvcount=$fcvcount+1
        done
        echo 'Verify fans have returned to full speed'
        rm -f "$PIDFILE"
        exit $status
    }
    As we can see fans are restored to the max rpms. How to give back control to the BIOS when I stop fancontrol?

    P.S.
    I know, that fancontrol is for ppl who do not have this option in BIOS, so it's normal, that fans are restored to their max, but maybe there is a way to manage this?

    Thanks for help!

  5. #95
    Join Date
    Sep 2005
    Beans
    12

    Re: HOWTO: Fancontrol

    if the BIOS fan control isn't slowing down the fan enough, you have a cooling issue, or just a noisy fan. forcing it to run slower is likely to cause too much heat and then CPU damage. Keep in mind that lm-sensors isn't always exactly calibrated and so the temps you see can be quite wrong.

  6. #96
    Join Date
    Nov 2008
    Location
    Darwin, MN, USA
    Beans
    54
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Fancontrol

    I can't figure this thing out for the life of me. I went by a different install how-to because with it I gained control of my fan, though I use 'control' loosely. Right now my fan pulses and I have very little control over it. I can change the speed it spins to but not the speed it spins down to. ~4100 and 1900 respectively. It does not start on startup/reboot, I have to run:
    Code:
    sudo /usr/sbin/fancontrol
    via terminal. I'm fine with that because at least I can turn it on at my discretion.

    Take the modprobe lines it recommends and paste them into the appropriate /etc/rc.d/xxxx file to be executed at startup.
    http://www.lm-sensors.org/wiki/FAQ/Chapter2

    That is confusing to me. I took a chance and edited what:
    Code:
    sudo sensors-detect
    output:
    # Chip drivers
    w83627hf
    Then found "w83627hf" in "/etc/sensors.conf" and edit "set temp1_over 38" (line 512) and "set temp1_hyst 30" (line 513). Values prior where 50 and 37. I thought this would turn the fan on to a higher speed at a lower temp, seems not though.

    Maybe the fan is supposed to pulse, kinda doubt it though. Being I haven't seen it work in person . . .


    So what do you guys need so you can help me get this thing working properly?



    (Wish it where nice and simple like Speedfan for Windows, set a speed and let it go, adjust on the fly as desired)

  7. #97
    Join Date
    Mar 2008
    Beans
    22

    Re: HOWTO: Fancontrol

    I can't figure this thing out for the life of me.
    Same boat here...

    Can't figure out fancontrl, nothing works like the examples.
    Can't figure out pwmconfig either, nothing works like the examples.

    From another thread I tried:

    Re: HOW TO: Install and configure lm-sensors
    I've tried all of this and still nothing will allow me to kep the fans running on my Toshiba satellite laptop.

    The lm-sensors and sensor-detect do not work as shown here on this particular laptop it seems.
    I can't get the sensor-applet to run either. (It is installed but not in /usr/bin as is the sensors executable)

    #sensors
    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +59.0°C (crit = +104.0°C)

    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +59.0°C (high = +100.0°C, crit = +100.0°C)

    coretemp-isa-0001
    Adapter: ISA adapter
    Core 1: +60.0°C (high = +100.0°C, crit = +100.0°C)

    /etc/moduels file-
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.

    lp

    # Generated by sensors-detect on Sun Dec 27 12:08:12 2009
    # Chip drivers
    coretemp



    The real problem is that the temperature limits seem to be set incorrectly and I have yet to find a way (that works on my laptop) to lower them.

    No problems until I try to play any streaming video full screen then the CPU overheats because the fan doesn't speed up enough until right about the time it shuts off due to over temp.

    Nothing related to monitoring or controlling the fan speeds works on this computer it seems.

    From the files related to ACPI--
    cat /proc/acpi/thermal_zone/THRM/cooling_mode
    <setting not supported>

    cat /proc/acpi/thermal_zone/THRM/polling_frequency
    <polling disabled>

    cat /proc/acpi/thermal_zone/THRM/state
    state: ok

    NOTE: This matches the sensors output and the output shown on the toolbar by kSensors.

    cat /proc/acpi/thermal_zone/THRM/temperature
    temperature: 54 C

    cat /proc/acpi/thermal_zone/THRM/trip_points
    critical (S5): 104 C
    passive: 104 C: tc1=2 tc2=3 tsp=40 devices=CPU0

    And I've tried the things I can find related to changing the argument in grub:

    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.

    GRUB_DEFAULT=0
    #GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT=" acpi_osi=force"
    // tried these (Yeah, I ran grub-update between boots:
    // quiet splash acpi_osi=Linux
    // quiet splash acpi_osi=force
    // quiet splash
    // removing quiet and splash even though they have NOTHING to do with it.
    // Nothing changes in the fan behavior.
    #quiet splash
    GRUB_CMDLINE_LINUX=""

    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL=console

    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    #GRUB_GFXMODE=640x480

    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID=true

    # Uncomment to disable generation of recovery mode menu entrys
    #GRUB_DISABLE_LINUX_RECOVERY="true"

    Oh, and also the things related to HOWTO Fix A Buggy DSDT File
    If I decompile and recompile my DSDT file the only errors are related to some sort of warnings about line terminators, nothing in the code itself.

  8. #98
    Join Date
    May 2008
    Beans
    109

    Re: HOWTO: Fancontrol

    For anyone having errors running "start" or "stop" for /etc/init.d/fancontrol, please use this as your /etc/init.d/fancontrol file:

    Code:
    #!/bin/sh
    #
    # Fancontrol start script.
    #
    
    set -e
    
    # Defaults
    DAEMON=/usr/sbin/fancontrol
    PIDFILE=/var/run/fancontrol.pid
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    
    test -f $DAEMON || exit 0
    
    . /lib/lsb/init-functions
    
    
    case "$1" in
            start)
                    log_begin_msg "Starting fancontrol daemon..."
                    start-stop-daemon --start -o -q -m -b --pidfile $PIDFILE -x $DAEMON
                    log_end_msg $?
                    ;;
            stop)
                    log_begin_msg "Stopping fancontrol daemon..."
                    start-stop-daemon --stop -o -q --pidfile $PIDFILE
                    log_end_msg $?
                    ;;
            force-reload|restart)
                    sh $0 stop
                    sh $0 start
                    ;;
            *)
                    log_success_msg "Usage: /etc/init.d/fancontrol {start|stop|restart|force-reload}"
                    log_success_msg "  start - starts system-wide fancontrol service"
                    log_success_msg "  stop  - stops system-wide fancontrol service"
                    log_success_msg "  restart, force-reload - starts a new system-wide fancontrol service"
                    exit 1
                    ;;
    esac
    
    exit 0
    What I changed is the code below, instead of having...

    start-stop-daemon --start -o -q -m -b -p $PIDFILE -x $DAEMON
    start-stop-daemon --stop -o -q -p $PIDFILE

    I made it have...

    start-stop-daemon --start -o -q -m -b --pidfile $PIDFILE -x $DAEMON
    start-stop-daemon --stop -o -q --pidfile $PIDFILE

    This allowed me to start/stop the daemon properly!

  9. #99
    Join Date
    Feb 2010
    Beans
    1

    Re: HOWTO: Fancontrol

    Aloha Everyone,

    I just finally got this working somewhat better.....the noise in the room is finally at a calmer state.

    I did want to just show you my data and hoped that someone could take a look at especially the fancontrol file and tell me if you see any red flags.

    I did do it on my own.....worked on it for a few days, did a lot of reading through posts and all that, and would hate to see all that time go down the drain.

    My sensor report:

    desktop:~$ sensors
    w83637hf-isa-0290
    Adapter: ISA adapter
    VCore: +1.50 V (min = +1.64 V, max = +1.00 V) ALARM
    +12V: +11.98 V (min = +15.38 V, max = +14.41 V) ALARM
    +3.3V: +3.41 V (min = +3.63 V, max = +3.70 V) ALARM
    +5V: +5.17 V (min = +3.17 V, max = +0.13 V) ALARM
    -12V: +6.06 V (min = -5.86 V, max = +1.95 V) ALARM
    V5SB: +5.19 V (min = +4.89 V, max = +4.60 V) ALARM
    VBat: +3.25 V (min = +3.28 V, max = +3.14 V) ALARM
    fan1: 0 RPM (min = 3068 RPM, div = 2) ALARM
    CPU Fan: 1662 RPM (min = 6617 RPM, div = 4) ALARM
    fan3: 0 RPM (min = 0 RPM, div = 2)
    M/B Temp: -48.0°C (high = -41.0°C, hyst = -11.0°C) sensor = thermistor
    CPU Temp: +34.0°C (high = +80.0°C, hyst = +75.0°C) sensor = diode
    temp3: +31.5°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor
    cpu0_vid: +1.550 V
    beep_enable:enabled

    My /etc/fancontrol File:

    # Configuration file generated by pwmconfig, changes will be lost
    INTERVAL=10
    FCTEMPS=hwmon0/device/pwm1=hwmon0/device/temp2_input hwmon0/device/pwm2=hwmon0/device/temp3_input
    FCFANS=hwmon0/device/pwm1=hwmon0/device/fan1_input hwmon0/device/pwm2=hwmon0/device/fan2_input
    MINTEMP=hwmon0/device/pwm1=20 hwmon0/device/pwm2=25
    MAXTEMP=hwmon0/device/pwm1=60 hwmon0/device/pwm2=60
    MINSTART=hwmon0/device/pwm1=72 hwmon0/device/pwm2=50
    MINSTOP=hwmon0/device/pwm1=69 hwmon0/device/pwm2=87
    MINPWM=hwmon0/device/pwm1=67 hwmon0/device/pwm2=81
    MAXPWM=hwmon0/device/pwm1=150 hwmon0/device/pwm2=200

    In the sensors report it shows fan1 at 0 speed, but it is actually my power supply fan that is running.

    Please let me know if anyone sees something that I may need to give some attention to...

    Thanks,
    Noooooobie
    Last edited by magnaryder31; February 22nd, 2010 at 11:34 AM.

  10. #100
    Join Date
    Sep 2007
    Beans
    37

    Re: HOWTO: Fancontrol

    I have an odd problem with lm-sensors. I add the module and so on, no problems there. Then I run pwmconfig (as sudo, otherwise is doesn't work), it tests two fans which I physically see stopping. Then when I setup the temperature configuration, and I get to the part when I have to setup the PWM values for minimum and maximum, I choose test (t).
    But nothing happens, it sets the fan to 10 PWM, but it doesn't stop or slow down. So I tried setting all the values to 10 in the configuration and started the daemon, and it doesn't slow down the fans either.

Page 10 of 12 FirstFirst ... 89101112 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •