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?

  • You don't mean when lid open? right? So by "turns on" what do you mean? or wakeup? – αғsнιη Mar 31 '18 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 '18 at 16:26
  • Maybe this Stack Overflow question will help. – devius Mar 31 '18 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 '18 at 17:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.