RTX-2070 - Ubuntu 19.04 - laptop - 4K internal screen

Hi,
I have a problem with a laptop with a integrated Nvidia RTX-2070 graphic card on Ubuntu Linux. When i use the opensource nouveau drivers, everything works well but i don’t have the full capacity (of course).

When i install the Nvidia drivers from ubuntu automatic driver installation i have the following problem:

  • The internal screen has no view only a black screen.
  • When i put in a external screen on HDMI i have view only on the external screen. When i go to the screen settings i can see both screens but the internal screen has the wrong resolution. The highest resolution is 1600x900 but i need 3840x2160 as resolution. But everything that i do i have only a black screen on the internal screen.
  • When i boot with the external screen connected i have no view, not on the laptop and not on the external screen.
  • When i boot without the external screen connected i have no view, when i put in the external screen i have view on the external screen and not on the internal screen.

What i have tested:

  • Format and reinstall ubuntu 19.04 → same problem
  • Test with Ubuntu 18.04 → no view at all, you can not install ubuntu 18.04
  • Kernel upgrade to 5.1
  • Kernel upgrade to 5.2RC (there was no deb build for the final version)
  • Nvidia drivers from in the ubuntu 19.04
  • New nvidia drivers 430.34
  • Install ubuntu daily build early 19.10 version

→ all the same problem, so it’s a problem of the nvidia driver.

Configuration of the laptop:
Intel I9-9900K cpu
15,6 inch 4K screen
64 Gb DDR4 ram
Nvidia RTX-2070 with 8 Gb graphic card
1 Tb NMVe ssd M.2 card
4 TB hard drive

Thanks for the help

nvidia-bug-report.log.gz (227 KB)

nvidia-bug-report.log.gz (237 KB)

nvidia-bug-report.log.gz (220 KB)

xrandr-verbose-output.txt (29.1 KB)

nvidia-bug-report.log.gz (1.29 MB)

Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.
[url]https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/[/url]

Hi,
Sorry for the delay i could not earlier test.
The bug report is on attachment.
What i have test also:

  • Reinstall with Ubuntu 19.10 → same problem
  • Install nvidia driver 430.64 → same problem (tha bug report is form this driver)
  • Install nvidia driver 440.31 → same problem
  • I see on the nvidia forums that i am not the only one with this problem. But they use allways a external 4K screen. This laptop is with a internal 4k screen, an i want to work only with the normal internal screen. When i put a Full-HD external screen i have view on that screen but this i not what i want off course.

Please resolf it!

Thanks in advance.

That looks like some odd gdm bug another user encountered before, it starts up two xservers at the same time, so nothing works.
Please delete your xorg.conf, replace gdm with lightdm (sudo apt install lightdm) and reboot. If it still doesn’t work, create a new nvidia-bug-report.log.

I have tested with deleting xorg.conf and install lightdm. But same problem, i can only on the laptop with a other pc with SSH.
In attachment is a new bug-report.

Ok, there seems to be something wrong with the notebook. The internal display is detected but no edid is found. Please check for a bios update first. If that doesn’t help, please switch to nouveau and post the output of
xrandr --verbose
when run from desktop.

I must asked to the manufacteren for a bios upgrade, but normally they are no bios updates for laptops. When i have one i will try it, but like i said normally there will no bios update.

In attachment you can find the xrandr --verbose output

Ok, nouveau is actually able to read the edid, it grabs what it can get to, the proprietary driver is finicky. Don’t know if this is some subtle bug in bios or the driver. Let’s try to work around it:
I’m attaching the edit.bin.txt as file, please save it as /etc/edid.bin
Install the nvidia driver (from repo or ppa, not the .run installer)
and create /etc/X11/xorg.conf with contents

Section "Device"
  Identifier "nvidia"
  Driver "nvidia"
  BusID "PCI:1:0:0"
  Option "CustomEDID" "DFP-3:/etc/edid.bin"
EndSection

afterwards reboot.
edid.bin.txt (128 Bytes)

I try it but no visual, mayby i did something wrong i don’t know. With SSH i can connect to this laptop. In attachment you can find the new bug report.
I have installed from the repo, i have create a xorg.conf file with this and i have copied edid.bin to etc. Need i to chmod +x the edid.bin file?

You did nothing wrong, the manufacturer did. I did some debugging on the edid and the reason the nvidia driver doesn’t detect it is because it contains garbage:

EDID version: 1.3
Manufacturer: SDC Model 4852 Serial Number 0
Made in year 2013
Digital display
DFP 1.x compatible TMDS
Maximum image size: 34 cm x 19 cm
Gamma: 2.20
DPMS levels: Standby Suspend Off
RGB color display
First detailed timing is preferred timing
Display x,y Chromaticity:
  Red:   0.6201, 0.3554
  Green: 0.2998, 0.5800
  Blue:  0.1503, 0.0898
  White: 0.3134, 0.3291
Established timings supported:
Standard timings supported:
Detailed mode: Clock 421.550 MHz, 344 mm x 194 mm
               3840 3888 3920 3956 hborder 0
               2160 2162 2167 2220 vborder 0
               -hsync -vsync 
               VertFreq: 47 Hz, HorFreq: 106559 Hz
Invalid Detailed Timings:
  Horizontal Active/Blanking 0/15
  Vertical Active/Blanking 0/0
Invalid Detailed Timings:
  Horizontal Active/Blanking 0/254
  Vertical Active/Blanking 1107/3393
Invalid Detailed Timings:
  Horizontal Active/Blanking 0/254
  Vertical Active/Blanking 1100/3668
Checksum: 0xbd (valid)

Driver rejects it:

[ 24129.055] (WW) NVIDIA(GPU-0): The EDID read for display device DP-0 is invalid:
[ 24129.055] (WW) NVIDIA(GPU-0): - The EDID has a bad detailed timing descriptor.

Nouveau uses what it can get to, but it end up at 47/48Hz VertRefresh. I don’t think that’s correct. Do you know what kind of display that notebook has?

The build in 4K monitor is:
Samsung LTN156FL02-L0 15.6" Glossy 4K PLS LED Widescreen (3840x2160)

Ok, according to http://www.panelook.com/LTN156FL02-L01_Samsung_15.6_LCM_overview_23360.html that’s a 60Hz panel, so the edid on it is completely broken.
I could try to fix the edid but I’d rather recommend to RMA the notebook since it sure wasn’t cheap.

Yeah but the 4K laptops screens are almost always on 60Hz, So can you try to fix the edid. I have also contacted the manufacterer but they have only 60Hz 4K screens for this laptops. And also in Windows there is no problem at all, also with the nouveau driver (but very unstable).

The display model seems to be sold with different notebooks, too, having the same issue, running only at 47Hz. This seems to be an old (2013) very cheap display model. Also using
DFP 1.x compatible TMDS
meaning it’s using HDMI instead of DisplayPort.
For a start, I’m attaching a fixed edid for the 47Hz mode, to see if TMDS is correct.
edid.bin.txt (128 Bytes)

edid v1.4, displayport, 47Hz
edid.bin.txt (128 Bytes)

edid v1.4, displayport, 60Hz
edid.bin.txt (128 Bytes)

the first edid.bin works! The second i have not tested yet.
Must i test the second also?
And how can i now if nvidia cuda is enabled of works?

I attached 3 edids, every one ups the settings, so you should test them, if the second one works, test the third. If not, go back to the first.
TMDS, 47Hz->DP,47Hz->DP,60Hz.

The cuda driver gets installed alongside the driver. If you also need the cuda toolkit, you have to download and install it:

  • download the cuda .deb
  • add the repo to your system (first three steps from install instructions on download page)
  • don’t install cuda
  • instead, run sudo apt install cuda-toolkit-10-1
  • set PATH variable if necessary

Ok many thanks! Edid 1 and 2 works, edid 3 works also but the screen is not perfect (lines and/or blured screen).

Ok, now the last try, please check attached edid.
edid.bin.txt (128 Bytes)