4K Output to Sony KD-65X9005A/XBR-65X900A

I got my 4K Sony the other day and trying to get 4K output to the TV from my GTX-TITAN but it does’t like detecting it to go 4K in X (booting into windows allows me to ok)

I have 2 GTX-TITANS and have 30’’ Monitor connected via DVI port on card 1 and the TV is connected via the HDMI Port on card 1 as well.

Running…

[ 5247.122] (II) NVIDIA GLX Module 319.49 Tue Aug 13 19:53:22 PDT 2013

(extract from Xorg.0.log with the interesting stuff - is it enough for people to help)

[ 5247.688] (II) NVIDIA(GPU-0): Display (SONY TV *07 (DFP-1)) does not support NVIDIA 3D
[ 5247.688] (II) NVIDIA(GPU-0): Vision stereo.
[ 5247.698] (II) NVIDIA(GPU-0): Display (Ancor Communications Inc VS278 (DFP-3)) does not
[ 5247.698] (II) NVIDIA(GPU-0): support NVIDIA 3D Vision stereo.
[ 5247.700] (II) NVIDIA(0): NVIDIA GPU GeForce GTX TITAN (GK110) at PCI:4:0:0 (GPU-0)
[ 5247.700] (–) NVIDIA(0): Memory: 6291456 kBytes
[ 5247.700] (–) NVIDIA(0): VideoBIOS: 80.10.2c.00.06
[ 5247.700] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 5247.702] (–) NVIDIA(0): Valid display device(s) on GeForce GTX TITAN at PCI:4:0:0
[ 5247.702] (–) NVIDIA(0): CRT-0
[ 5247.702] (–) NVIDIA(0): DFP-0
[ 5247.702] (–) NVIDIA(0): SONY TV *07 (DFP-1) (connected)
[ 5247.702] (–) NVIDIA(0): DFP-2
[ 5247.702] (–) NVIDIA(0): Ancor Communications Inc VS278 (DFP-3) (boot, connected)
[ 5247.702] (–) NVIDIA(0): DFP-4
[ 5247.702] (–) NVIDIA(0): CRT-0: 400.0 MHz maximum pixel clock
[ 5247.702] (–) NVIDIA(0): DFP-0: 330.0 MHz maximum pixel clock
[ 5247.702] (–) NVIDIA(0): DFP-0: Internal Single Link TMDS
[ 5247.702] (–) NVIDIA(0): SONY TV *07 (DFP-1): 165.0 MHz maximum pixel clock
[ 5247.702] (–) NVIDIA(0): SONY TV *07 (DFP-1): Internal Single Link TMDS
[ 5247.702] (–) NVIDIA(0): DFP-2: 165.0 MHz maximum pixel clock
[ 5247.702] (–) NVIDIA(0): DFP-2: Internal Single Link TMDS
[ 5247.702] (–) NVIDIA(0): Ancor Communications Inc VS278 (DFP-3): 330.0 MHz maximum pixel clock
[ 5247.702] (–) NVIDIA(0): Ancor Communications Inc VS278 (DFP-3): Internal Dual Link TMDS
[ 5247.702] (–) NVIDIA(0): DFP-4: 960.0 MHz maximum pixel clock
[ 5247.702] (–) NVIDIA(0): DFP-4: Internal DisplayPort

root@ubuntu:/home/lennon# edid-decode edid-sony.bin
Extracted contents:
header: 00 ff ff ff ff ff ff 00
serial number: 4d d9 03 24 01 01 01 01 01 17
version: 01 03
basic params: 80 90 51 78 0a
chroma info: 0d c9 a0 57 47 98 27 12 48 4c
established: 21 08 00
standard: 81 80 01 01 01 01 01 01 01 01 01 01 01 01 01 01
descriptor 1: 02 3a 80 18 71 38 2d 40 58 2c 45 00 9f 29 53 00 00 1e
descriptor 2: 01 1d 00 72 51 d0 1e 20 6e 28 55 00 9f 29 53 00 00 1e
descriptor 3: 00 00 00 fc 00 53 4f 4e 59 20 54 56 20 20 2a 30 37 0a
descriptor 4: 00 00 00 fd 00 30 3e 0e 46 0f 00 0a 20 20 20 20 20 20
extensions: 01
checksum: 83

Manufacturer: SNY Model 2403 Serial Number 16843009
Made week 1 of 2013
EDID version: 1.3
Digital display
Maximum image size: 144 cm x 81 cm
Gamma: 2.20
Supported color formats: RGB 4:4:4, YCrCb 4:2:2
First detailed timing is preferred timing
Established timings supported:
640x480@60Hz
800x600@60Hz
1024x768@60Hz
Standard timings supported:
1280x1024@60Hz
Detailed mode: Clock 148.500 MHz, 1439 mm x 809 mm
1920 2008 2052 2200 hborder 0
1080 1084 1089 1125 vborder 0
+hsync +vsync
Detailed mode: Clock 74.250 MHz, 1439 mm x 809 mm
1280 1390 1430 1650 hborder 0
720 725 730 750 vborder 0
+hsync +vsync
Monitor name: SONY TV *07
Monitor ranges: 48-62HZ vertical, 14-70kHz horizontal, max dotclock 150MHz
Has 1 extension blocks
Checksum: 0x83

CEA extension block
Extension version: 3
63 bytes of CEA data
Video data block
VIC 31
VIC 16
VIC 20
VIC 05
VIC 19
VIC 04
VIC 32
VIC 34
VIC 60
VIC 62
VIC 18
VIC 22
VIC 03
VIC 07
VIC 17
VIC 21
VIC 02
VIC 06
Audio data block
Speaker allocation data block
Vendor-specific data block, OUI 000c03 (HDMI)
Source physical address 3.0.0.0
Supports_AI
DC_36bit
DC_30bit
DC_Y444
Maximum TMDS clock: 300MHz
Extended tag: video capability data block
Extended tag: Colorimetry data block
Underscans PC formats by default
Basic audio support
Supports YCbCr 4:4:4
Supports YCbCr 4:2:2
0 native detailed modes
Detailed mode: Clock 148.500 MHz, 1439 mm x 809 mm
1920 2448 2492 2640 hborder 0
1080 1084 1089 1125 vborder 0
+hsync +vsync
Detailed mode: Clock 74.250 MHz, 1439 mm x 809 mm
1280 1720 1760 1980 hborder 0
720 725 730 750 vborder 0
+hsync +vsync
Detailed mode: Clock 74.250 MHz, 1439 mm x 809 mm
1920 2448 2492 2640 hborder 0
540 542 547 562 vborder 0
+hsync +vsync interlaced
Checksum: 0x12

edid-sony.bin is taken from the nvidia control panel in linux.

The DVI port says max 330 Mhz but the HDMI says max 165 Mhz (not enough for 4K)

[ 5247.702] (–) NVIDIA(0): DFP-0: 330.0 MHz maximum pixel clock
[ 5247.702] (–) NVIDIA(0): DFP-0: Internal Single Link TMDS
[ 5247.702] (–) NVIDIA(0): SONY TV *07 (DFP-1): 165.0 MHz maximum pixel clock
[ 5247.702] (–) NVIDIA(0): SONY TV *07 (DFP-1): Internal Single Link TMDS

Is this a bug with the TV reporting via EDID incorrect information (ie I should report to Sony) or the Nvidia Driver? If EDID reports wrong how does window know to support it?

I got it working…

I swapped the DVI and the HDMI ports around.

[ 760.896] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 760.898] (–) NVIDIA(0): Valid display device(s) on GeForce GTX TITAN at PCI:4:0:0
[ 760.898] (–) NVIDIA(0): CRT-0
[ 760.898] (–) NVIDIA(0): DFP-0
[ 760.898] (–) NVIDIA(0): Ancor Communications Inc VS278 (DFP-1) (boot, connected)
[ 760.898] (–) NVIDIA(0): DFP-2
[ 760.898] (–) NVIDIA(0): SONY TV *07 (DFP-3) (connected)
[ 760.898] (–) NVIDIA(0): DFP-4
[ 760.898] (–) NVIDIA(0): CRT-0: 400.0 MHz maximum pixel clock
[ 760.898] (–) NVIDIA(0): DFP-0: 330.0 MHz maximum pixel clock
[ 760.898] (–) NVIDIA(0): DFP-0: Internal Single Link TMDS
[ 760.898] (–) NVIDIA(0): Ancor Communications Inc VS278 (DFP-1): 165.0 MHz maximum pixel clock
[ 760.898] (–) NVIDIA(0): Ancor Communications Inc VS278 (DFP-1): Internal Single Link TMDS
[ 760.898] (–) NVIDIA(0): DFP-2: 165.0 MHz maximum pixel clock
[ 760.898] (–) NVIDIA(0): DFP-2: Internal Single Link TMDS
[ 760.898] (–) NVIDIA(0): SONY TV *07 (DFP-3): 330.0 MHz maximum pixel clock
[ 760.898] (–) NVIDIA(0): SONY TV *07 (DFP-3): Internal Dual Link TMDS
[ 760.898] (–) NVIDIA(0): DFP-4: 960.0 MHz maximum pixel clock
[ 760.898] (–) NVIDIA(0): DFP-4: Internal DisplayPort

And now I can choose the 4K display settings…

Should the HDMI ports only go to 165 Mhz and DVI goes to 330 Mhz?
Under Windows I can do 4K via the HDMI perfectly well…

Look at this thread: Fix your drivers nvidia. HDMI > 165 Mhz BROKEN! - Linux - NVIDIA Developer Forums

Still doesn’t explain why the HDMI is limited to 165 Mhz and won’t allow (without entering lots of options) 4K output over the HDMI. the Nvidia Windows Drivers has no trouble doing 4K over HDMI Port.

I believe it’s an artificial limitation of the driver. I don’t believe the other author of the thread tried it, but this might be of use:

Nividia created 4k support in their 319.23 drivers and newer but it isn’t proper. The HDMI port should be capable of 340 Mhz and the driver will do this perfectly stable (on my 50 inch seiki) but unfortunately the driver still reports back that the max pixelclock of the display is only 165 Mhz so you have to use some modeline verification overrides to make it work. At the very least I would use these:

Option “ModeValidation” “AllowNon60hzmodesDFPModes, NoEDIDDFPMaxSizeCheck, NoVertRefreshCheck, NoHorizSyncCheck, NoDFPNativeResolutionCheck, NoMaxSizeCheck, NoMaxPClkCheck”

This insures that none of the EDID settings on the monitor will prevent a 4k mode from being used as well as the max pixel clock being reported by the driver which is totally wrong which nvidia has not fixed and to allow non 60Hz modes to be used (for 24hz, 30hz, etc…)

You still will have to use the modevalidation overrides even with that patch. Nothing is going to change that.

At least (at the moment) 4K out of the Box without the options/modeline addition via the DVI port works 100%

Now to wait until my Sony gets its HDMI 2.0 upgrade at the end of the year and then of course wait until someone puts out a new graphics cards which does HDMI 2.0

Since when do these TV’s have a DVI port?

I have a DVI → HDMI Cable

I don’t see how this worked at all without halving the horizontal (or was it vertical?). You need ~300 Mhz of pixelclock to run 3840x2160@30Hz. On DVI anything over 165 Mhz uses dual-link DVI it uses dual TMDS not single like HDMI (HDMI is only ever single TMDS even @ 300Mhz).

I wouldn’t be surprised if you got a picture but it would not be correct. I know my seiki will display a picture using a DVI → HDMI adapter but it will just be like 1920x2160 or some weird resolution where your losing half the resolution and text looks like crap.

The only way to drive these monitors at their full resolution/refresh rate is with a native HDMI port or display port → HDMI adapter, usually active only (which is what I had to use on windows funny enough).

Now I was able to do 17Hz just fine using a DVI → HDMI adapter.

Whilst Connected via DVI->HDMI Cable

[ 760.898] (–) NVIDIA(0): SONY TV *07 (DFP-3): 330.0 MHz maximum pixel clock
[ 760.898] (–) NVIDIA(0): SONY TV *07 (DFP-3): Internal Dual Link TMDS

And the NVIDIA control panel allows you to choose the 4K resolutions (same ones as windows)

It is a DVI Duallink to HDMI Cable. The TV reports it at the correct resolution and what is displayed is fine…

Just did a couple of tests…

when playing video (vlc/mplayer etc) I get quite alot of banding when lots of movement whilst playing on the Sony TV.

I do have a HDBaseT extender in between but I don’t think thats causes the problems as HDBaseT should support 4K 30 fps perfectly well and in windows via the same HDBAseT I have no problems.

I’ll swap over to the HDMI and add the “hacks” in so I can get 4K over HDMI and see if that works.

The banding was really tearing (used wrong words)

Resolved (at least in mplayer) via my post in