Fix Waveshare 7″ touch screen Raspberry Pi

 

I have been working on a project which requires a 7 inch LCD screen, I brought this display from Amazon. It was working fine with windows.

But when i connect to raspberry pi, i am not getting display and some gray/colored lines moving from random side. Even though connected to HDMI, with some settings in config.txt which is suggested by the company Waveshare

And here is the final configuration that worked for me.

# set current over USB to 1.2A
max_usb_current=1

# overscan to adjust image position
overscan_left=0
overscan_right=0
overscan_top=0
overscan_bottom=0

# HDMI config
hdmi_drive=1
hdmi_ignore_edid=0xa5000080
hdmi_group=2
hdmi_mode=87

# 1024×600 display
hdmi_cvt=1024 600 60 3 0 0 0