For my situation, following worked. Remove HDMI cable connected to monitor from computer's HDMI port. Wait 5 seconds till display is shown on laptop main screen (not sure how this will work for desktop). Reconnect the HDMI cable disconnected in step 1. Maximum resolution is correctly shown. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.