unable to power off macbook display w/ ubuntu server











up vote
0
down vote

favorite












I have two macbooks, one running 16.04 server, another running 18.04 server. I'm trying to disable the monitors to save power



It seems setterm is the command I should be using based on this power management doc and this post




If instead you're using the Linux console (not X-Windows), you'll want
to use setterm(1):




I've tried a couple of the commands to no avail




  • setterm --powersave on

  • setterm --half-bright on

  • setterm --powersave powerdown


Essentially nothing happens when I run these commands. I'm running them at a console on the laptop itself (not over SSH).



setterm --cursor off|on do work, so I feel like setterm is the right direction, but for some reason the power management options do nothing. Maybe there's something I could install that would fix that?



I was looking into disabling kernel modules as well, I've got the nouveau driver, when I run sudo rmmod -f nouveau I get



rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'nouveau': Resource temporarily unavailable
rmmod: ERROR: could not remove module nouveau: Resource temporarily unavailable


I also tried changing the keyboard layout to a Macbook layout and using the built-in keys, but when I press the function key and the appropriate function key to change the brightness, it just acts as if I'm typing random characters into the terminal.



How can I power off my displays?










share|improve this question




























    up vote
    0
    down vote

    favorite












    I have two macbooks, one running 16.04 server, another running 18.04 server. I'm trying to disable the monitors to save power



    It seems setterm is the command I should be using based on this power management doc and this post




    If instead you're using the Linux console (not X-Windows), you'll want
    to use setterm(1):




    I've tried a couple of the commands to no avail




    • setterm --powersave on

    • setterm --half-bright on

    • setterm --powersave powerdown


    Essentially nothing happens when I run these commands. I'm running them at a console on the laptop itself (not over SSH).



    setterm --cursor off|on do work, so I feel like setterm is the right direction, but for some reason the power management options do nothing. Maybe there's something I could install that would fix that?



    I was looking into disabling kernel modules as well, I've got the nouveau driver, when I run sudo rmmod -f nouveau I get



    rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'nouveau': Resource temporarily unavailable
    rmmod: ERROR: could not remove module nouveau: Resource temporarily unavailable


    I also tried changing the keyboard layout to a Macbook layout and using the built-in keys, but when I press the function key and the appropriate function key to change the brightness, it just acts as if I'm typing random characters into the terminal.



    How can I power off my displays?










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have two macbooks, one running 16.04 server, another running 18.04 server. I'm trying to disable the monitors to save power



      It seems setterm is the command I should be using based on this power management doc and this post




      If instead you're using the Linux console (not X-Windows), you'll want
      to use setterm(1):




      I've tried a couple of the commands to no avail




      • setterm --powersave on

      • setterm --half-bright on

      • setterm --powersave powerdown


      Essentially nothing happens when I run these commands. I'm running them at a console on the laptop itself (not over SSH).



      setterm --cursor off|on do work, so I feel like setterm is the right direction, but for some reason the power management options do nothing. Maybe there's something I could install that would fix that?



      I was looking into disabling kernel modules as well, I've got the nouveau driver, when I run sudo rmmod -f nouveau I get



      rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'nouveau': Resource temporarily unavailable
      rmmod: ERROR: could not remove module nouveau: Resource temporarily unavailable


      I also tried changing the keyboard layout to a Macbook layout and using the built-in keys, but when I press the function key and the appropriate function key to change the brightness, it just acts as if I'm typing random characters into the terminal.



      How can I power off my displays?










      share|improve this question















      I have two macbooks, one running 16.04 server, another running 18.04 server. I'm trying to disable the monitors to save power



      It seems setterm is the command I should be using based on this power management doc and this post




      If instead you're using the Linux console (not X-Windows), you'll want
      to use setterm(1):




      I've tried a couple of the commands to no avail




      • setterm --powersave on

      • setterm --half-bright on

      • setterm --powersave powerdown


      Essentially nothing happens when I run these commands. I'm running them at a console on the laptop itself (not over SSH).



      setterm --cursor off|on do work, so I feel like setterm is the right direction, but for some reason the power management options do nothing. Maybe there's something I could install that would fix that?



      I was looking into disabling kernel modules as well, I've got the nouveau driver, when I run sudo rmmod -f nouveau I get



      rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'nouveau': Resource temporarily unavailable
      rmmod: ERROR: could not remove module nouveau: Resource temporarily unavailable


      I also tried changing the keyboard layout to a Macbook layout and using the built-in keys, but when I press the function key and the appropriate function key to change the brightness, it just acts as if I'm typing random characters into the terminal.



      How can I power off my displays?







      server power-management macbook






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 27 at 2:07

























      asked Nov 26 at 23:16









      quickshiftin

      188




      188






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Try setterm -blank force.
          You can also try using xrandr to set the brightness to 0. Use xrandr to get your display name and do xrandr --output <display name here> --brightness 0.



          Related questions I found: https://unix.stackexchange.com/questions/366868/macbook-ubuntu-server-how-can-i-have-the-screen-turn-off-when-lid-closed-but-k
          Manually turn off monitor



          Edit: If that doesn’t work, try using DPMS to turn off your monitor. You can use xset. Or, you can also use vbetool although they seem to be the same.



          sleep 3; xset dpms force off (note: the sleep is needed so that it doesn’t turn back on which is a known bug with xset dpms force off)



          vbetool dpms off






          share|improve this answer























          • I've tried setterm -blank force, but it doesn't power off the display, it just blanks it out. I also tried xrandr, that is for X, which I'm not using.
            – quickshiftin
            Nov 27 at 1:22











          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',
          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%2f1096319%2funable-to-power-off-macbook-display-w-ubuntu-server%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








          up vote
          0
          down vote













          Try setterm -blank force.
          You can also try using xrandr to set the brightness to 0. Use xrandr to get your display name and do xrandr --output <display name here> --brightness 0.



          Related questions I found: https://unix.stackexchange.com/questions/366868/macbook-ubuntu-server-how-can-i-have-the-screen-turn-off-when-lid-closed-but-k
          Manually turn off monitor



          Edit: If that doesn’t work, try using DPMS to turn off your monitor. You can use xset. Or, you can also use vbetool although they seem to be the same.



          sleep 3; xset dpms force off (note: the sleep is needed so that it doesn’t turn back on which is a known bug with xset dpms force off)



          vbetool dpms off






          share|improve this answer























          • I've tried setterm -blank force, but it doesn't power off the display, it just blanks it out. I also tried xrandr, that is for X, which I'm not using.
            – quickshiftin
            Nov 27 at 1:22















          up vote
          0
          down vote













          Try setterm -blank force.
          You can also try using xrandr to set the brightness to 0. Use xrandr to get your display name and do xrandr --output <display name here> --brightness 0.



          Related questions I found: https://unix.stackexchange.com/questions/366868/macbook-ubuntu-server-how-can-i-have-the-screen-turn-off-when-lid-closed-but-k
          Manually turn off monitor



          Edit: If that doesn’t work, try using DPMS to turn off your monitor. You can use xset. Or, you can also use vbetool although they seem to be the same.



          sleep 3; xset dpms force off (note: the sleep is needed so that it doesn’t turn back on which is a known bug with xset dpms force off)



          vbetool dpms off






          share|improve this answer























          • I've tried setterm -blank force, but it doesn't power off the display, it just blanks it out. I also tried xrandr, that is for X, which I'm not using.
            – quickshiftin
            Nov 27 at 1:22













          up vote
          0
          down vote










          up vote
          0
          down vote









          Try setterm -blank force.
          You can also try using xrandr to set the brightness to 0. Use xrandr to get your display name and do xrandr --output <display name here> --brightness 0.



          Related questions I found: https://unix.stackexchange.com/questions/366868/macbook-ubuntu-server-how-can-i-have-the-screen-turn-off-when-lid-closed-but-k
          Manually turn off monitor



          Edit: If that doesn’t work, try using DPMS to turn off your monitor. You can use xset. Or, you can also use vbetool although they seem to be the same.



          sleep 3; xset dpms force off (note: the sleep is needed so that it doesn’t turn back on which is a known bug with xset dpms force off)



          vbetool dpms off






          share|improve this answer














          Try setterm -blank force.
          You can also try using xrandr to set the brightness to 0. Use xrandr to get your display name and do xrandr --output <display name here> --brightness 0.



          Related questions I found: https://unix.stackexchange.com/questions/366868/macbook-ubuntu-server-how-can-i-have-the-screen-turn-off-when-lid-closed-but-k
          Manually turn off monitor



          Edit: If that doesn’t work, try using DPMS to turn off your monitor. You can use xset. Or, you can also use vbetool although they seem to be the same.



          sleep 3; xset dpms force off (note: the sleep is needed so that it doesn’t turn back on which is a known bug with xset dpms force off)



          vbetool dpms off







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 28 at 1:03

























          answered Nov 27 at 1:14









          an actual toaster

          1285




          1285












          • I've tried setterm -blank force, but it doesn't power off the display, it just blanks it out. I also tried xrandr, that is for X, which I'm not using.
            – quickshiftin
            Nov 27 at 1:22


















          • I've tried setterm -blank force, but it doesn't power off the display, it just blanks it out. I also tried xrandr, that is for X, which I'm not using.
            – quickshiftin
            Nov 27 at 1:22
















          I've tried setterm -blank force, but it doesn't power off the display, it just blanks it out. I also tried xrandr, that is for X, which I'm not using.
          – quickshiftin
          Nov 27 at 1:22




          I've tried setterm -blank force, but it doesn't power off the display, it just blanks it out. I also tried xrandr, that is for X, which I'm not using.
          – quickshiftin
          Nov 27 at 1:22


















          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%2f1096319%2funable-to-power-off-macbook-display-w-ubuntu-server%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 change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?