FedoraForum.org - Fedora Support Forums and Community
Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2011
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Installing and setting up thinkfan

    Hello ALL,
    I recently migrated from Debian testing, and still finding myself around Fedora. I have ThinkPad T400s, and Fedora 15 64-bit running.
    One thing I would really like to make work is thinkfan. On Debian and Ubuntu, you just need to install thinkfan from repository. However, on Fedora, there is no thinkfan. Thus, I downloaded it, but I am in doubt as to where to put it, to make it work properly.
    Please, did someone install thinkfan, and how?

    All the best,
    PM

  2. #2
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing and setting up thinkfan

    Quote Originally Posted by neocortex
    Hello ALL,
    I recently migrated from Debian testing, and still finding myself around Fedora. I have ThinkPad T400s, and Fedora 15 64-bit running.
    One thing I would really like to make work is thinkfan. On Debian and Ubuntu, you just need to install thinkfan from repository. However, on Fedora, there is no thinkfan. Thus, I downloaded it, but I am in doubt as to where to put it, to make it work properly.
    Please, did someone install thinkfan, and how?

    All the best,
    PM
    You downloaded what, the source code tarball thinkfan-0.7.2.tar.gz ? If that's the case, then you need to extract the package. First open a terminal and cd to the directory where the tarball file resides, then:
    Code:
    tar xzf thinkfan-0.7.2.tar.gz
    Then
    Code:
     cd thinkfan-0.7.2/
    Then use whatever text editor/viewer program you want to read the README file. You have to compile the source code to make the working binary. You will need, at a minimum, to have the gcc compiler program installed.

  3. #3
    Join Date
    Sep 2011
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing and setting up thinkfan

    Thanks for a quick reply! I might not be specific enough...
    I did all that: download, tar and make. Question is where to put executable in Fedora, so that it will start on boot automatically?

    Best,
    PM

  4. #4
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing and setting up thinkfan

    (2.4) Test and install
    ----------------------
    Run ./thinkfan -n -c PATH_TO_CONFIG and watch it do its job. Try putting some
    load on your system with glxgears or running some infinite loop in bash. If
    everything works nicely, forget about it for a while to make sure it's
    stable.
    Once you're confident that it works well for you, you may want to copy it to
    /usr/local/sbin or whatever you like and run it without -n.




    (3) USAGE
    =========

    (3.1) Invocation
    ----------------
    Usage: thinkfan [-hnqzD] [-b BIAS ] [-c FILE] [-s SEC] [-p[SEC]]
    -h This help message
    -s SEC Maximum seconds between temperature updates (default: 5)
    -b BIAS Floating point number (0 ~ 20) to control rising edge
    temperature biasing strength (see below). Default 5.0
    -c FILE Load different configuration file (default: /etc/thinkfan.conf)
    -n Do not become a daemon and log to terminal instead of syslog
    -q Be quiet (no status info on terminal)
    -z Assume we don't have to worry about resuming when using the sysfs
    interface. Saves CPU load.
    -p[SEC] Use the pulsing-fan workaround (for older Thinkpads). Takes an
    optional floating-point argument (0 ~ 10s) as depulsing duration.
    Defaults to 0.5s. See (3.3).
    -D DANGEROUS mode: No sanity checks on config! May damage your
    hardware!!
    I thought that was fairly clear. The README suggests /usr/local/sbin, but that generally isn't used in Fedora so you might want to put it in /usr/sbin, which will be in your $PATH. As for having it start automatically, put the command to start thinkfan, along with any options, in the /etc/rc.d/rc.local file.

  5. #5
    Join Date
    Sep 2011
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing and setting up thinkfan

    Thanks to PabloTwo, I figured out places to put relevant thinkfan files in Fedora (that is only what I needed, after reading README). Now, here is how I did it for my ThinkPad T400s:

    1) download latest thinkfan from
    Code:
    http://sourceforge.net/projects/thinkfan/files/
    2) Unpack and build it:
    Code:
    tar xzvf thinkfan-0.7.2.tar.gz
    cd thinkfan-0.7.2/
    make
    3) Adjust thinkfan.conf and copy it to the default place:
    Code:
    sudo cp thinkfan.conf /etc/
    4) Test it:
    Code:
    ./thinkfan -n -c /etc/thinkfan.conf
    5) If everything is fine, put executable into path:
    Code:
    sudo cp thinkfan /usr/sbin/
    6) Then, make it start at boot:
    Code:
    sudo nano /etc/rc.d/rc.local
    thinkfan -c /etc/thinkfan.conf
    7) Finally, send SIGHUP to make thinkfan reload and reinitialize (after hibernate or suspend etc.):
    Code:
    crontab -u root -e
    0,30 * * * * killall -HUP thinkfan
    8) You also may restart clean:
    Code:
    sudo killall -9 thinkfan
    sudo rm -f /var/run/thinkfan.pid
    sudo /usr/sbin/thinkfan &
    IMPORTANT NOTES:
    A) For ThinkPad owners: you must be very careful and patient in adjusting and testing thinkfan behaviour for your particular system (points 3 and 4)
    B) For non ThinkPad owners: I never tried thinkfan on any other system, but README file in the tar-ball package discusses some issues (point 2.2b there). Please, carefully read that and think twice.

    All the best,
    PM

  6. #6
    Join Date
    May 2011
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing and setting up thinkfan

    Hi,

    Could you elaborate point 3? How did you configure the hard disk correction factor?
    And now for something completely different.

  7. #7
    Join Date
    Sep 2011
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing and setting up thinkfan

    Quote Originally Posted by cymbaline42
    Hi,

    Could you elaborate point 3? How did you configure the hard disk correction factor?
    The best place to start is README file. Also, at the very site, you have few discussions. Some of them are related to this issues, if I recall well. Finally, you have example of thinkfan.conf in the tar-ball archive.
    Point is to thoroughly search for system temperature information, then, you should know what are acceptable ranges for your own machine. That should be filled in the thinkfan.conf.
    On point to add: I used GKrellm, which is in Fedora repository, to monitor temperature; then, I tweaked thinkfan.conf, monitor, tweak, until all were stable.

    Good luck!
    PM
    Last edited by neocortex; 12th September 2011 at 08:17 PM.

  8. #8
    Join Date
    Nov 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing and setting up thinkfan

    I have read the README file, but still cannot get the thinkfan to execute on my thinkpad x201. Can someone please tell me how to do it step by step, since I am a total newbie with FEDORA.

    Thanks in advance

  9. #9
    Join Date
    Sep 2011
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing and setting up thinkfan

    Have you tried to follow steps from http://forums.fedoraforum.org/showpo...44&postcount=5, here?

    All the best

  10. #10
    Join Date
    Nov 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing and setting up thinkfan

    Yes, saw that thread as well... Did not work, or I just need more details, I guess

Similar Threads

  1. Installing modem and setting internet connection.
    By rakeshchhikara in forum Servers & Networking
    Replies: 10
    Last Post: 17th December 2009, 05:07 AM
  2. Replies: 0
    Last Post: 17th October 2008, 06:54 AM
  3. Setting yum options when installing
    By extendedping in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 31st October 2006, 03:44 AM
  4. GRUB Setting for Installing Windows XP on a USB HDD
    By thelostsoul in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 24th September 2006, 06:34 PM

Tags for this Thread

Posting Permissions

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