New MBP 13" can't connect to external monitor I am trying to connect my oldish LG monitor with DVI port (adapter hdmi to dvi is in monitors end) to my macbook pro 13" (late 2013 haswell model)

and it is pretty weird, macbook recognizes monitors model, I can change resolution, even hertz rate is correct- 59hz, but monitor just says to check cable. Cable is fine, it was working with my windows laptop, it is working with friends windows laptop.

what I have tried, checked all posibilieties that monitor or cable could be damaged, and walked through all settings on mac, can't get it work.
I was able to get the external monitor to display when I used an HDMI to DVI cable.

HDMI output from MacBook, DVI input on the LG monitor.

I have and LG 27 inch monitor