Detect kind of display to configure display routine