modified get hdmi resoultion