0

I work in a factory and we have several monitors attached to PC's throughout the shop that stay "ON" 24/7/365.

I want to be able to send the monitors into sleep mode or awaken them from sleep mode from my computer.

How can I accomplish this task easily?

Thanks in advance.

Kevin
  • 1
  • 1

3 Answers3

0

Natively a monitor does not have any external brains, so will not receive external commands.

Either leave it on, or set it to go black after the longest time interval.

Consider a smart power bar (out of scope for this forum) that can be turned on and off remotely. Connect the monitor to this smart power bar.

John
  • 46,167
  • 4
  • 33
  • 54
0

You may use psexec to send commands to the computers to turn off the monitor.

This will require writing a batch script that will cycle through a text list of the computers and send a command to turn off their monitors.

See the article Turn Off Monitor Using Shortcut or Command-line in Windows for various methods and utilities for turning off the monitor. Perhaps the simplest method is to use this PowerShell command:

powershell (Add-Type '[DllImport("user32.dll")]public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)

Note that any user activity on a compute whose monitor is turned off will automatically turn the monitor back on.

harrymc
  • 455,459
  • 31
  • 526
  • 924
  • I want to be able to turn the monitor to sleep mode or awaken it from sleep mode. – Kevin Jul 24 '23 at 14:46
  • (1) To awaken from sleep, change the last parameter in the command from `2` to `-1`. (2) The utilities described in the article also all have parameters to undo the sleep. – harrymc Jul 24 '23 at 14:51
0

HDMI CEC commands https://www.pulse-eight.com/p/104/usb-hdmi-cec-adapter enter image description here

enter image description here

So this device is a pass-through and only injects CEC commands.

Standby is one of the options, but many other options not listed here exist.

cybernard
  • 13,380
  • 3
  • 29
  • 33