Raspberry Pi and a Chinese 7″ display

Some while ago, I stumbled across a nice 7″ display ordered at aliexpress at one of my friends. Since I have multiple raspberrypi’s and only one HDMI-tv, this seemed like a nice solution. However, there is one minor challenge. I only have old raspberrypi’s which do not seem to detect the display correct. Fortunately, after some googling I found the solution, simply adding the following few lines to the config.txt file and all works out nicely!

# Setup the correct resolution settings 
hdmi_cvt=1024 600 60 3 0 0 0 
# Force a specific HDMI group and mode settings
hdmi_group=2 
hdmi_mode=87

Some more details can be found here: https://www.raspberrypi.org/documentation/configuration/config-txt/video.md