Sikuli crashing when monitor is turned off.

Asked by Jon

Hi RaiMan,
I have been running the older Java 6 Sikuli for a many years and it was working great running 24/7 for long periods of time. Recently updated computer (windows 10), updated to the latest Sikuli version and now using HDMI out to the monitor. Now when the monitor is turned off the program crashes, this did not happen before. One of the requirements of Sikuli is that a monitor is connected, is it possible that there is some hdmi logic that signals monitor is off. Do you have any experience with this?
Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

The Java Robot (internally used by Sikuli(X)) access to the screen buffer and the headless detection in Java is very, very system and in parts device dependent.
... and has changed over the time.

... but I have no experiences about that HDMI stuff on Windows.

So in doubt you have to take care, that the monitor does not turn off but is only dimmed.

For my Mac Mini's I have a little HDMI device, that simulates a screen- something like that:
https://www.amazon.com/CompuLab-fit-Headless-Display-Emulator/dp/B00FLZXGJ6

Revision history for this message
TestMechanic (ndinev) said :
#2

Try to change all sleep options to "never" in windows power options

Revision history for this message
Jon (thedeerchaser) said :
#3

Thanks RaiMan, that solved my question.