How to create a delayed startup command

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








up vote
1
down vote

favorite












this question might be simple but I'm new to Linux..
i had a screen tear issue with my nvidia graphics card, i looked up a YT vid and it said it has something to do with the composition pipeline and explained how to fix it by adding the command line below to the nvidia configuration file..
It worked, the screen tear is gone, but it created another problem. a program called "redshift" wouldn't work anymore..
anyhow, i rolled back the changes that vid said and spent the night trying to get to the bottom of it, and i found a solution.



all i need to do is i just boot my pc and after redshift starts, i run this command in terminal:



"nvidia-settings --assign CurrentMetaMode="HDMI-0:1280x720_60 +0+0 ForceFullCompositionPipeline = On "



Template:
nvidia-settings --assign CurrentMetaMode="CONNECTION:RESOLUTION_RATE +0+0 ForceFullCompositionPipeline = On "



somehow, redshift is not affected by it because it already started, and at the same time, the screen tear problem is solved ( until i restart the computer), then i have to execute the command again..



I'm now looking for an automated solution ,maybe by creating a delayed script with this command in "session and startup" that will execute after "Redshift" starts.



How do i do that? thanks in advance










share|improve this question

























    up vote
    1
    down vote

    favorite












    this question might be simple but I'm new to Linux..
    i had a screen tear issue with my nvidia graphics card, i looked up a YT vid and it said it has something to do with the composition pipeline and explained how to fix it by adding the command line below to the nvidia configuration file..
    It worked, the screen tear is gone, but it created another problem. a program called "redshift" wouldn't work anymore..
    anyhow, i rolled back the changes that vid said and spent the night trying to get to the bottom of it, and i found a solution.



    all i need to do is i just boot my pc and after redshift starts, i run this command in terminal:



    "nvidia-settings --assign CurrentMetaMode="HDMI-0:1280x720_60 +0+0 ForceFullCompositionPipeline = On "



    Template:
    nvidia-settings --assign CurrentMetaMode="CONNECTION:RESOLUTION_RATE +0+0 ForceFullCompositionPipeline = On "



    somehow, redshift is not affected by it because it already started, and at the same time, the screen tear problem is solved ( until i restart the computer), then i have to execute the command again..



    I'm now looking for an automated solution ,maybe by creating a delayed script with this command in "session and startup" that will execute after "Redshift" starts.



    How do i do that? thanks in advance










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      this question might be simple but I'm new to Linux..
      i had a screen tear issue with my nvidia graphics card, i looked up a YT vid and it said it has something to do with the composition pipeline and explained how to fix it by adding the command line below to the nvidia configuration file..
      It worked, the screen tear is gone, but it created another problem. a program called "redshift" wouldn't work anymore..
      anyhow, i rolled back the changes that vid said and spent the night trying to get to the bottom of it, and i found a solution.



      all i need to do is i just boot my pc and after redshift starts, i run this command in terminal:



      "nvidia-settings --assign CurrentMetaMode="HDMI-0:1280x720_60 +0+0 ForceFullCompositionPipeline = On "



      Template:
      nvidia-settings --assign CurrentMetaMode="CONNECTION:RESOLUTION_RATE +0+0 ForceFullCompositionPipeline = On "



      somehow, redshift is not affected by it because it already started, and at the same time, the screen tear problem is solved ( until i restart the computer), then i have to execute the command again..



      I'm now looking for an automated solution ,maybe by creating a delayed script with this command in "session and startup" that will execute after "Redshift" starts.



      How do i do that? thanks in advance










      share|improve this question













      this question might be simple but I'm new to Linux..
      i had a screen tear issue with my nvidia graphics card, i looked up a YT vid and it said it has something to do with the composition pipeline and explained how to fix it by adding the command line below to the nvidia configuration file..
      It worked, the screen tear is gone, but it created another problem. a program called "redshift" wouldn't work anymore..
      anyhow, i rolled back the changes that vid said and spent the night trying to get to the bottom of it, and i found a solution.



      all i need to do is i just boot my pc and after redshift starts, i run this command in terminal:



      "nvidia-settings --assign CurrentMetaMode="HDMI-0:1280x720_60 +0+0 ForceFullCompositionPipeline = On "



      Template:
      nvidia-settings --assign CurrentMetaMode="CONNECTION:RESOLUTION_RATE +0+0 ForceFullCompositionPipeline = On "



      somehow, redshift is not affected by it because it already started, and at the same time, the screen tear problem is solved ( until i restart the computer), then i have to execute the command again..



      I'm now looking for an automated solution ,maybe by creating a delayed script with this command in "session and startup" that will execute after "Redshift" starts.



      How do i do that? thanks in advance







      nvidia screen tearing nvidia-settings redshift






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 10 at 20:17









      Maroun K

      84




      84




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          I use Startup Applications to delay the start of Dropbox until after my VPN has loaded. The same procedure might work for your case. I would try the following:



          Open Startup Applications (click on the dash and search for it)



          Add a new startup program by clicking the Add button and give it a name.



          In the command line try:



          /bin/bash -c "sleep XX && YOUR NVIDIA code"


          where XX is the number of seconds of delay you want before executing. So,



          /bin/bash -c "sleep 10 && nvidia-settings --assign CurrentMetaMode="HDMI-0:1280x720_60 +0+0 ForceFullCompositionPipeline = On 


          then click Save and reboot to verify that it works.






          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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            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%2f1023796%2fhow-to-create-a-delayed-startup-command%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            I use Startup Applications to delay the start of Dropbox until after my VPN has loaded. The same procedure might work for your case. I would try the following:



            Open Startup Applications (click on the dash and search for it)



            Add a new startup program by clicking the Add button and give it a name.



            In the command line try:



            /bin/bash -c "sleep XX && YOUR NVIDIA code"


            where XX is the number of seconds of delay you want before executing. So,



            /bin/bash -c "sleep 10 && nvidia-settings --assign CurrentMetaMode="HDMI-0:1280x720_60 +0+0 ForceFullCompositionPipeline = On 


            then click Save and reboot to verify that it works.






            share|improve this answer
























              up vote
              2
              down vote



              accepted










              I use Startup Applications to delay the start of Dropbox until after my VPN has loaded. The same procedure might work for your case. I would try the following:



              Open Startup Applications (click on the dash and search for it)



              Add a new startup program by clicking the Add button and give it a name.



              In the command line try:



              /bin/bash -c "sleep XX && YOUR NVIDIA code"


              where XX is the number of seconds of delay you want before executing. So,



              /bin/bash -c "sleep 10 && nvidia-settings --assign CurrentMetaMode="HDMI-0:1280x720_60 +0+0 ForceFullCompositionPipeline = On 


              then click Save and reboot to verify that it works.






              share|improve this answer






















                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                I use Startup Applications to delay the start of Dropbox until after my VPN has loaded. The same procedure might work for your case. I would try the following:



                Open Startup Applications (click on the dash and search for it)



                Add a new startup program by clicking the Add button and give it a name.



                In the command line try:



                /bin/bash -c "sleep XX && YOUR NVIDIA code"


                where XX is the number of seconds of delay you want before executing. So,



                /bin/bash -c "sleep 10 && nvidia-settings --assign CurrentMetaMode="HDMI-0:1280x720_60 +0+0 ForceFullCompositionPipeline = On 


                then click Save and reboot to verify that it works.






                share|improve this answer












                I use Startup Applications to delay the start of Dropbox until after my VPN has loaded. The same procedure might work for your case. I would try the following:



                Open Startup Applications (click on the dash and search for it)



                Add a new startup program by clicking the Add button and give it a name.



                In the command line try:



                /bin/bash -c "sleep XX && YOUR NVIDIA code"


                where XX is the number of seconds of delay you want before executing. So,



                /bin/bash -c "sleep 10 && nvidia-settings --assign CurrentMetaMode="HDMI-0:1280x720_60 +0+0 ForceFullCompositionPipeline = On 


                then click Save and reboot to verify that it works.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 10 at 20:42









                Mark Maurer

                737




                737



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023796%2fhow-to-create-a-delayed-startup-command%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Trouble downloading packages list due to a “Hash sum mismatch” error

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    How do I move numbers in filenames, in a batch renaming operation?