Is the behaviour the same when using the current version of InsomniaT?
Another hypothesis I can try is changing the code as follows to make multiple displays do nothing.
if (isMultipleDisplays()) { if (isLoggingEnabled()) { IOLog("InsomniaT: multiple displays detected doing nothing.\n"); } return; }
if (isSleepEnabled() && !isSleepEnabledBySystem()) { if (isLoggingEnabled()) { IOLog("InsomniaT: enabling sleep.\n"); } enableSleep(); } else if (!isSleepEnabled() && isSleepEnabledBySystem()) { if (isLoggingEnabled()) { IOLog("InsomniaT: disabling sleep.\n"); } disableSleep(); }
Is the behaviour the same when using the current version of InsomniaT?
Another hypothesis I can try is changing the code as follows to make multiple displays do nothing.
if (isMultipleDisp lays()) { ed()) { "InsomniaT: multiple displays detected doing nothing.\n");
if (isLoggingEnabl
IOLog(
}
return;
}
if (isSleepEnabled() && !isSleepEnabled BySystem( )) { ed()) { "InsomniaT: enabling sleep.\n"); ySystem( )) { ed()) { "InsomniaT: disabling sleep.\n");
if (isLoggingEnabl
IOLog(
}
enableSleep();
} else if (!isSleepEnabled() && isSleepEnabledB
if (isLoggingEnabl
IOLog(
}
disableSleep();
}