If someone has a better code to maintain a black screen, change CGSetDisplayTransferByFormula which seems to be a big kludge.