display: carefully handle output detect