Why does my MacBook CPU get hotter under NixOS than under Mac OS?












0















I have a dual boot MacBook (late 2008) with Mac OS 10.9 and NixOS. I observe that under similar conditions, with only one or two applications open and not doing any computations, the CPU gets 5-10 °C hotter under NixOS than under Mac OS. This can even be felt on touch.



In my NixOS configuration, i have



powerManagement.enable = true
powerManagement.cpuFreqGovernor = "powersave";


Is this a result of some inefficiency of Linux kernel, or am i missing some configuration options under NixOS, or is it a NixOS bug?





Update 2018-09-02.



This energy consumption problem may be not specific to NixOS and be a general issue with Linux on MacBook, as mentioned in this "Linux on Mac?" reddit thread.



However, this looks strange: I have installed system-monitor GNOME shell extension and could observe that in idle condition the CPU usage is oscillating between 1% and 2%, while the CPU Core temperature still stays above 60 °C (at room temperature of about 25 °C), with the fan doing 2000 rpm.



What could be using so much power while the CPU is only 1-2% used?





Update 2019-02-03.



This turned out to be related to (the absence of) the proprietary NVidia driver.










share|improve this question




















  • 1





    could you compare that to some other linux distro? it might be a general linux on macboook problem, i think.

    – Rok Garbas
    Jun 22 '15 at 9:35






  • 1





    also maybe something like launchpad.net/macfanctld might help you configure fans properly

    – Rok Garbas
    Jun 22 '15 at 9:38











  • Thanks for the link. I do not know about other linux distros, currently i have this one and do not plan to install any other.

    – Alexey
    Jun 22 '15 at 12:23











  • Maybe you are right, and the problem is general to Linux distribution, that they cannot manage Apple hardware so efficiently and on such a low level, as Mac OS: reddit.com/r/linux/comments/20lqba/linux_on_a_mac/cg4hhpb

    – Alexey
    Jun 22 '15 at 12:30
















0















I have a dual boot MacBook (late 2008) with Mac OS 10.9 and NixOS. I observe that under similar conditions, with only one or two applications open and not doing any computations, the CPU gets 5-10 °C hotter under NixOS than under Mac OS. This can even be felt on touch.



In my NixOS configuration, i have



powerManagement.enable = true
powerManagement.cpuFreqGovernor = "powersave";


Is this a result of some inefficiency of Linux kernel, or am i missing some configuration options under NixOS, or is it a NixOS bug?





Update 2018-09-02.



This energy consumption problem may be not specific to NixOS and be a general issue with Linux on MacBook, as mentioned in this "Linux on Mac?" reddit thread.



However, this looks strange: I have installed system-monitor GNOME shell extension and could observe that in idle condition the CPU usage is oscillating between 1% and 2%, while the CPU Core temperature still stays above 60 °C (at room temperature of about 25 °C), with the fan doing 2000 rpm.



What could be using so much power while the CPU is only 1-2% used?





Update 2019-02-03.



This turned out to be related to (the absence of) the proprietary NVidia driver.










share|improve this question




















  • 1





    could you compare that to some other linux distro? it might be a general linux on macboook problem, i think.

    – Rok Garbas
    Jun 22 '15 at 9:35






  • 1





    also maybe something like launchpad.net/macfanctld might help you configure fans properly

    – Rok Garbas
    Jun 22 '15 at 9:38











  • Thanks for the link. I do not know about other linux distros, currently i have this one and do not plan to install any other.

    – Alexey
    Jun 22 '15 at 12:23











  • Maybe you are right, and the problem is general to Linux distribution, that they cannot manage Apple hardware so efficiently and on such a low level, as Mac OS: reddit.com/r/linux/comments/20lqba/linux_on_a_mac/cg4hhpb

    – Alexey
    Jun 22 '15 at 12:30














0












0








0








I have a dual boot MacBook (late 2008) with Mac OS 10.9 and NixOS. I observe that under similar conditions, with only one or two applications open and not doing any computations, the CPU gets 5-10 °C hotter under NixOS than under Mac OS. This can even be felt on touch.



In my NixOS configuration, i have



powerManagement.enable = true
powerManagement.cpuFreqGovernor = "powersave";


Is this a result of some inefficiency of Linux kernel, or am i missing some configuration options under NixOS, or is it a NixOS bug?





Update 2018-09-02.



This energy consumption problem may be not specific to NixOS and be a general issue with Linux on MacBook, as mentioned in this "Linux on Mac?" reddit thread.



However, this looks strange: I have installed system-monitor GNOME shell extension and could observe that in idle condition the CPU usage is oscillating between 1% and 2%, while the CPU Core temperature still stays above 60 °C (at room temperature of about 25 °C), with the fan doing 2000 rpm.



What could be using so much power while the CPU is only 1-2% used?





Update 2019-02-03.



This turned out to be related to (the absence of) the proprietary NVidia driver.










share|improve this question
















I have a dual boot MacBook (late 2008) with Mac OS 10.9 and NixOS. I observe that under similar conditions, with only one or two applications open and not doing any computations, the CPU gets 5-10 °C hotter under NixOS than under Mac OS. This can even be felt on touch.



In my NixOS configuration, i have



powerManagement.enable = true
powerManagement.cpuFreqGovernor = "powersave";


Is this a result of some inefficiency of Linux kernel, or am i missing some configuration options under NixOS, or is it a NixOS bug?





Update 2018-09-02.



This energy consumption problem may be not specific to NixOS and be a general issue with Linux on MacBook, as mentioned in this "Linux on Mac?" reddit thread.



However, this looks strange: I have installed system-monitor GNOME shell extension and could observe that in idle condition the CPU usage is oscillating between 1% and 2%, while the CPU Core temperature still stays above 60 °C (at room temperature of about 25 °C), with the fan doing 2000 rpm.



What could be using so much power while the CPU is only 1-2% used?





Update 2019-02-03.



This turned out to be related to (the absence of) the proprietary NVidia driver.







nvidia hardware macintosh power-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 3 at 0:04







Alexey

















asked Jun 21 '15 at 13:25









AlexeyAlexey

5301720




5301720








  • 1





    could you compare that to some other linux distro? it might be a general linux on macboook problem, i think.

    – Rok Garbas
    Jun 22 '15 at 9:35






  • 1





    also maybe something like launchpad.net/macfanctld might help you configure fans properly

    – Rok Garbas
    Jun 22 '15 at 9:38











  • Thanks for the link. I do not know about other linux distros, currently i have this one and do not plan to install any other.

    – Alexey
    Jun 22 '15 at 12:23











  • Maybe you are right, and the problem is general to Linux distribution, that they cannot manage Apple hardware so efficiently and on such a low level, as Mac OS: reddit.com/r/linux/comments/20lqba/linux_on_a_mac/cg4hhpb

    – Alexey
    Jun 22 '15 at 12:30














  • 1





    could you compare that to some other linux distro? it might be a general linux on macboook problem, i think.

    – Rok Garbas
    Jun 22 '15 at 9:35






  • 1





    also maybe something like launchpad.net/macfanctld might help you configure fans properly

    – Rok Garbas
    Jun 22 '15 at 9:38











  • Thanks for the link. I do not know about other linux distros, currently i have this one and do not plan to install any other.

    – Alexey
    Jun 22 '15 at 12:23











  • Maybe you are right, and the problem is general to Linux distribution, that they cannot manage Apple hardware so efficiently and on such a low level, as Mac OS: reddit.com/r/linux/comments/20lqba/linux_on_a_mac/cg4hhpb

    – Alexey
    Jun 22 '15 at 12:30








1




1





could you compare that to some other linux distro? it might be a general linux on macboook problem, i think.

– Rok Garbas
Jun 22 '15 at 9:35





could you compare that to some other linux distro? it might be a general linux on macboook problem, i think.

– Rok Garbas
Jun 22 '15 at 9:35




1




1





also maybe something like launchpad.net/macfanctld might help you configure fans properly

– Rok Garbas
Jun 22 '15 at 9:38





also maybe something like launchpad.net/macfanctld might help you configure fans properly

– Rok Garbas
Jun 22 '15 at 9:38













Thanks for the link. I do not know about other linux distros, currently i have this one and do not plan to install any other.

– Alexey
Jun 22 '15 at 12:23





Thanks for the link. I do not know about other linux distros, currently i have this one and do not plan to install any other.

– Alexey
Jun 22 '15 at 12:23













Maybe you are right, and the problem is general to Linux distribution, that they cannot manage Apple hardware so efficiently and on such a low level, as Mac OS: reddit.com/r/linux/comments/20lqba/linux_on_a_mac/cg4hhpb

– Alexey
Jun 22 '15 at 12:30





Maybe you are right, and the problem is general to Linux distribution, that they cannot manage Apple hardware so efficiently and on such a low level, as Mac OS: reddit.com/r/linux/comments/20lqba/linux_on_a_mac/cg4hhpb

– Alexey
Jun 22 '15 at 12:30










1 Answer
1






active

oldest

votes


















0














I think I've understood the origin of the problem, though I did't manage to test my explanation properly.



First of all, I'd like to note that setting



powerManagement.cpuFreqGovernor = "powersave";


on my machine was an error. According to the output of



cpupower frequency-info


the only available governor on my machine were performance and schedutil. I've set



powerManagement.cpuFreqGovernor = "schedutil";


and it seems that this slightly reduced the CPU temperature.



It turned out that this was not the main issue, however.



I recently installed Linux Mint and Manjaro on this machine, and noticed that under both systems the CPU temperature stayed as low as under Mac OS, if not lower. It turned out that the difference was due to the proprietary NVidia driver. I did not have the nvidia driver on NixOS (because of having problems with it), but I installed it at first on Linux Mint and Manjaro. When I realised that nvidia driver breaks screen brightness keys and virtual consoles, I removed it, and the CPU temperature went up by 10 or 15 °C on an idle machine.



I conclude that on my machine some open source video drivers cause high power consumption.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f211137%2fwhy-does-my-macbook-cpu-get-hotter-under-nixos-than-under-mac-os%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I think I've understood the origin of the problem, though I did't manage to test my explanation properly.



    First of all, I'd like to note that setting



    powerManagement.cpuFreqGovernor = "powersave";


    on my machine was an error. According to the output of



    cpupower frequency-info


    the only available governor on my machine were performance and schedutil. I've set



    powerManagement.cpuFreqGovernor = "schedutil";


    and it seems that this slightly reduced the CPU temperature.



    It turned out that this was not the main issue, however.



    I recently installed Linux Mint and Manjaro on this machine, and noticed that under both systems the CPU temperature stayed as low as under Mac OS, if not lower. It turned out that the difference was due to the proprietary NVidia driver. I did not have the nvidia driver on NixOS (because of having problems with it), but I installed it at first on Linux Mint and Manjaro. When I realised that nvidia driver breaks screen brightness keys and virtual consoles, I removed it, and the CPU temperature went up by 10 or 15 °C on an idle machine.



    I conclude that on my machine some open source video drivers cause high power consumption.






    share|improve this answer




























      0














      I think I've understood the origin of the problem, though I did't manage to test my explanation properly.



      First of all, I'd like to note that setting



      powerManagement.cpuFreqGovernor = "powersave";


      on my machine was an error. According to the output of



      cpupower frequency-info


      the only available governor on my machine were performance and schedutil. I've set



      powerManagement.cpuFreqGovernor = "schedutil";


      and it seems that this slightly reduced the CPU temperature.



      It turned out that this was not the main issue, however.



      I recently installed Linux Mint and Manjaro on this machine, and noticed that under both systems the CPU temperature stayed as low as under Mac OS, if not lower. It turned out that the difference was due to the proprietary NVidia driver. I did not have the nvidia driver on NixOS (because of having problems with it), but I installed it at first on Linux Mint and Manjaro. When I realised that nvidia driver breaks screen brightness keys and virtual consoles, I removed it, and the CPU temperature went up by 10 or 15 °C on an idle machine.



      I conclude that on my machine some open source video drivers cause high power consumption.






      share|improve this answer


























        0












        0








        0







        I think I've understood the origin of the problem, though I did't manage to test my explanation properly.



        First of all, I'd like to note that setting



        powerManagement.cpuFreqGovernor = "powersave";


        on my machine was an error. According to the output of



        cpupower frequency-info


        the only available governor on my machine were performance and schedutil. I've set



        powerManagement.cpuFreqGovernor = "schedutil";


        and it seems that this slightly reduced the CPU temperature.



        It turned out that this was not the main issue, however.



        I recently installed Linux Mint and Manjaro on this machine, and noticed that under both systems the CPU temperature stayed as low as under Mac OS, if not lower. It turned out that the difference was due to the proprietary NVidia driver. I did not have the nvidia driver on NixOS (because of having problems with it), but I installed it at first on Linux Mint and Manjaro. When I realised that nvidia driver breaks screen brightness keys and virtual consoles, I removed it, and the CPU temperature went up by 10 or 15 °C on an idle machine.



        I conclude that on my machine some open source video drivers cause high power consumption.






        share|improve this answer













        I think I've understood the origin of the problem, though I did't manage to test my explanation properly.



        First of all, I'd like to note that setting



        powerManagement.cpuFreqGovernor = "powersave";


        on my machine was an error. According to the output of



        cpupower frequency-info


        the only available governor on my machine were performance and schedutil. I've set



        powerManagement.cpuFreqGovernor = "schedutil";


        and it seems that this slightly reduced the CPU temperature.



        It turned out that this was not the main issue, however.



        I recently installed Linux Mint and Manjaro on this machine, and noticed that under both systems the CPU temperature stayed as low as under Mac OS, if not lower. It turned out that the difference was due to the proprietary NVidia driver. I did not have the nvidia driver on NixOS (because of having problems with it), but I installed it at first on Linux Mint and Manjaro. When I realised that nvidia driver breaks screen brightness keys and virtual consoles, I removed it, and the CPU temperature went up by 10 or 15 °C on an idle machine.



        I conclude that on my machine some open source video drivers cause high power consumption.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 3 at 0:01









        AlexeyAlexey

        5301720




        5301720






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f211137%2fwhy-does-my-macbook-cpu-get-hotter-under-nixos-than-under-mac-os%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?