I have just installed a new linux system to an Intel NUC8i5BEK. Over HDMI everything works perfectly, but using my monitor (which only has DisplayPort input) it seems it is not detected properly. The UEFI BIOS correctly detects the monitor and puts it at native resolution, but when KMS kicks in the kernel switches back to 1024x768.
Weirdly the framebuffer resolution is kept at the native resolution (2560x1440), so text scrolls off the screen unless I reset the framebuffer
This problem occurs with the default Arch Linux ISO (ARCH_201909), but also with my custom-compiled kernel 5.3.1 for which I have debugging info.
The most confusing thing trying to debug this is why there are TWO DisplayPort outputs on the graphics card as reported by the kernel (there is only 1 DisplayPort on the rear of the device that I can see). One of them lists some resolutions but the highest is 1024x768; this seems to be the one it is using.
Here is the kernel drm log with all debugging enabled:
https://pastebin.com/VNhZGJPu
Here is my kernel config:
https://pastebin.com/hStMFVfE
I can "fix" this by e.g. disabling modesetting in the kernel command line, but it is not ideal because for instance I cannot then turn the monitor off while the computer is on; I also cannot hotplug monitors.
Any help appreciated!