How to create a delayed startup command

Clash 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
nvidia screen tearing nvidia-settings redshift
add a comment |Â
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
nvidia screen tearing nvidia-settings redshift
add a comment |Â
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
nvidia screen tearing nvidia-settings redshift
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
nvidia screen tearing nvidia-settings redshift
asked Apr 10 at 20:17
Maroun K
84
84
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Apr 10 at 20:42
Mark Maurer
737
737
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password