I assume you have 2 GPU's in that MBP- try this util and see if enforcing to run on NVIDIA/AMD instead of INTEL helps:
https://gfx.io and check if it's displaying a little d or i letter in menubar.
i - means integrated GPU.
d — means discrete higher-powered GPU. I got a 2012 1st retina MBP and the integrate GPU is bad, slow and unusable with 2880x1440, so I doubt it even could be connected to a 4K screen. Good news is there is also the d discrecte GPU that is either one of AMD or NVIDIA mobile powerhorses and they are quite good.
So, first try to switch from one to another and see if anything changes.
I don't know the new MBP specs, but I am almost certain that you got some kind of integrated/discrete GPU combo. I had similiar issues when the first retina come out in 2012- soo im not sure if the new MBP runs also some kind of hybrid intel/amd or intel/nvidia- but nothing else would make sense ;)
Try one of those utils then, swap resolutions, fiddle with configs.
You can manually enforce screen options -check my other answer here to ~ related ~ issue, but let's keep things simple first.
Cycle (disconnect/connect) your screen and post the output of sudo dmesg
immediately after cycling somewhere (pastebin,.. etc.) We can check what it says about your screen, swapt the resolution etc. a few times and see if you can see anything in the log (openup console) about errors etc.
Then do:
defaults read /Library/Preferences/com.apple.windowserver.plist
Post the output of the command above- but take out any device serial numbers first.
You can also gather all diagnostic info about your mbp with:
sudo sysdiagnose -f ~/Desktop/
, then selectively post the info
about your system and especially graphics/screens config to http://pastebin.com/ or gist or whatever.
Forgot to ask, are you familiar with *nix/bsd or linux?
Important! Don't forget to delete private information before you post anything anywhere, anything like your device serial number, ip, mac address, user names, login, mail etc. that can be used by someone else.
Best Answer
I didn't manage to solve the problem with the current setup. It seems like Apple still has some work to do regarding HDMI 2.0 @ 60hz. It simply doesn't work out of the box, at least not with this monitor.
For the sceptics:
However:
Using a USB-C to Displayport cable immediately solved the problem. I used this one: https://store.google.com/product/usb_type_c_to_displayport_cable