Run a script every time my display turns on?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
I'm on Ubuntu 16.04 using a Nvidia GTX 950. How would I set up a script to run every time my display turns on or wakes up?
command-line scripts display
add a comment |Â
up vote
1
down vote
favorite
I'm on Ubuntu 16.04 using a Nvidia GTX 950. How would I set up a script to run every time my display turns on or wakes up?
command-line scripts display
You don't mean when lid open? right? So by "turns on" what do you mean? or wakeup?
â Ã±ÃÂsýù÷
Mar 31 at 16:17
When I turn my monitor on. If it were a laptop then yeah, every time the lid opens. I don't know if there's a technical difference between pressing the power button or just waking it up by moving my mouse around after it's gone to sleep, would it affect the script?
â lightspectra
Mar 31 at 16:26
Maybe this Stack Overflow question will help.
â devius
Mar 31 at 16:51
This might be related to run a script when HDMI screen is plugged or unplugged: askubuntu.com/questions/874506/â¦
â WinEunuuchs2Unix
Mar 31 at 17:16
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm on Ubuntu 16.04 using a Nvidia GTX 950. How would I set up a script to run every time my display turns on or wakes up?
command-line scripts display
I'm on Ubuntu 16.04 using a Nvidia GTX 950. How would I set up a script to run every time my display turns on or wakes up?
command-line scripts display
command-line scripts display
asked Mar 31 at 15:28
lightspectra
133
133
You don't mean when lid open? right? So by "turns on" what do you mean? or wakeup?
â Ã±ÃÂsýù÷
Mar 31 at 16:17
When I turn my monitor on. If it were a laptop then yeah, every time the lid opens. I don't know if there's a technical difference between pressing the power button or just waking it up by moving my mouse around after it's gone to sleep, would it affect the script?
â lightspectra
Mar 31 at 16:26
Maybe this Stack Overflow question will help.
â devius
Mar 31 at 16:51
This might be related to run a script when HDMI screen is plugged or unplugged: askubuntu.com/questions/874506/â¦
â WinEunuuchs2Unix
Mar 31 at 17:16
add a comment |Â
You don't mean when lid open? right? So by "turns on" what do you mean? or wakeup?
â Ã±ÃÂsýù÷
Mar 31 at 16:17
When I turn my monitor on. If it were a laptop then yeah, every time the lid opens. I don't know if there's a technical difference between pressing the power button or just waking it up by moving my mouse around after it's gone to sleep, would it affect the script?
â lightspectra
Mar 31 at 16:26
Maybe this Stack Overflow question will help.
â devius
Mar 31 at 16:51
This might be related to run a script when HDMI screen is plugged or unplugged: askubuntu.com/questions/874506/â¦
â WinEunuuchs2Unix
Mar 31 at 17:16
You don't mean when lid open? right? So by "turns on" what do you mean? or wakeup?
â Ã±ÃÂsýù÷
Mar 31 at 16:17
You don't mean when lid open? right? So by "turns on" what do you mean? or wakeup?
â Ã±ÃÂsýù÷
Mar 31 at 16:17
When I turn my monitor on. If it were a laptop then yeah, every time the lid opens. I don't know if there's a technical difference between pressing the power button or just waking it up by moving my mouse around after it's gone to sleep, would it affect the script?
â lightspectra
Mar 31 at 16:26
When I turn my monitor on. If it were a laptop then yeah, every time the lid opens. I don't know if there's a technical difference between pressing the power button or just waking it up by moving my mouse around after it's gone to sleep, would it affect the script?
â lightspectra
Mar 31 at 16:26
Maybe this Stack Overflow question will help.
â devius
Mar 31 at 16:51
Maybe this Stack Overflow question will help.
â devius
Mar 31 at 16:51
This might be related to run a script when HDMI screen is plugged or unplugged: askubuntu.com/questions/874506/â¦
â WinEunuuchs2Unix
Mar 31 at 17:16
This might be related to run a script when HDMI screen is plugged or unplugged: askubuntu.com/questions/874506/â¦
â WinEunuuchs2Unix
Mar 31 at 17:16
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
draft saved
draft discarded
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%2f1020857%2frun-a-script-every-time-my-display-turns-on%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
You don't mean when lid open? right? So by "turns on" what do you mean? or wakeup?
â Ã±ÃÂsýù÷
Mar 31 at 16:17
When I turn my monitor on. If it were a laptop then yeah, every time the lid opens. I don't know if there's a technical difference between pressing the power button or just waking it up by moving my mouse around after it's gone to sleep, would it affect the script?
â lightspectra
Mar 31 at 16:26
Maybe this Stack Overflow question will help.
â devius
Mar 31 at 16:51
This might be related to run a script when HDMI screen is plugged or unplugged: askubuntu.com/questions/874506/â¦
â WinEunuuchs2Unix
Mar 31 at 17:16