Automatic HMD resolution detection