laptop-mode-tools causes power saving behavior on the intel HDA sound card, despite /sys/module/snd_hda_intel/parameters/power_save being 0

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I've run into a peculiar issue. Let me describe:



  1. On boot, from GRUB I pass arguments snd_hda_intel.power_save=0 snd_hda_intel.power_save_controller=N

  2. Laptop mode tools starts up, power saving for snd_hda_intel is disabled:

https://pastebin.com/R6SMzTAT



  1. /sys/module/snd_hda_intel/parameters/power_save is set to 0, but the system still shows power saving behavior - the characteristic clicking in headphones a while after stopping sound playback, and again when starting sounding as the card powers on.


  2. If i use powertop, go to Tunables, it says Audio codec power management is off. Now, if here, pressing Enter is turn the power management on and then off, the issue is fixed, no more power saving. I'm puzzled why this is needed though. Also, maybe im being silly, but powertop claims it runs the command
    echo '' > '/sys/module/snd_hda_intel/parameters/power_save';


to turn this off. Running this from the terminal however gives an error



bash: echo: write error: Invalid argument


I can do



echo '0' > /sys/module/snd_hda_intel/parameters/power_save


but that parameter is supposedly already set to 0, and this command doesn't fix the issue. I need to enable and disable in powertop.



Any explanation for this and how to fix it without having to do the powertop trick afer every boot? And why does powertop claim to run a command that gives an error when I try top execute it?



Some more info:



Linux gentoo 4.19.1-gentoo #1 SMP Mon Nov 5 21:27:35 CET 2018 x86_64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz GenuineIntel GNU/Linux


Sound card:



 00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)


EDIT: Also an interesting fact - if I do the powertop thing, and then stop laptop mode tools:



systemctl stop laptop-mode


that causes the power saving behavior to come back, and the powertop trick is needed. So clearly laptop mode tools does something weird here. Booting the system with laptop mode tools disabled makes everything okay too - no annoying power saving on the sound card.










share|improve this question







New contributor




gimex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    I've run into a peculiar issue. Let me describe:



    1. On boot, from GRUB I pass arguments snd_hda_intel.power_save=0 snd_hda_intel.power_save_controller=N

    2. Laptop mode tools starts up, power saving for snd_hda_intel is disabled:

    https://pastebin.com/R6SMzTAT



    1. /sys/module/snd_hda_intel/parameters/power_save is set to 0, but the system still shows power saving behavior - the characteristic clicking in headphones a while after stopping sound playback, and again when starting sounding as the card powers on.


    2. If i use powertop, go to Tunables, it says Audio codec power management is off. Now, if here, pressing Enter is turn the power management on and then off, the issue is fixed, no more power saving. I'm puzzled why this is needed though. Also, maybe im being silly, but powertop claims it runs the command
      echo '' > '/sys/module/snd_hda_intel/parameters/power_save';


    to turn this off. Running this from the terminal however gives an error



    bash: echo: write error: Invalid argument


    I can do



    echo '0' > /sys/module/snd_hda_intel/parameters/power_save


    but that parameter is supposedly already set to 0, and this command doesn't fix the issue. I need to enable and disable in powertop.



    Any explanation for this and how to fix it without having to do the powertop trick afer every boot? And why does powertop claim to run a command that gives an error when I try top execute it?



    Some more info:



    Linux gentoo 4.19.1-gentoo #1 SMP Mon Nov 5 21:27:35 CET 2018 x86_64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz GenuineIntel GNU/Linux


    Sound card:



     00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)


    EDIT: Also an interesting fact - if I do the powertop thing, and then stop laptop mode tools:



    systemctl stop laptop-mode


    that causes the power saving behavior to come back, and the powertop trick is needed. So clearly laptop mode tools does something weird here. Booting the system with laptop mode tools disabled makes everything okay too - no annoying power saving on the sound card.










    share|improve this question







    New contributor




    gimex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I've run into a peculiar issue. Let me describe:



      1. On boot, from GRUB I pass arguments snd_hda_intel.power_save=0 snd_hda_intel.power_save_controller=N

      2. Laptop mode tools starts up, power saving for snd_hda_intel is disabled:

      https://pastebin.com/R6SMzTAT



      1. /sys/module/snd_hda_intel/parameters/power_save is set to 0, but the system still shows power saving behavior - the characteristic clicking in headphones a while after stopping sound playback, and again when starting sounding as the card powers on.


      2. If i use powertop, go to Tunables, it says Audio codec power management is off. Now, if here, pressing Enter is turn the power management on and then off, the issue is fixed, no more power saving. I'm puzzled why this is needed though. Also, maybe im being silly, but powertop claims it runs the command
        echo '' > '/sys/module/snd_hda_intel/parameters/power_save';


      to turn this off. Running this from the terminal however gives an error



      bash: echo: write error: Invalid argument


      I can do



      echo '0' > /sys/module/snd_hda_intel/parameters/power_save


      but that parameter is supposedly already set to 0, and this command doesn't fix the issue. I need to enable and disable in powertop.



      Any explanation for this and how to fix it without having to do the powertop trick afer every boot? And why does powertop claim to run a command that gives an error when I try top execute it?



      Some more info:



      Linux gentoo 4.19.1-gentoo #1 SMP Mon Nov 5 21:27:35 CET 2018 x86_64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz GenuineIntel GNU/Linux


      Sound card:



       00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)


      EDIT: Also an interesting fact - if I do the powertop thing, and then stop laptop mode tools:



      systemctl stop laptop-mode


      that causes the power saving behavior to come back, and the powertop trick is needed. So clearly laptop mode tools does something weird here. Booting the system with laptop mode tools disabled makes everything okay too - no annoying power saving on the sound card.










      share|improve this question







      New contributor




      gimex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I've run into a peculiar issue. Let me describe:



      1. On boot, from GRUB I pass arguments snd_hda_intel.power_save=0 snd_hda_intel.power_save_controller=N

      2. Laptop mode tools starts up, power saving for snd_hda_intel is disabled:

      https://pastebin.com/R6SMzTAT



      1. /sys/module/snd_hda_intel/parameters/power_save is set to 0, but the system still shows power saving behavior - the characteristic clicking in headphones a while after stopping sound playback, and again when starting sounding as the card powers on.


      2. If i use powertop, go to Tunables, it says Audio codec power management is off. Now, if here, pressing Enter is turn the power management on and then off, the issue is fixed, no more power saving. I'm puzzled why this is needed though. Also, maybe im being silly, but powertop claims it runs the command
        echo '' > '/sys/module/snd_hda_intel/parameters/power_save';


      to turn this off. Running this from the terminal however gives an error



      bash: echo: write error: Invalid argument


      I can do



      echo '0' > /sys/module/snd_hda_intel/parameters/power_save


      but that parameter is supposedly already set to 0, and this command doesn't fix the issue. I need to enable and disable in powertop.



      Any explanation for this and how to fix it without having to do the powertop trick afer every boot? And why does powertop claim to run a command that gives an error when I try top execute it?



      Some more info:



      Linux gentoo 4.19.1-gentoo #1 SMP Mon Nov 5 21:27:35 CET 2018 x86_64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz GenuineIntel GNU/Linux


      Sound card:



       00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)


      EDIT: Also an interesting fact - if I do the powertop thing, and then stop laptop mode tools:



      systemctl stop laptop-mode


      that causes the power saving behavior to come back, and the powertop trick is needed. So clearly laptop mode tools does something weird here. Booting the system with laptop mode tools disabled makes everything okay too - no annoying power saving on the sound card.







      audio powertop laptop-mode






      share|improve this question







      New contributor




      gimex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      gimex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      gimex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 24 mins ago









      gimex

      11




      11




      New contributor




      gimex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      gimex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      gimex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          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',
          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
          );



          );






          gimex is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480216%2flaptop-mode-tools-causes-power-saving-behavior-on-the-intel-hda-sound-card-desp%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          gimex is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          gimex is a new contributor. Be nice, and check out our Code of Conduct.












          gimex is a new contributor. Be nice, and check out our Code of Conduct.











          gimex is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480216%2flaptop-mode-tools-causes-power-saving-behavior-on-the-intel-hda-sound-card-desp%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?