FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2017
    Location
    Vigo
    Posts
    4

    Fedora 27 fan problems on a Macbook 5.1 (late 2008)

    Hi all,

    Currently I'm having some troubles configuring Fedora 27 with my macbook 5.1. For older fedora versions I used to install macfanctld in order to take care of fan speed and avoid overheating. But in Fedora 27 macfanctld and mbpfan didn't work.

    I have been trying different things like installing tlp but fans respond very slow to cpu temp changes. From 2000 rpm to 2010 rpm in a second, from 2010 to 2020 in another... and with "stress -c 2" command, my CPU has reached more than 100C till the fans could decrease the temperature (maximum reached around 104C).

    With CPU cores around 70C my fans are at minimum speed... (2000rpm). Anyone knows how could I configure thresholds for fans to be activated and fan responsiveness in order to make them reach higher speeds faster?

    Thanks in advance,
    Kaiver.

  2. #2
    Join Date
    Nov 2017
    Location
    USA
    Posts
    20

    Re: Fedora 27 fan problems on a Macbook 5.1 (late 2008)

    might be way more work than just redoing the thermal paste, but if you disassembled/recompiled/override the DSDT you could change the thermal zones and have precise control when fans turn on (temp/rpm)

  3. #3
    Join Date
    Dec 2017
    Location
    Vigo
    Posts
    4

    Re: Fedora 27 fan problems on a Macbook 5.1 (late 2008)

    Thanks for your reply kabeero.

    I've already replaced the old thermal paste in my Macbook some months ago (also cleaned fan and heatsink from dust) and the system cooled down some C since then in normal functioning. I have also replaced my old HDD with a new SSD and increased RAM to 8GB.

    Nevertheless, since I installed a fresh Fedora 27 as a reaplacement to my Fedora 26 using macfanctl (upgraded from 25) my laptop is being overheated for the fan thermal zones and fan scaling responsiveness as I told before.

    I didn't know about DSDT at all. I'll research about it and try to figure out how to do what you told me. Thanks for your help!

  4. #4
    Join Date
    Nov 2017
    Location
    USA
    Posts
    20

    Re: Fedora 27 fan problems on a Macbook 5.1 (late 2008)

    ah, that's unfortunate. I haven't rethermal pasted my current one but going from 100 C to 70-80 C is what I expected from my previous MBP

    what happens when you try to rpm -i the macfanctld pkg on fc27?


    if you go the DSDT route, these are the guides that got me from 0-100:

    Linux ACPI project, how to disassemble/assemble/override your DSDT: https://01.org/linux-acpi/documentation/overriding-dsdt
    Ubuntu, disassembly and firmware test suite: https://wiki.ubuntu.com/BIOSandUbuntu
    ArchWiki, how to override: https://wiki.archlinux.org/index.php..._modified_code (I'd skip the CPIO archive method, adding "acpi /boot/dsdt.aml" to grub might be easiest)

    for syntax reference, here are some Mac/Hackintosh DSDT fixes if you can interpret regex (I don't see any particularly relating to Thermal Zone, however):
    https://github.com/RehabMan/Laptop-DSDT-Patch

    the holy grail, ACPI reference (section 11.4.18 -- 11.7.3 should give you an idea of how to change your DSDT):
    http://www.uefi.org/sites/default/fi...s/ACPI_6_2.pdf

  5. #5
    Join Date
    Dec 2017
    Location
    Vigo
    Posts
    4

    Re: Fedora 27 fan problems on a Macbook 5.1 (late 2008)

    Wow thanks for your reply, plenty of useful info!!

    I don't know what I've done exactly but I had finally made macfanctld work on my macbook 5.1. Maybe some TLP configuration I made following this resource yesterday before requesting help in the forum:
    https://www.reddit.com/r/Fedora/comm...ay&sh=1ac93940

    I finally got macfanctld working now and it works like a charm:
    - Max CPU temperature with stress -c 2 is now 91C but stays around 90 most of the time (not the 104C that I had before...).
    - Fans are now increasing rpms really faster.
    - Without load temperature is now below 60C.

    I will configure it now in order to cool my CPU down around 5 - 7 C more with more fan work as I had on my older fedora configurations. Althought It has been finally solved with macfanctld I'll check your suggested resources for learning.

    Thanks for all your support!

  6. #6
    Join Date
    Nov 2017
    Location
    USA
    Posts
    20

    Re: Fedora 27 fan problems on a Macbook 5.1 (late 2008)

    no problem, good job!

  7. #7
    Join Date
    Dec 2017
    Location
    Vigo
    Posts
    4

    Re: Fedora 27 fan problems on a Macbook 5.1 (late 2008)

    For users of Fedora 27 that have the same problems I will put here the instructions that made it work for me. I would like to say that I won't be responsible of any damage caused by applying that instructions, for me they work but this are critical settings for thermal performance of your computer, do it at your own risk.

    I have fixed the problem as follows:

    1) First, install macfanctld package from https://pkgs.org/ (I have used the package for Fedora 26)
    2) Next follow up this tuning instructions for optimizing power management https://www.reddit.com/r/Fedora/comm...ay&sh=1ac93940
    3) Then replace the "macfanctld" file located on "/etc/init.d/macfanctld with this new content in order to work with systemctl correctly:

    #!/bin/sh
    #
    # macfanctld Start the macfanctld daemon
    #
    # chkconfig: 2 3 4 5 15 85
    # description: Start the macfanctkd daemon

    ### BEGIN INIT INFO
    # Provides: macfanctld
    # Required-Start: $remote_fs $syslog
    # Required-Stop: $remote_fs $syslog
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: macfanctld initscript
    # Description: Start the macfanctld daemon
    ### END INIT INFO

    # Source function library.
    . /etc/rc.d/init.d/functions

    exec="/sbin/macfanctld"
    prog="macfanctld"

    [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

    lockfile=/var/lock/subsys/$prog

    start() {
    [ -x $exec ] || exit 5
    echo -n $"Starting $prog: "
    daemon $exec
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
    }

    stop() {
    echo -n $"Stopping $prog: "
    killproc $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
    }

    restart() {
    stop
    start
    }

    reload() {
    restart
    }

    force_reload() {
    restart
    }

    rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
    }

    rh_status_q() {
    rh_status >/dev/null 2>&1
    }


    case "$1" in
    start)
    rh_status_q && exit 0
    $1
    ;;
    stop)
    rh_status_q || exit 0
    $1
    ;;
    restart)
    $1
    ;;
    reload)
    rh_status_q || exit 7
    $1
    ;;
    force-reload)
    force_reload
    ;;
    status)
    rh_status
    ;;
    condrestart|try-restart)
    rh_status_q || exit 0
    restart
    ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
    esac
    exit $?

    4) Finally, type this command in bash in order to load the new init.d script content: "systemctld daemon-reload"
    5) You could init your service with "systemctl start macfanctld". For next times you boot your computer it should start automatically.

    Cheers,
    Miguel.

Similar Threads

  1. Fedora 26 on Macbook late 2008 Wifi problem
    By stommaso in forum Hardware & Laptops
    Replies: 3
    Last Post: 5th October 2017, 01:46 AM
  2. Can't boot F18 on 2008 Macbook Air
    By colin-adams in forum Mac Chat
    Replies: 3
    Last Post: 5th March 2015, 06:26 AM
  3. Fedora 16 on MacBook Pro (2008 model)
    By SoldierSvejk in forum Mac Chat
    Replies: 6
    Last Post: 26th March 2012, 11:33 PM
  4. macbook (late 2007) trackpad
    By whooper90 in forum Hardware & Laptops
    Replies: 1
    Last Post: 28th November 2011, 07:47 PM
  5. Fedora 15 on Macbook 4.1 (2008)
    By nevius in forum Mac Chat
    Replies: 0
    Last Post: 18th August 2011, 09:14 AM

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
  •