I am trying to install Debiian 9.7 on XPS 15 9570 with NVIDIA 1050 ti and 4k display. Linux can only display 3840 x 2160 with the 4k screen. I tried downloading the NVIDIA driver from NVIDIA, compile with linux header and kernel to update to the latest NVIDIA driver, but the laptop would not pass loading display driver "Oh no, something went wrong" and will not boot.
I tried using Xrandr and cvt to add a new display mode and change mode, but I got "xrandr: Failed to get size of gamma for output" and failed to change display mode. (in xrandr, linux only report 1 resolution: 384x2160 with no other choices, and the characters on a 4K screen is too small to read).
Does anyone know how to adjust the resolution on Debian 9.7 and 9570 4K laptop? Thanks