use setpci to restart ubuntu server after power failure on macbook












3














I installed ubuntu server 11.10 on my macbook 1,1.



In order to reboot after power failure I have to set a specific "AFTERG3" bit using setpci.



The solution for a macMini can be found here:



https://serverfault.com/questions/203522/reboot-after-power-failure-for-mac-running-ubuntu-server



Does anybody have an idea how to find out the corresponding command for my hardware?



David










share|improve this question





























    3














    I installed ubuntu server 11.10 on my macbook 1,1.



    In order to reboot after power failure I have to set a specific "AFTERG3" bit using setpci.



    The solution for a macMini can be found here:



    https://serverfault.com/questions/203522/reboot-after-power-failure-for-mac-running-ubuntu-server



    Does anybody have an idea how to find out the corresponding command for my hardware?



    David










    share|improve this question



























      3












      3








      3







      I installed ubuntu server 11.10 on my macbook 1,1.



      In order to reboot after power failure I have to set a specific "AFTERG3" bit using setpci.



      The solution for a macMini can be found here:



      https://serverfault.com/questions/203522/reboot-after-power-failure-for-mac-running-ubuntu-server



      Does anybody have an idea how to find out the corresponding command for my hardware?



      David










      share|improve this question















      I installed ubuntu server 11.10 on my macbook 1,1.



      In order to reboot after power failure I have to set a specific "AFTERG3" bit using setpci.



      The solution for a macMini can be found here:



      https://serverfault.com/questions/203522/reboot-after-power-failure-for-mac-running-ubuntu-server



      Does anybody have an idea how to find out the corresponding command for my hardware?



      David







      server reboot bios power-management






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:14









      Community

      1




      1










      asked Jan 28 '12 at 12:55









      David Nathan

      1468




      1468






















          3 Answers
          3






          active

          oldest

          votes


















          3














          I finally found the solution:



          setpci -s 00:1f.0 0xa4.b=0


          The poster in my linked question just forgot one 0.






          share|improve this answer

















          • 1




            Great work on figuring this out yourself. You should accept your own answer here (by clicking the tick on the left) so people in the future will know to read this one.
            – Chris Wilson
            Nov 12 '12 at 8:27



















          3














          The technical reason for using the setpci -s 0:1f.0 0xa4.b=0 magic is described here:



          http://smackerelofopinion.blogspot.co.uk/2011/09/mac-mini-rebooting-tweaks-setpci-s-01f0.html






          share|improve this answer





























            1














            Just a minor correction:
            After checking the setpci command, it would be more appropriate to use



            setpci -s 0:1f.0 0xa4.b=0:1


            as this will only set bit zero to zero (0 = value : 1 = masq ).



            It does not matter in this case since all the other 7 bits of pci 0:1f.0 address 0xa4 are already zero, but that might not be the case for other hardware.



            Use the sudo lspci -vvvxxx command to see what your 0:1f.0 pci device initial configuration is before making any mods.






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              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: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              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%2faskubuntu.com%2fquestions%2f99263%2fuse-setpci-to-restart-ubuntu-server-after-power-failure-on-macbook%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              I finally found the solution:



              setpci -s 00:1f.0 0xa4.b=0


              The poster in my linked question just forgot one 0.






              share|improve this answer

















              • 1




                Great work on figuring this out yourself. You should accept your own answer here (by clicking the tick on the left) so people in the future will know to read this one.
                – Chris Wilson
                Nov 12 '12 at 8:27
















              3














              I finally found the solution:



              setpci -s 00:1f.0 0xa4.b=0


              The poster in my linked question just forgot one 0.






              share|improve this answer

















              • 1




                Great work on figuring this out yourself. You should accept your own answer here (by clicking the tick on the left) so people in the future will know to read this one.
                – Chris Wilson
                Nov 12 '12 at 8:27














              3












              3








              3






              I finally found the solution:



              setpci -s 00:1f.0 0xa4.b=0


              The poster in my linked question just forgot one 0.






              share|improve this answer












              I finally found the solution:



              setpci -s 00:1f.0 0xa4.b=0


              The poster in my linked question just forgot one 0.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered May 28 '12 at 14:46









              David Nathan

              1468




              1468








              • 1




                Great work on figuring this out yourself. You should accept your own answer here (by clicking the tick on the left) so people in the future will know to read this one.
                – Chris Wilson
                Nov 12 '12 at 8:27














              • 1




                Great work on figuring this out yourself. You should accept your own answer here (by clicking the tick on the left) so people in the future will know to read this one.
                – Chris Wilson
                Nov 12 '12 at 8:27








              1




              1




              Great work on figuring this out yourself. You should accept your own answer here (by clicking the tick on the left) so people in the future will know to read this one.
              – Chris Wilson
              Nov 12 '12 at 8:27




              Great work on figuring this out yourself. You should accept your own answer here (by clicking the tick on the left) so people in the future will know to read this one.
              – Chris Wilson
              Nov 12 '12 at 8:27













              3














              The technical reason for using the setpci -s 0:1f.0 0xa4.b=0 magic is described here:



              http://smackerelofopinion.blogspot.co.uk/2011/09/mac-mini-rebooting-tweaks-setpci-s-01f0.html






              share|improve this answer


























                3














                The technical reason for using the setpci -s 0:1f.0 0xa4.b=0 magic is described here:



                http://smackerelofopinion.blogspot.co.uk/2011/09/mac-mini-rebooting-tweaks-setpci-s-01f0.html






                share|improve this answer
























                  3












                  3








                  3






                  The technical reason for using the setpci -s 0:1f.0 0xa4.b=0 magic is described here:



                  http://smackerelofopinion.blogspot.co.uk/2011/09/mac-mini-rebooting-tweaks-setpci-s-01f0.html






                  share|improve this answer












                  The technical reason for using the setpci -s 0:1f.0 0xa4.b=0 magic is described here:



                  http://smackerelofopinion.blogspot.co.uk/2011/09/mac-mini-rebooting-tweaks-setpci-s-01f0.html







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 6 '12 at 14:20









                  Colin Ian King

                  12k13647




                  12k13647























                      1














                      Just a minor correction:
                      After checking the setpci command, it would be more appropriate to use



                      setpci -s 0:1f.0 0xa4.b=0:1


                      as this will only set bit zero to zero (0 = value : 1 = masq ).



                      It does not matter in this case since all the other 7 bits of pci 0:1f.0 address 0xa4 are already zero, but that might not be the case for other hardware.



                      Use the sudo lspci -vvvxxx command to see what your 0:1f.0 pci device initial configuration is before making any mods.






                      share|improve this answer




























                        1














                        Just a minor correction:
                        After checking the setpci command, it would be more appropriate to use



                        setpci -s 0:1f.0 0xa4.b=0:1


                        as this will only set bit zero to zero (0 = value : 1 = masq ).



                        It does not matter in this case since all the other 7 bits of pci 0:1f.0 address 0xa4 are already zero, but that might not be the case for other hardware.



                        Use the sudo lspci -vvvxxx command to see what your 0:1f.0 pci device initial configuration is before making any mods.






                        share|improve this answer


























                          1












                          1








                          1






                          Just a minor correction:
                          After checking the setpci command, it would be more appropriate to use



                          setpci -s 0:1f.0 0xa4.b=0:1


                          as this will only set bit zero to zero (0 = value : 1 = masq ).



                          It does not matter in this case since all the other 7 bits of pci 0:1f.0 address 0xa4 are already zero, but that might not be the case for other hardware.



                          Use the sudo lspci -vvvxxx command to see what your 0:1f.0 pci device initial configuration is before making any mods.






                          share|improve this answer














                          Just a minor correction:
                          After checking the setpci command, it would be more appropriate to use



                          setpci -s 0:1f.0 0xa4.b=0:1


                          as this will only set bit zero to zero (0 = value : 1 = masq ).



                          It does not matter in this case since all the other 7 bits of pci 0:1f.0 address 0xa4 are already zero, but that might not be the case for other hardware.



                          Use the sudo lspci -vvvxxx command to see what your 0:1f.0 pci device initial configuration is before making any mods.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Dec 13 at 8:54









                          Zanna

                          50k13131238




                          50k13131238










                          answered Dec 13 at 7:41









                          Jeanrocco

                          111




                          111






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • 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.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2faskubuntu.com%2fquestions%2f99263%2fuse-setpci-to-restart-ubuntu-server-after-power-failure-on-macbook%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

                              flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                              Mangá

                              Eduardo VII do Reino Unido