Put in unused code for detecting display state

Leaving unused for now since I don't have any displays to test with