Unable to set power tuning parameters at boot time from systemdFedora 16 using systemd kernel boot parameters...

Is there a loss of quality when converting RGB to HEX?

How many hit points does the Battle Smith Artificer's Iron Defender have?

How do I calculate the difference in lens reach between a superzoom compact and a DSLR zoom lens?

Look mom! I made my own (Base 10) numeral system!

Why does this Pokémon I just hatched need to be healed?

A stranger from Norway wants to have money delivered to me

Why are the inside diameters of some pipe larger than the stated size?

Do other countries guarantee freedoms that the United States does not have?

What is the best way to cause swarm intelligence to be destroyed?

How quickly could a country build a tall concrete wall around a city?

Could one become a successful researcher by writing some really good papers while being outside academia?

Why should we care about syntactic proofs if we can show semantically that statements are true?

Ordering a word list

Sierpinski turtle triangle

Why did the RAAF procure the F/A-18 despite being purpose-built for carriers?

During the Space Shuttle Columbia Disaster of 2003, Why Did The Flight Director Say, "Lock the doors."?

In Pokémon Go, why does one of my Pikachu have an option to evolve, but another one doesn't?

Word or idiom defining something barely functional

Atari ST DRAM timing puzzle

As a 16 year old, how can I keep my money safe from my mother?

Is multiplication of real numbers uniquely defined as being distributive over addition?

A question about 'reptile and volatiles' to describe creatures

Are there any financial disadvantages to living significantly "below your means"?

Pretty heat maps



Unable to set power tuning parameters at boot time from systemd


Fedora 16 using systemd kernel boot parameters to change 'runlevel'How can I set power button (on computer case) to power off system with `systemd`?systemd: automate modprobe command at boot timeHow to suspend from Gnome3 using systemdSystemd boot time trimmingFedora 21 akmods.service long boot timeUnable to set kernel module parametersService unable to start at boot timeSystemd: unable to mask service using kernel parameters






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I'm using Fedora 30 on a laptop. I've tried setting power tune parameters using the systemd service that comes with powertop (powertop.service) and that didn't work. I then tried creating a shell script along with a custom .service file to run it at boot and that doesn't work either. Checking the parameters after a reboot with powertop shows them not to have been changed.



custom script '/root/bin/powertop-tune-HPEnvy-15as133cl.sh'



#!/bin/sh
echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
echo 'auto' > '/sys/bus/i2c/devices/i2c-0/device/power/control';
echo 'auto' > '/sys/bus/i2c/devices/i2c-2/device/power/control';
echo 'auto' > '/sys/bus/i2c/devices/i2c-6/device/power/control';
echo 'auto' > '/sys/bus/i2c/devices/i2c-1/device/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:02:00.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:08.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:15.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.4/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:15.1/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:14.2/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:04.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/power/control';




echo 'enabled' > '/sys/class/net/wlp1s0/device/power/wakeup';
echo 'enabled' > '/sys/bus/usb/devices/usb1/power/wakeup';
echo 'enabled' > '/sys/bus/usb/devices/usb2/power/wakeup';


custom systemd service '/etc/systemd/system/HPEnvy-15as133cl-powertune.service'



[Unit]
Description=Set HP Envy 15-as133cl powersaving
After=systemd-modules-load.service

[Service]
Type=oneshot
ExecStart=/root/bin/powertop-tune-HPEnvy-15as133cl.sh


[Install]
WantedBy=multi-user.target









share|improve this question







New contributor



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




























    0















    I'm using Fedora 30 on a laptop. I've tried setting power tune parameters using the systemd service that comes with powertop (powertop.service) and that didn't work. I then tried creating a shell script along with a custom .service file to run it at boot and that doesn't work either. Checking the parameters after a reboot with powertop shows them not to have been changed.



    custom script '/root/bin/powertop-tune-HPEnvy-15as133cl.sh'



    #!/bin/sh
    echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
    echo 'auto' > '/sys/bus/i2c/devices/i2c-0/device/power/control';
    echo 'auto' > '/sys/bus/i2c/devices/i2c-2/device/power/control';
    echo 'auto' > '/sys/bus/i2c/devices/i2c-6/device/power/control';
    echo 'auto' > '/sys/bus/i2c/devices/i2c-1/device/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:02:00.0/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:08.0/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:15.0/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.4/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:15.1/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:14.2/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:04.0/power/control';
    echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/power/control';




    echo 'enabled' > '/sys/class/net/wlp1s0/device/power/wakeup';
    echo 'enabled' > '/sys/bus/usb/devices/usb1/power/wakeup';
    echo 'enabled' > '/sys/bus/usb/devices/usb2/power/wakeup';


    custom systemd service '/etc/systemd/system/HPEnvy-15as133cl-powertune.service'



    [Unit]
    Description=Set HP Envy 15-as133cl powersaving
    After=systemd-modules-load.service

    [Service]
    Type=oneshot
    ExecStart=/root/bin/powertop-tune-HPEnvy-15as133cl.sh


    [Install]
    WantedBy=multi-user.target









    share|improve this question







    New contributor



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
























      0












      0








      0








      I'm using Fedora 30 on a laptop. I've tried setting power tune parameters using the systemd service that comes with powertop (powertop.service) and that didn't work. I then tried creating a shell script along with a custom .service file to run it at boot and that doesn't work either. Checking the parameters after a reboot with powertop shows them not to have been changed.



      custom script '/root/bin/powertop-tune-HPEnvy-15as133cl.sh'



      #!/bin/sh
      echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
      echo 'auto' > '/sys/bus/i2c/devices/i2c-0/device/power/control';
      echo 'auto' > '/sys/bus/i2c/devices/i2c-2/device/power/control';
      echo 'auto' > '/sys/bus/i2c/devices/i2c-6/device/power/control';
      echo 'auto' > '/sys/bus/i2c/devices/i2c-1/device/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:02:00.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:08.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:15.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.4/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:15.1/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:14.2/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:04.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/power/control';




      echo 'enabled' > '/sys/class/net/wlp1s0/device/power/wakeup';
      echo 'enabled' > '/sys/bus/usb/devices/usb1/power/wakeup';
      echo 'enabled' > '/sys/bus/usb/devices/usb2/power/wakeup';


      custom systemd service '/etc/systemd/system/HPEnvy-15as133cl-powertune.service'



      [Unit]
      Description=Set HP Envy 15-as133cl powersaving
      After=systemd-modules-load.service

      [Service]
      Type=oneshot
      ExecStart=/root/bin/powertop-tune-HPEnvy-15as133cl.sh


      [Install]
      WantedBy=multi-user.target









      share|improve this question







      New contributor



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











      I'm using Fedora 30 on a laptop. I've tried setting power tune parameters using the systemd service that comes with powertop (powertop.service) and that didn't work. I then tried creating a shell script along with a custom .service file to run it at boot and that doesn't work either. Checking the parameters after a reboot with powertop shows them not to have been changed.



      custom script '/root/bin/powertop-tune-HPEnvy-15as133cl.sh'



      #!/bin/sh
      echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
      echo 'auto' > '/sys/bus/i2c/devices/i2c-0/device/power/control';
      echo 'auto' > '/sys/bus/i2c/devices/i2c-2/device/power/control';
      echo 'auto' > '/sys/bus/i2c/devices/i2c-6/device/power/control';
      echo 'auto' > '/sys/bus/i2c/devices/i2c-1/device/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:02:00.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:08.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:15.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.4/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:15.1/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:14.2/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:04.0/power/control';
      echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/power/control';




      echo 'enabled' > '/sys/class/net/wlp1s0/device/power/wakeup';
      echo 'enabled' > '/sys/bus/usb/devices/usb1/power/wakeup';
      echo 'enabled' > '/sys/bus/usb/devices/usb2/power/wakeup';


      custom systemd service '/etc/systemd/system/HPEnvy-15as133cl-powertune.service'



      [Unit]
      Description=Set HP Envy 15-as133cl powersaving
      After=systemd-modules-load.service

      [Service]
      Type=oneshot
      ExecStart=/root/bin/powertop-tune-HPEnvy-15as133cl.sh


      [Install]
      WantedBy=multi-user.target






      fedora systemd power-management powertop






      share|improve this question







      New contributor



      Matthew 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



      Matthew 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



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








      asked 1 hour ago









      MatthewMatthew

      1




      1




      New contributor



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




      New contributor




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



























          0






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


          }
          });






          Matthew 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%2f534838%2funable-to-set-power-tuning-parameters-at-boot-time-from-systemd%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








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










          draft saved

          draft discarded


















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













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












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
















          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%2f534838%2funable-to-set-power-tuning-parameters-at-boot-time-from-systemd%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...