# Turn Monitor On/Off

**URL:** <https://forum.inductiveautomation.com/t/turn-monitor-on-off/6253>\
**Category:** Archived Topics\
**Created:** [April 17, 2013, 3:52pm UTC](https://forum.inductiveautomation.com/t/turn-monitor-on-off/6253 "2013-04-17T15:52:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pphillips](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pphillips](https://forum.inductiveautomation.com/u/pphillips)\
**Post date:** [April 17, 2013, 3:52pm UTC](https://forum.inductiveautomation.com/t/turn-monitor-on-off/6253/1 "2013-04-17T15:52:47Z")

</div>

I have client monitor displays that I want to turn on/off automatically depending on the machine state and found this: [http://systembash.com/content/how-to-turn-off-your-monitor-via-command-line-in-ubuntu/](http://systembash.com/content/how-to-turn-off-your-monitor-via-command-line-in-ubuntu/)

I’m using HP t5565 and t610 Thin Clients (Debian Linux version), so I copied the monitorControl.sh file in the link to them and used the following simple code in a Client Tag Change script to turn the monitor on/off:

`if newValue.value:
	system.util.execute(["sh", "/home/user/Monitor/monitorControl.sh", "on"])
else:
	system.util.execute(["sh", "/home/user/Monitor/monitorControl.sh", "off"])`

Enjoy!

---

<div class="post-metadata">

**Author:** ![kwj](https://avatars.discourse-cdn.com/v4/letter/k/838e76/32.png) [@kwj](https://forum.inductiveautomation.com/u/kwj)\
**Post date:** [May 1, 2013, 5:13pm UTC](https://forum.inductiveautomation.com/t/turn-monitor-on-off/6253/2 "2013-05-01T17:13:50Z")

</div>

These posts are awesome. Thank you. I will probably steal this.
