try to set the display automatically