GNOME Night Light Setting from the Command Line












4














How do I turn the GNOME night light on or off from the command line? I've got the command gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled but don't know what flag/argument/whatever to put on the end of it.



gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled ON
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled TRUE
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled YES PLEASE


None of those work.










share|improve this question



























    4














    How do I turn the GNOME night light on or off from the command line? I've got the command gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled but don't know what flag/argument/whatever to put on the end of it.



    gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled ON
    gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled TRUE
    gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled YES PLEASE


    None of those work.










    share|improve this question

























      4












      4








      4


      1





      How do I turn the GNOME night light on or off from the command line? I've got the command gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled but don't know what flag/argument/whatever to put on the end of it.



      gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled ON
      gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled TRUE
      gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled YES PLEASE


      None of those work.










      share|improve this question













      How do I turn the GNOME night light on or off from the command line? I've got the command gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled but don't know what flag/argument/whatever to put on the end of it.



      gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled ON
      gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled TRUE
      gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled YES PLEASE


      None of those work.







      command-line dconf gsettings






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 30 '18 at 17:19









      stackinatorstackinator

      494216




      494216






















          1 Answer
          1






          active

          oldest

          votes


















          6














          to turn on:



          gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true


          to turn off:



          gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled false


          to schedule on time, here I want to schedule night light from 23:06 hrs (that is 06/60=0.1):



          gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-from 23.1


          to schedule off time, I want to schedule night light off at 23:25 hrs (that is 25/60=0.416666666):



          gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-to 23.416666666


          you can also set the night light temperature which will increase and decrease the brightness, 4000 is the default value for Ubuntu 18.04, you can try different values for example 2000, 3000, 5000, 6000, 10000 and set the preferred ones:



          gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 4000


          Edit:

          to get the current values for above commands, run the below commands



          gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled 
          gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
          gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
          gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature


          Example:



          $ gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled
          false
          $ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
          23.1
          $ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
          23.416666666000001
          $ gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature
          uint32 1000
          $





          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%2f1088650%2fgnome-night-light-setting-from-the-command-line%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









            6














            to turn on:



            gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true


            to turn off:



            gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled false


            to schedule on time, here I want to schedule night light from 23:06 hrs (that is 06/60=0.1):



            gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-from 23.1


            to schedule off time, I want to schedule night light off at 23:25 hrs (that is 25/60=0.416666666):



            gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-to 23.416666666


            you can also set the night light temperature which will increase and decrease the brightness, 4000 is the default value for Ubuntu 18.04, you can try different values for example 2000, 3000, 5000, 6000, 10000 and set the preferred ones:



            gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 4000


            Edit:

            to get the current values for above commands, run the below commands



            gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled 
            gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
            gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
            gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature


            Example:



            $ gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled
            false
            $ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
            23.1
            $ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
            23.416666666000001
            $ gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature
            uint32 1000
            $





            share|improve this answer




























              6














              to turn on:



              gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true


              to turn off:



              gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled false


              to schedule on time, here I want to schedule night light from 23:06 hrs (that is 06/60=0.1):



              gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-from 23.1


              to schedule off time, I want to schedule night light off at 23:25 hrs (that is 25/60=0.416666666):



              gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-to 23.416666666


              you can also set the night light temperature which will increase and decrease the brightness, 4000 is the default value for Ubuntu 18.04, you can try different values for example 2000, 3000, 5000, 6000, 10000 and set the preferred ones:



              gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 4000


              Edit:

              to get the current values for above commands, run the below commands



              gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled 
              gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
              gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
              gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature


              Example:



              $ gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled
              false
              $ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
              23.1
              $ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
              23.416666666000001
              $ gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature
              uint32 1000
              $





              share|improve this answer


























                6












                6








                6






                to turn on:



                gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true


                to turn off:



                gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled false


                to schedule on time, here I want to schedule night light from 23:06 hrs (that is 06/60=0.1):



                gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-from 23.1


                to schedule off time, I want to schedule night light off at 23:25 hrs (that is 25/60=0.416666666):



                gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-to 23.416666666


                you can also set the night light temperature which will increase and decrease the brightness, 4000 is the default value for Ubuntu 18.04, you can try different values for example 2000, 3000, 5000, 6000, 10000 and set the preferred ones:



                gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 4000


                Edit:

                to get the current values for above commands, run the below commands



                gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled 
                gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
                gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
                gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature


                Example:



                $ gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled
                false
                $ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
                23.1
                $ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
                23.416666666000001
                $ gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature
                uint32 1000
                $





                share|improve this answer














                to turn on:



                gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true


                to turn off:



                gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled false


                to schedule on time, here I want to schedule night light from 23:06 hrs (that is 06/60=0.1):



                gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-from 23.1


                to schedule off time, I want to schedule night light off at 23:25 hrs (that is 25/60=0.416666666):



                gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-to 23.416666666


                you can also set the night light temperature which will increase and decrease the brightness, 4000 is the default value for Ubuntu 18.04, you can try different values for example 2000, 3000, 5000, 6000, 10000 and set the preferred ones:



                gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 4000


                Edit:

                to get the current values for above commands, run the below commands



                gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled 
                gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
                gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
                gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature


                Example:



                $ gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled
                false
                $ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
                23.1
                $ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
                23.416666666000001
                $ gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature
                uint32 1000
                $






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 21 '18 at 2:12

























                answered Oct 30 '18 at 17:36









                PRATAPPRATAP

                2,3582525




                2,3582525






























                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1088650%2fgnome-night-light-setting-from-the-command-line%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

                    Ellipse (mathématiques)

                    Quarter-circle Tiles

                    Mont Emei