Page 1 of 2 12 LastLast
Results 1 to 10 of 120

Thread: HOWTO: Fancontrol

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Beans
    11
    Distro
    Ubuntu 6.06

    Talking Re: HOWTO: Fancontrol

    And if you want to have it startup on boot.

    Code:
    #!/bin/sh
    #
    # Fancontrol start script.
    #
    
    set -e
    
    # Defaults
    DAEMON=/usr/sbin/fancontrol
    PIDFILE=/var/run/fancontrol/.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 -p $PIDFILE -x $DAEMON
    		log_end_msg $?
    		;;
    	stop)
    		log_begin_msg "Stopping fancontrol daemon..."
    		start-stop-daemon --stop -o -q -p $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
    Stick this in a file called 'fancontrol' in your init.d startup scripts. eg.

    Code:
    /etc/init.d/fancontrol
    Add this to your startup scripts in the usual way.

  2. #2
    Join Date
    Jan 2005
    Beans
    65

    Re: HOWTO: Fancontrol

    Don't forget to

    Code:
    $ sudo chmod 0755 /etc/init.d/fancontrol
    and create a symlink to that script in rc3.d, for example.

    Code:
    $ sudo ln -s /etc/init.d/fancontrol /etc/rc3.d/S99fancontrol
    (thanks for that, by the way!)

  3. #3
    Join Date
    May 2005
    Location
    Cydonia
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: HOWTO: Fancontrol

    I fixed the code in pwmconfig, and it still doesn't work...any ideas?

    *edit* Nevermind...I fixed it
    Last edited by picpak; June 29th, 2005 at 04:47 PM.

  4. #4
    Join Date
    Jul 2005
    Location
    England
    Beans
    13
    Distro
    Gutsy Gibbon Testing

    Re: HOWTO: Fancontrol

    Hi all, thanks for this great guide, worked perfectly for me so far (yet to reboot ).
    One thing of note that occured for me using the script kindly provided above:

    Code:
     sudo /etc/init.d/fancontrol start
     * Starting fancontrol daemon...
    start-stop-daemon: Unable to open pidfile `/var/run/fancontrol/.fancontrol-pid' for writing: No such file or directory
    Code:
    # Defaults
    DAEMON=/usr/sbin/fancontrol
    PIDFILE=/var/run/fancontrol/.fancontrol-pid
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    I had to change the PIDFILE path to:

    Code:
    # Defaults
    DAEMON=/usr/sbin/fancontrol
    PIDFILE=/var/run/fancontrol-pid
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    I don't know if this was something specific to me....... But incase it helps others.

  5. #5
    Join Date
    Feb 2005
    Beans
    Hidden!

    Re: HOWTO: Fancontrol

    I would seriously have a heart-attack just by trying this (I don't even need for it to _not_ work O.o). Just reading the red disclaimer sends shivers down my spine.
    Sylvia: Look at what you've done to him!
    Christof: I have given Truman the chance to lead a normal life. The world, the place you live in, is the sick place.

  6. #6
    Join Date
    Apr 2005
    Location
    Not-So-Sunny Hawaii
    Beans
    Hidden!

    Re: HOWTO: Fancontrol

    Quote Originally Posted by bored2k
    I would seriously have a heart-attack just by trying this (I don't even need for it to _not_ work O.o). Just reading the red disclaimer sends shivers down my spine.
    aye... what's the point of it, i'm wondering?

  7. #7
    Join Date
    Sep 2005
    Beans
    7

    Re: HOWTO: Fancontrol

    Quote Originally Posted by picpak
    I fixed the code in pwmconfig, and it still doesn't work...any ideas?

    *edit* Nevermind...I fixed it

    Hello, the pwmconfig patch isn't helping the situation in my system.
    I still get the
    "/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed" error.



    Any help is appreciated.

  8. #8
    Join Date
    Jan 2005
    Beans
    65

    Re: HOWTO: Fancontrol

    Are you very sure you corrected the pwmconfig file right?

    If so: it may be right, you may not have any pwm configurable fans in your computer. Most Dells don't, for instance, even the new ones.

    Do you get any results in fancontrol under Windows?

  9. #9
    Join Date
    Sep 2005
    Beans
    7

    Re: HOWTO: Fancontrol

    Yes, I've triple checked the procedure

    I've got a desktop pc, via kt266 chipset and in windows I control the fans' speed using Speedfan.

    I did a search on the forum and found this
    http://www.ubuntuforums.org/showthre...ight=pwmconfig

    I have the same motherboard chipset and the same kernel version.

    I really gotta lower these fans, I've got low temperatures and a fan that sounds like a vacuum cleaner.

  10. #10
    Join Date
    Jan 2005
    Beans
    65

    Re: HOWTO: Fancontrol

    Did you do all the things in here? If you go "sensors", what does it output?

Page 1 of 2 12 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
  •