Making resolution detection a little more friendly if xdpyinfo isn't installed.