HDMI issue - question for WayneWWW...

In this log,

[    2.145266] tegra-i2c 3190000.i2c: no acknowledge from address 0x50

This is shown even if no monitor is attached.
Also,

[  560.911147] tegradc 15210000.nvdisplay: hdmi: plugged

This line proves that HPD should work… Is there any further kernel log after this line?

I suggest to move to rel28.2 DP for checking if this one is sw issue. This is the fastest way…
Even if I take this error log back to internal team for debug, they will also ask you to try it on devkit and latest BSP first.

Also, source code in X11 driver is not released, so I cannot give it out here.

There are no kernel messages after that line except for a single line message from mcp251x driver:

root@tx2:~# dmesg | tail
[ 3846.825035] PD DISP1 index3 DOWN
[ 3846.828698] PD DISP0 index2 DOWN
[ 3846.847208] PD DISP0 index2 UP
[ 3846.851077] PD DISP1 index3 UP
[ 3846.854285] PD DISP2 index4 UP
[ 3846.857607] PD DISP2 index4 DOWN
[ 3846.860987] PD DISP1 index3 DOWN
[ 3846.864375] PD DISP0 index2 DOWN
[ 3846.881010] tegradc 15210000.nvdisplay: hdmi: plugged
[31579.669965] CAN device driver interface
root@tx2:~#

Moving to rel28.2 DP - do you mean just the kernel alone or everything including X11? I can compile the kernel from 28.2 DP assuming the kernel source code was published by nvidia, but complete reflash of TX2 module is not an option for me…
-albertr

You could try to update kernel alone first.

Just replace the Image you build from 28.2 DP into /boot/Image and reboot. (Remember to backup the old image…)

Instead of building from source,
another way is download full BSP through Jetpack and copy the Image from /Linux_for_tegra/rootfs/boot/Image

Ok, I fetched the kernel sources from L4T 28.2 DP, compiled it and booted up the new kernel.
There’s no change in behavior (it still fails) , but there’re some new messages logged by the kernel during failures, please see below.

  1. Unplugging the monitor, current terminal is vt7 (X11):
[   41.573864] PD DISP2 index4 DOWN
[   41.577234] PD 530] tegradc 15210000.nvdisplay: hdmi: unplugg914] tegradc 15210000.nvdisplay: unblank
[   41.675315] tegradc 15210000.nvdisplay: blank - powerdown
  1. Plugging the monitor back, monitor says “No HDMI signal” (the same as with the older kernel):
[   52.735267] tegradc 15210000.nvdisplay: blank - powerdown
[   52.740903] tegradc 15210000.nvdisplay: hdmi: plugged
[   52.805687] tegradc 15210000.nvdisplay: blank - powerdown

Not sure why it does “blank - powerdown” after plug event detected?

  1. At this point there’s no video signal on the monitor, terminal is vt7 (X11). Switching from vt7 to vt1 via Alt-Ctrl-F1:
[   69.254747] tegradc 15210000.nvdisplay: blank - powerdown
[   69.375253] tegradc 15210000.nvdisplay: unblank
[   69.375281] PD DISP0 index2 UP
[   69.376792] PD DISP1 index3 UP
[   69.376922] PD DISP2 index4 UP
[   69.379450] Parent Clock set for DC plld2
[   69.383279] tegradc 15210000.nvdisplay: hdmi: pclk:138652K, set prod-setting:prod_c_150M

Monitor gets video signal @ 1080p (the same behavior as with the older kernel).

  1. Switching from vt1 back to vt7 (X11) via Atl-Ctrl-F7:
[   81.130202] V_SYNC_WIDTH >= 1; H_SYNC_WIDTisplay: can't configure dc with mode 7504x5
[   81.130246] detected fb_set_par error, error code: -22
[   81.175180] tegradc 15210000.nvdisplay: blank - powerdown

No video signal on the monitor again (the same as with the older kernel).

So, the L4T 28.2 DP kernel has the same problem as the older kernel from L4T 28.1 release, but produced some additional interesting error messages… WayneWWW, what do you think?

-albertr

I also tried L4T 28.1 kernel with the following patches applied:

  1. jachen’s patch for drivers/video/tegra/fb.c from this post:

[url]Switching to tty1-6 - Jetson TX1 - NVIDIA Developer Forums

  1. pnewmanCTI’s patch for /display/drivers/video/tegra/dc/hdmi2.0.c from the following post:

[url]HDMI connected = boot issue - Jetson TX2 - NVIDIA Developer Forums

but unfortunately they didn’t help to resolve this issue.

-albertr

Well, I ran the same test with 28.2 DP kernel and LG 4K UHD monitor:

  1. Boot up TX2 with monitor attached.
  2. Unplug HDMI cable.
  3. Plug HDMI cable.
    (observe that video signal is lost)
  4. Switch from vt7 (X11) to vt1.
    (observe that video signal came back)
  5. Switch from vt1 back to vt7 (X11).
    (observe that video signal is lost again)

So, it looks like this test proves that it’s not a specific monitor issue?
Attached please see dmesg & Xorg.0.log log files.

-albertr
dmesg.gz (17.7 KB)
Xorg.0.log.gz (21.9 KB)

Found one interesting thing… in all the previous tests I was unplugging the monitor when vt7 (X11) was the active terminal.
However, I just tried to unplug/replug the monitor again when vt1 was the active terminal, and the monitor didn’t lose HDMI signal. So it looks like the problem is only when vt7 (X11) is the active terminal. Very interesting… possible issue with X11 video driver?

Attached are dmesg & Xorg.0.log files from the last test. Issue was not observed when monitor was unplugged while vt1 was the active terminal.

-albertr
dmesg.gz (18.3 KB)
Xorg.0.log.gz (13.2 KB)

It seems that the hot plug mechanism only propagates notice of change to the console when already in console. If already in GUI, then the change is properly constructed. Console mode is catching the event and not rethrowing it to GUI.

I had to to switch back to 28.1 kernel with patches I had, since 28.2 DP kernel was crashing in shutdown trying to disable tty1 systemd service.
And I have ran another test.
This time after fresh boot, I did:

  1. Switch from vt7 (x11) to vt1.
  2. Unplug the monitor.
  3. Switch from vt1 back to vt7 (X11)
  4. Replug the monitor.

Observed the issue of HDMI video signal lost.
Logs are attached.

-albertr
dmesg.gz (17.6 KB)
Xorg.0.log.gz (22.7 KB)

And the last test this time… on a freshly booted system.

  1. In vt7(X11) unplug the monitor.
    (observe HDMI video signal lost)
  2. Switch from vt7 (X11) to vt1. Plug the monitor.
    (observe HDMI signal came back)
  3. Switch from vt1 back to vt7 (X11)
    (once again observe HDMI signal lost).

Logs are attached…

-albertr

dmesg.gz (17.4 KB)
Xorg.0.log.gz (22.3 KB)

linuxdev, I have the similar feeling. It looks like HDMI hotplug events are getting processed correctly only when in framebuffer mode. If X11 gets involved (for either plug or unplug event), X11 video driver gets confused and set the video mode to “NULL”. After that it never recovers, but framebuffer works fine. WayneWWW, what do you think?

-albertr

Also, with LG 4K UHD monitor I’m no longer seeing i2c errors logged for address 0x50 anymore, like the the ones before:

tegra-i2c 3160000.i2c: no acknowledge fro acknowledge from address 0x50
tegra-i2c 3190000.i2c: i2c transfer timed out addr: 0x50

Here’re the snippet showing initial monitor detection during kernel bootup:

[    2.131916] tegradc 15210000.nvdisplay: DT parsed successfully
[    2.131944] tegradc 15210000.nvdisplay: Display dc.ffffff8002560000 registered with id=0
[    2.137098] tegra_nvdisp_bandwidth_register_max_config: max config iso bw = 16727000 KB/s
[    2.137102] tegra_nvdisp_bandwidth_register_max_config: max config EMC floor = 665600000 Hz
[    2.137116] tegra_nvdisp_bandwidth_register_max_config: max config hubclk = 357620000 Hz
[    2.137174] tegradc 15210000.nvdisplay: vblank syncpt # 7 for dc 1
[    2.137180] tegradc 15210000.nvdisplay: vpulse3 syncpt # 8 for dc 1
[    2.137564] hdmi: couldn't get regulator vdd_hdmi_5v0: -517
[    2.139684] tegradc 15210000.nvdisplay: hdmi: no prod_list_hdmi_board, use default range
[    2.139689] PD DISP0 index2 UP
[    2.140690] PD DISP1 index3 UP
[    2.140890] PD DISP2 index4 UP
[    2.167624] PD DISP2 index4 DOWN
[    2.167777] PD DISP1 index3 DOWN
[    2.167919] PD DISP0 index2 DOWN
[    2.169762] tegradc 15210000.nvdisplay: probed
[    2.265784] Console: switching to colour frame buffer device 480x135
[    2.303820] tegradc 15210000.nvdisplay: fb registered
[    2.303987] gpio tegra-gpio wake21 for gpio=121(P:1)
[    2.304025] PD DISP0 index2 UP
[    2.325045] PD DISP1 index3 UP
[    2.325242] PD DISP2 index4 UP
[    2.334050] Parent Clock set for DC plld2
[    2.337465] tegradc 15210000.nvdisplay: hdmi: pclk:297000K, set prod-setting:prod_c_300M
[    2.368697] console [ttyS0] enabled

Here’s the EDID from this monitor:

root@tx2:~# cat `find /sys -name edid`
 00 ff ff ff ff ff ff 00 1e 6d 08 5b b3 9a 01 00
 05 1b 01 03 80 3c 22 78 ea 30 35 a7 55 4e a3 26
 0f 50 54 21 08 00 71 40 81 80 81 c0 a9 c0 d1 c0
 81 00 01 01 01 01 04 74 00 30 f2 70 5a 80 b0 58
 8a 00 58 54 21 00 00 1e 56 5e 00 a0 a0 a0 29 50
 30 20 35 00 58 54 21 00 00 1a 00 00 00 fd 00 38
 3d 1e 87 1e 00 0a 20 20 20 20 20 20 00 00 00 fc
 00 4c 47 20 55 6c 74 72 61 20 48 44 0a 20 01 39
 02 03 1d 71 46 90 22 05 04 03 01 23 09 07 07 6d
 03 0c 00 10 00 b8 3c 20 00 60 01 02 03 02 3a 80
 18 71 38 2d 40 58 2c 45 00 58 54 21 00 00 1e 00
 00 00 ff 00 37 30 35 4e 54 43 5a 33 33 31 33 39
 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a3
root@tx2:~#

-albertr

Swapped TX2 module back to DevKit board and I’m observing the same issue with DevKit board as well.

Standard test:

  1. Boot up the system. Current terminal is vt7 (X11).
    (Observe the HDMI signal present and displayed by the monitor).
[   25.618061] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   26.898031] PD DISP2 index4 DOWN
[   26.898248] PD DISP1 index3 DOWN
[   26.898342] PD DISP0 index2 DOWN
[   26.909013] PD DISP0 index2 UP
[   26.910013] PD DISP1 index3 UP
[   26.910115] PD DISP2 index4 UP
[   26.911773] Parent Clock set for DC plld2
[   26.913329] tegradc 15210000.nvdisplay: hdmi: pclk:297000K, set prod-setting:prod_c_300M
[   28.527467] eqos 2490000.ether_qos eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   28.528508] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.655393] PD DISP2 index4 DOWN
[   28.655541] PD DISP1 index3 DOWN
[   28.655615] PD DISP0 index2 DOWN
[   28.689516] PD DISP0 index2 UP
[   28.690431] PD DISP1 index3 UP
[   28.690527] PD DISP2 index4 UP
[   28.692179] Parent Clock set for DC plld2
[   28.693824] tegradc 15210000.nvdisplay: hdmi: pclk:297000K, set prod-setting:prod_c_300M
[   30.862359] gk20a 17000000.gp10b: railgate is disabled.
[   31.106563] PD DISP2 index4 DOWN
[   31.106730] PD DISP1 index3 DOWN
[   31.106809] PD DISP0 index2 DOWN
[   31.117317] PD DISP0 index2 UP
[   31.118186] PD DISP1 index3 UP
[   31.118265] PD DISP2 index4 UP
[   31.119759] Parent Clock set for DC plld2
[   31.121187] tegradc 15210000.nvdisplay: hdmi: pclk:297000K, set prod-setting:prod_c_300M
[   37.779348] fuse init (API version 7.23)
[   38.032100] PD DISP2 index4 DOWN
[   38.032300] PD DISP1 index3 DOWN
[   38.032402] PD DISP0 index2 DOWN
[   38.057130] PD DISP0 index2 UP
[   38.058094] PD DISP1 index3 UP
[   38.058191] PD DISP2 index4 UP
[   38.059850] Parent Clock set for DC plld2
[   38.063406] tegradc 15210000.nvdisplay: hdmi: pclk:148500K, set prod-setting:prod_c_150M
[   39.773331] usb 1-2: reset high-speed USB device number 3 using xhci-tegra
  1. Unplug HDMI cable.
    (Observe the HDMI signal is lost).
[  181.288799] PD DISP2 index4 DOWN
[  181.292208] PD DISP1 index3 DOWN
[  181.295663] PD DISP0 index2 DOWN
[  181.299653] tegradc 15210000.nvdisplay: hdmi: unplugged
  1. Plug the HDMI cable back.
    (Observe the HDMI signal is still lost).
[  209.528518] PD DISP0 index2 UP
[  209.539356] PD DISP1 index3 UP
[  209.543486] PD DISP2 index4 UP
[  209.549052] PD DISP2 index4 DOWN
[  209.553672] PD DISP1 index3 DOWN
[  209.557557] PD DISP0 index2 DOWN
[  209.581160] PD DISP0 index2 UP
[  209.587995] PD DISP1 index3 UP
[  209.591750] PD DISP2 index4 UP
[  209.597144] PD DISP2 index4 DOWN
[  209.601422] PD DISP1 index3 DOWN
[  209.605428] PD DISP0 index2 DOWN
[  209.632902] tegradc 15210000.nvdisplay: hdmi: plugged

Full dmesg and Xorg.0.log files are attached.

-albertr

dmesg.gz (17.6 KB)
Xorg.0.log.gz (22 KB)

Noticed that if due to inactivity monitor goes into power saving mode and shuts down, it cannot get HDMI signal back upon wake up. Look like the same issue - instead of plugging/unpligging HDMI cable, I can just wait for monitor to power off due to inactivity.

Here’s snippets from Xorg.0.log:

  1. System booted up:
...
[    26.219] (**) Option "config_info" "udev:/sys/devices/sound/sound/card1/input2/event2"
[    26.219] (II) XINPUT: Adding extended input device "tegra-snd-t186ref-mobile-rt565x Headphone Jack" (type: KEYBOARD, id 12)
[    26.219] (**) Option "xkb_rules" "evdev"
[    26.219] (**) Option "xkb_model" "pc105"
[    26.219] (**) Option "xkb_layout" "us"
[    31.050] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[    31.051] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[    31.051] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[    31.051] (--) NVIDIA(GPU-0):   DFP
[    31.051] (--) NVIDIA(GPU-0):   DFP-0
[    31.051] (--) NVIDIA(GPU-0):   DPY-0
[    31.051] (--) NVIDIA(GPU-0):   HDMI-0
[    31.051] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[    31.051] (--) NVIDIA(GPU-0):   HDMI-0
[    31.154] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[    31.154] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[    31.154] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[    31.154] (--) NVIDIA(GPU-0):   DFP
[    31.154] (--) NVIDIA(GPU-0):   DFP-0
[    31.154] (--) NVIDIA(GPU-0):   DPY-0
[    31.154] (--) NVIDIA(GPU-0):   HDMI-0
[    31.154] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[    31.154] (--) NVIDIA(GPU-0):   HDMI-0
[    31.321] (II) NVIDIA(0): Setting mode "NULL"
[    31.512] (II) NVIDIA(0): Setting mode "HDMI-0: 1920x1080 @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}"
[    32.625] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[    32.625] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[    32.625] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[    32.625] (--) NVIDIA(GPU-0):   DFP
[    32.625] (--) NVIDIA(GPU-0):   DFP-0
[    32.625] (--) NVIDIA(GPU-0):   DPY-0
[    32.625] (--) NVIDIA(GPU-0):   HDMI-0
[    32.625] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[    32.625] (--) NVIDIA(GPU-0):   HDMI-0
[    32.637] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[    32.637] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[    32.637] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[    32.637] (--) NVIDIA(GPU-0):   DFP
[    32.637] (--) NVIDIA(GPU-0):   DFP-0
[    32.637] (--) NVIDIA(GPU-0):   DPY-0
[    32.637] (--) NVIDIA(GPU-0):   HDMI-0
[    32.637] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[    32.637] (--) NVIDIA(GPU-0):   HDMI-0
[    32.638] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[    32.639] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[    32.639] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[    32.639] (--) NVIDIA(GPU-0):   DFP
[    32.639] (--) NVIDIA(GPU-0):   DFP-0
[    32.639] (--) NVIDIA(GPU-0):   DPY-0
[    32.639] (--) NVIDIA(GPU-0):   HDMI-0
[    32.639] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[    32.639] (--) NVIDIA(GPU-0):   HDMI-0
[    32.829] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[    32.829] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[    32.829] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[    32.829] (--) NVIDIA(GPU-0):   DFP
[    32.829] (--) NVIDIA(GPU-0):   DFP-0
[    32.829] (--) NVIDIA(GPU-0):   DPY-0
[    32.829] (--) NVIDIA(GPU-0):   HDMI-0
[    32.829] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[    32.829] (--) NVIDIA(GPU-0):   HDMI-0
[    32.830] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[    32.830] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[    32.830] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[    32.830] (--) NVIDIA(GPU-0):   DFP
[    32.830] (--) NVIDIA(GPU-0):   DFP-0
[    32.830] (--) NVIDIA(GPU-0):   DPY-0
[    32.830] (--) NVIDIA(GPU-0):   HDMI-0
[    32.830] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[    32.830] (--) NVIDIA(GPU-0):   HDMI-0
  1. Wakeup event after sleep:
[  3834.240] (II) NVIDIA(0): Setting mode "HDMI-0: 1920x1080 @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}"
[  3836.833] (II) NVIDIA(0): Setting mode "HDMI-0: 1920x1080 @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}"
[  3836.867] (EE) NVIDIA(0): Failed to set the display configuration.
[  3836.902] (II) NVIDIA(0): Setting mode "NULL"
[  3837.040] (II) NVIDIA(GPU-0): 
[  3837.041] (II) NVIDIA(GPU-0): --- Building ModePool for LG Electronics LG Ultra HD (DFP-0)
[  3837.041] (II) NVIDIA(GPU-0):     ---
[  3837.046] (II) NVIDIA(GPU-0):   Validating Mode "3840x2160_30":
[  3837.046] (II) NVIDIA(GPU-0):     Mode Sources: NVIDIA Predefined, EDID, CEA, Detailed
[  3837.046] (II) NVIDIA(GPU-0):     3840 x 2160 @ 30 Hz
[  3837.046] (II) NVIDIA(GPU-0):       Pixel Clock      : 297.00 MHz
[  3837.046] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 3840, 4016
[  3837.046] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 4104, 4400
[  3837.046] (II) NVIDIA(GPU-0):       VRes, VSyncStart : 2160, 2168
[  3837.046] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal : 2178, 2250
[  3837.046] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.046] (II) NVIDIA(GPU-0):     Mode "3840x2160_30" is valid.
[  3837.046] (II) NVIDIA(GPU-0): 
[  3837.046] (II) NVIDIA(GPU-0):   Validating Mode "3840x2160_30":
[  3837.046] (II) NVIDIA(GPU-0):     Mode Sources: NVIDIA Predefined, EDID, CEA, Detailed
[  3837.046] (II) NVIDIA(GPU-0):     3840 x 2160 @ 30 Hz
[  3837.046] (II) NVIDIA(GPU-0):       Pixel Clock      : 297.00 MHz
[  3837.046] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 3840, 4016
[  3837.046] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 4104, 4400
[  3837.046] (II) NVIDIA(GPU-0):       VRes, VSyncStart : 2160, 2168
[  3837.046] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal : 2178, 2250
[  3837.046] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.046] (II) NVIDIA(GPU-0):     Mode "3840x2160_30" is valid.
[  3837.046] (II) NVIDIA(GPU-0): 
[  3837.046] (II) NVIDIA(GPU-0):   Validating Mode "2560x1440_60":
[  3837.047] (II) NVIDIA(GPU-0):     Mode Sources: NVIDIA Predefined, EDID, Detailed
[  3837.047] (II) NVIDIA(GPU-0):     2560 x 1440 @ 60 Hz
[  3837.047] (II) NVIDIA(GPU-0):       Pixel Clock      : 241.54 MHz
[  3837.047] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 2560, 2608
[  3837.047] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 2640, 2720
[  3837.047] (II) NVIDIA(GPU-0):       VRes, VSyncStart : 1440, 1443
[  3837.047] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal : 1448, 1481
[  3837.047] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.047] (II) NVIDIA(GPU-0):     Mode "2560x1440_60" is valid.
[  3837.047] (II) NVIDIA(GPU-0): 
[  3837.047] (II) NVIDIA(GPU-0):   Validating Mode "640x480_60":
[  3837.047] (II) NVIDIA(GPU-0):     Mode Source: NVIDIA Predefined
[  3837.047] (II) NVIDIA(GPU-0):     640 x 480 @ 60 Hz
[  3837.047] (II) NVIDIA(GPU-0):       Pixel Clock      : 25.17 MHz
[  3837.047] (II) NVIDIA(GPU-0):       HRes, HSyncStart :  640,  656
[  3837.047] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal :  752,  800
[  3837.047] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  480,  490
[  3837.047] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  492,  525
[  3837.047] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.047] (II) NVIDIA(GPU-0):     Mode "640x480_60" is valid.
[  3837.047] (II) NVIDIA(GPU-0): 
[  3837.047] (II) NVIDIA(GPU-0):   Validating Mode "800x600_60":
[  3837.047] (II) NVIDIA(GPU-0):     Mode Source: NVIDIA Predefined
[  3837.047] (II) NVIDIA(GPU-0):     800 x 600 @ 60 Hz
[  3837.047] (II) NVIDIA(GPU-0):       Pixel Clock      : 40.00 MHz
[  3837.047] (II) NVIDIA(GPU-0):       HRes, HSyncStart :  800,  840
[  3837.047] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal :  968, 1056
[  3837.047] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  600,  602
[  3837.047] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  606,  628
[  3837.047] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.047] (II) NVIDIA(GPU-0):     Mode "800x600_60" is valid.
[  3837.047] (II) NVIDIA(GPU-0): 
[  3837.047] (II) NVIDIA(GPU-0):   Validating Mode "1024x768_60":
[  3837.047] (II) NVIDIA(GPU-0):     Mode Source: NVIDIA Predefined
[  3837.047] (II) NVIDIA(GPU-0):     1024 x 768 @ 60 Hz
[  3837.047] (II) NVIDIA(GPU-0):       Pixel Clock      : 65.00 MHz
[  3837.047] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1024, 1048
[  3837.047] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 1184, 1344
[  3837.047] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  768,  771
[  3837.048] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  777,  806
[  3837.048] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.048] (II) NVIDIA(GPU-0):     Mode "1024x768_60" is valid.
[  3837.048] (II) NVIDIA(GPU-0): 
[  3837.048] (II) NVIDIA(GPU-0):   Validating Mode "1152x864_60":
[  3837.048] (II) NVIDIA(GPU-0):     Mode Source: NVIDIA Predefined
[  3837.048] (II) NVIDIA(GPU-0):     1152 x 864 @ 60 Hz
[  3837.048] (II) NVIDIA(GPU-0):       Pixel Clock      : 81.80 MHz
[  3837.048] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1152, 1217
[  3837.048] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 1338, 1524
[  3837.048] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  864,  866
[  3837.048] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  869,  895
[  3837.048] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.048] (II) NVIDIA(GPU-0):     Mode "1152x864_60" is valid.
[  3837.048] (II) NVIDIA(GPU-0): 
[  3837.048] (II) NVIDIA(GPU-0):   Validating Mode "1280x1024_60":
[  3837.048] (II) NVIDIA(GPU-0):     Mode Source: NVIDIA Predefined
[  3837.048] (II) NVIDIA(GPU-0):     1280 x 1024 @ 60 Hz
[  3837.048] (II) NVIDIA(GPU-0):       Pixel Clock      : 107.97 MHz
[  3837.048] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1280, 1328
[  3837.048] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 1440, 1688
[  3837.048] (II) NVIDIA(GPU-0):       VRes, VSyncStart : 1024, 1026
[  3837.048] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal : 1029, 1066
[  3837.048] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.048] (II) NVIDIA(GPU-0):     Mode "1280x1024_60" is valid.
[  3837.048] (II) NVIDIA(GPU-0): 
[  3837.048] (II) NVIDIA(GPU-0):   Validating Mode "1280x720_60":
[  3837.048] (II) NVIDIA(GPU-0):     Mode Source: NVIDIA Predefined
[  3837.048] (II) NVIDIA(GPU-0):     1280 x 720 @ 60 Hz
[  3837.048] (II) NVIDIA(GPU-0):       Pixel Clock      : 74.25 MHz
[  3837.048] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1280, 1390
[  3837.049] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 1430, 1650
[  3837.049] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  720,  725
[  3837.049] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  730,  750
[  3837.049] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.049] (II) NVIDIA(GPU-0):     Mode "1280x720_60" is valid.
[  3837.049] (II) NVIDIA(GPU-0): 
[  3837.049] (II) NVIDIA(GPU-0):   Validating Mode "1600x900_60":
[  3837.049] (II) NVIDIA(GPU-0):     Mode Source: NVIDIA Predefined
[  3837.049] (II) NVIDIA(GPU-0):     1600 x 900 @ 60 Hz
[  3837.049] (II) NVIDIA(GPU-0):       Pixel Clock      : 108.00 MHz
[  3837.049] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1600, 1624
[  3837.049] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 1704, 1800
[  3837.049] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  900,  902
[  3837.049] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  905, 1000
[  3837.049] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.049] (II) NVIDIA(GPU-0):     Mode "1600x900_60" is valid.
[  3837.049] (II) NVIDIA(GPU-0): 
[  3837.049] (II) NVIDIA(GPU-0):   Validating Mode "1920x1080_60":
[  3837.049] (II) NVIDIA(GPU-0):     Mode Source: NVIDIA Predefined
[  3837.049] (II) NVIDIA(GPU-0):     1920 x 1080 @ 60 Hz
[  3837.049] (II) NVIDIA(GPU-0):       Pixel Clock      : 148.50 MHz
[  3837.049] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1920, 2008
[  3837.049] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 2052, 2200
[  3837.049] (II) NVIDIA(GPU-0):       VRes, VSyncStart : 1080, 1084
[  3837.049] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal : 1089, 1125
[  3837.049] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.049] (II) NVIDIA(GPU-0):     Mode "1920x1080_60" is valid.
[  3837.049] (II) NVIDIA(GPU-0): 
[  3837.049] (II) NVIDIA(GPU-0):   Validating Mode "1280x800_60":
[  3837.049] (II) NVIDIA(GPU-0):     Mode Source: NVIDIA Predefined
[  3837.049] (II) NVIDIA(GPU-0):     1280 x 800 @ 60 Hz
[  3837.049] (II) NVIDIA(GPU-0):       Pixel Clock      : 83.50 MHz
[  3837.049] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1280, 1352
[  3837.049] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 1480, 1680
[  3837.049] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  800,  803
[  3837.049] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  809,  831
[  3837.049] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.049] (II) NVIDIA(GPU-0):     Mode "1280x800_60" is valid.
[  3837.050] (II) NVIDIA(GPU-0): 
[  3837.050] (II) NVIDIA(GPU-0):   Validating Mode "1920x1080_60":
[  3837.050] (II) NVIDIA(GPU-0):     Mode Sources: NVIDIA Predefined, EDID, CEA, Detailed
[  3837.050] (II) NVIDIA(GPU-0):     1920 x 1080 @ 60 Hz
[  3837.050] (II) NVIDIA(GPU-0):       Pixel Clock      : 148.50 MHz
[  3837.050] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1920, 2008
[  3837.050] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 2052, 2200
[  3837.050] (II) NVIDIA(GPU-0):       VRes, VSyncStart : 1080, 1084
[  3837.050] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal : 1089, 1125
[  3837.050] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.050] (II) NVIDIA(GPU-0):     Mode "1920x1080_60" is valid.
[  3837.050] (II) NVIDIA(GPU-0): 
[  3837.050] (II) NVIDIA(GPU-0):   Validating Mode "1920x1080_60":
[  3837.050] (II) NVIDIA(GPU-0):     Mode Sources: NVIDIA Predefined, EDID, CEA
[  3837.050] (II) NVIDIA(GPU-0):     1920 x 1080 @ 60 Hz
[  3837.050] (II) NVIDIA(GPU-0):       Pixel Clock      : 148.50 MHz
[  3837.050] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1920, 2008
[  3837.050] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 2052, 2200
[  3837.050] (II) NVIDIA(GPU-0):       VRes, VSyncStart : 1080, 1084
[  3837.050] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal : 1089, 1125
[  3837.050] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.050] (II) NVIDIA(GPU-0):     Mode "1920x1080_60" is valid.
[  3837.050] (II) NVIDIA(GPU-0): 
[  3837.050] (II) NVIDIA(GPU-0):   Validating Mode "1920x1080_30":
[  3837.050] (II) NVIDIA(GPU-0):     Mode Sources: NVIDIA Predefined, EDID, CEA
[  3837.050] (II) NVIDIA(GPU-0):     1920 x 1080 @ 30 Hz
[  3837.050] (II) NVIDIA(GPU-0):       Pixel Clock      : 74.25 MHz
[  3837.050] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1920, 2008
[  3837.051] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 2052, 2200
[  3837.051] (II) NVIDIA(GPU-0):       VRes, VSyncStart : 1080, 1084
[  3837.051] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal : 1089, 1125
[  3837.051] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.051] (II) NVIDIA(GPU-0):     Mode "1920x1080_30" is valid.
[  3837.051] (II) NVIDIA(GPU-0): 
[  3837.051] (WW) NVIDIA(GPU-0):   Validating Mode "1920x1080_61i":
[  3837.051] (WW) NVIDIA(GPU-0):     Mode Sources: NVIDIA Predefined, EDID, CEA
[  3837.051] (WW) NVIDIA(GPU-0):     1920 x 1080 @ 61 Hz
[  3837.051] (WW) NVIDIA(GPU-0):       Pixel Clock      : 74.25 MHz
[  3837.051] (WW) NVIDIA(GPU-0):       HRes, HSyncStart : 1920, 2008
[  3837.051] (WW) NVIDIA(GPU-0):       HSyncEnd, HTotal : 2052, 2200
[  3837.051] (WW) NVIDIA(GPU-0):       VRes, VSyncStart : 1080, 1082
[  3837.051] (WW) NVIDIA(GPU-0):       VSyncEnd, VTotal : 1087, 1102
[  3837.051] (WW) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.051] (WW) NVIDIA(GPU-0):       Extra            : Interlace
[  3837.051] (WW) NVIDIA(GPU-0):     Mode is rejected: Interlaced mode is unsupported. Unable
[  3837.051] (WW) NVIDIA(GPU-0):     to construct hardware-specific mode timings
[  3837.051] (WW) NVIDIA(GPU-0):     Mode "1920x1080_61i" is invalid.
[  3837.051] (WW) NVIDIA(GPU-0): 
[  3837.051] (II) NVIDIA(GPU-0):   Validating Mode "1280x720_60":
[  3837.051] (II) NVIDIA(GPU-0):     Mode Sources: NVIDIA Predefined, EDID, CEA
[  3837.051] (II) NVIDIA(GPU-0):     1280 x 720 @ 60 Hz
[  3837.051] (II) NVIDIA(GPU-0):       Pixel Clock      : 74.25 MHz
[  3837.051] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1280, 1390
[  3837.051] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 1430, 1650
[  3837.051] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  720,  725
[  3837.051] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  730,  750
[  3837.051] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.051] (II) NVIDIA(GPU-0):     Mode "1280x720_60" is valid.
[  3837.052] (II) NVIDIA(GPU-0): 
[  3837.052] (II) NVIDIA(GPU-0):   Validating Mode "720x480_60":
[  3837.052] (II) NVIDIA(GPU-0):     Mode Sources: NVIDIA Predefined, EDID, CEA
[  3837.052] (II) NVIDIA(GPU-0):     720 x 480 @ 60 Hz
[  3837.052] (II) NVIDIA(GPU-0):       Pixel Clock      : 27.00 MHz
[  3837.052] (II) NVIDIA(GPU-0):       HRes, HSyncStart :  720,  736
[  3837.052] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal :  798,  858
[  3837.052] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  480,  489
[  3837.052] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  495,  525
[  3837.052] (II) NVIDIA(GPU-0):       H/V Polarity     : +/+
[  3837.052] (II) NVIDIA(GPU-0):     Mode "720x480_60" is valid.
[  3837.052] (II) NVIDIA(GPU-0): 
[  3837.052] (II) NVIDIA(GPU-0):   Validating Mode "640x480_60":
[  3837.052] (II) NVIDIA(GPU-0):     Mode Sources: NVIDIA Predefined, EDID, CEA
[  3837.052] (II) NVIDIA(GPU-0):     640 x 480 @ 60 Hz
[  3837.052] (II) NVIDIA(GPU-0):       Pixel Clock      : 25.17 MHz
[  3837.052] (II) NVIDIA(GPU-0):       HRes, HSyncStart :  640,  656
[  3837.052] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal :  752,  800
[  3837.052] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  480,  490
...

Is there any way to enable more verbose logging in X11 video driver to see why it cannot set video mode below?

[  3834.240] (II) NVIDIA(0): Setting mode "HDMI-0: 1920x1080 @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}"
[  3836.833] (II) NVIDIA(0): Setting mode "HDMI-0: 1920x1080 @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}"
[  3836.867] (EE) NVIDIA(0): Failed to set the display configuration.
[  3836.902] (II) NVIDIA(0): Setting mode "NULL"
[  3837.040] (II) NVIDIA(GPU-0):

-albertr

Ok, I think I’m pretty much exhausted all the ideas I had.
Here’s what I’ve tested so far and was able to verify:

  1. Issue happens with two different monitors (all monitors I have), so it doesn’t look to be monitor-specific.
  2. Issue happens with stock L4T 28.1 kernel, with my own kernel (which has some patches applied on top of L4T 28.1 kernel) and with stock L4T 28.2 DP kernel, so it’s not kernel-specific.
  3. Issue happens using different HDMI cables, so it’s not a bad cable.
  4. Issue happens with both Auvidea’s J120 board and with DevKit board and with using different device trees, so it;s not board-specific.

Everything points towards the X11 nvidia video driver, and I would really appreciate if nVidia’s folks who monitor this forum can step in and help. I’m curious if someone else can try to reproduce it on their own TX2 setup: just boot the system into X11 session, then unplug/replug HDMI cable and see if you still getting video signal displayed on the monitor. Am I the only one affected by this?

-albertr

Unplugging/replugging works fine in my case with R28.2-DP.
For reference, here are the kernel logs:

[ 1197.710526] PD DISP2 index4 DOWN
[ 1197.713992] PD DISP1 index3 DOWN
[ 1197.717485] PD DISP0 index2 DOWN
[ 1197.722401] tegradc 15210000.nvdisplay: blank - powerdown
[ 1197.727984] tegradc 15210000.nvdisplay: hdmi: unplugged
[ 1197.735687] tegradc 15210000.nvdisplay: blank - powerdown
[ 1197.741198] tegradc 15210000.nvdisplay: unblank
[ 1197.745805] tegradc 15210000.nvdisplay: unblank
[ 1205.440916] tegradc 15210000.nvdisplay: blank - powerdown
[ 1205.449003] tegradc 15210000.nvdisplay: hdmi: plugged
[ 1205.472746] tegradc 15210000.nvdisplay: blank - powerdown
[ 1205.478377] tegradc 15210000.nvdisplay: unblank
[ 1205.478411] PD DISP0 index2 UP
[ 1205.481728] PD DISP1 index3 UP
[ 1205.485592] PD DISP2 index4 UP
[ 1205.501737] Parent Clock set for DC plld2
[ 1205.506544] tegradc 15210000.nvdisplay: hdmi: pclk:146361K, set prod-setting:prod_c_150M
[ 1206.548529] tegradc 15210000.nvdisplay: unblank
[ 1206.635501] tegradc 15210000.nvdisplay: blank - powerdown
[ 1206.695570] PD DISP2 index4 DOWN
[ 1206.695707] PD DISP1 index3 DOWN
[ 1206.695811] PD DISP0 index2 DOWN
[ 1206.712303] tegradc 15210000.nvdisplay: unblank
[ 1206.712353] PD DISP0 index2 UP
[ 1206.715656] PD DISP1 index3 UP
[ 1206.717612] PD DISP2 index4 UP
[ 1206.723065] Parent Clock set for DC plld2
[ 1206.726903] tegradc 15210000.nvdisplay: hdmi: pclk:146361K, set prod-setting:prod_c_150M
[ 1206.787190] tegradc 15210000.nvdisplay: unblank

Thanks, Honey_Patouceul! You gave me some hope, so I started experimenting again. I was using XFCE4, so switched back to Unity and … bingo! Don’t have this issue anymore when using Unity! So it’s gotta be something XFCE-related? This is rather interesting, and I’ll try to investigate it further.

-albertr

This might be unrelated, but in my case replugging HDMI shows this extra kernel trace when done with boosted clocks:

[17033.603365] tegradc 15210000.nvdisplay: blank - powerdown
[17033.608902] tegradc 15210000.nvdisplay: hdmi: plugged
[17033.617000] tegradc 15210000.nvdisplay: [b]Invalid out_w + out_x (1680) > hActive (720)
                OR/AND out_h + out_y (1050) > vActive (480)
                for WIN 0[/b]
[17033.633966] tegradc 15210000.nvdisplay: blank - powerdown
[17033.639400] tegradc 15210000.nvdisplay: unblank

In my case it works anyway.

I have found that I can use xrand to “fix” video output mode, however it does require switching video mode to some other mode first, if I’ll try to switch straight to “1920x1080”, it fails again (please see attached X log file).

Here’s the list of my modes as reported by xrand:

nvidia@tx2:~$ xrandr
Screen 0: minimum 8 x 8, current 8 x 8, maximum 32767 x 32767
HDMI-0 connected primary (normal left inverted right x axis y axis)
   3840x2160     30.00 +  29.97    25.00    24.00    23.98  
   2560x1440     59.96  
   1920x1080     60.00    59.95    30.00    29.97  
   1600x900      60.00  
   1280x1024     60.00  
   1280x800      59.81  
   1280x720      60.00    59.94  
   1152x864      59.97  
   1024x768      60.01  
   800x600       60.32  
   720x480       59.94  
   640x480       59.94    59.94  
nvidia@tx2:~$
  1. If I do the following:
nvidia@tx2:~$ xrandr --output HDMI-0 --mode 1920x1080

xrand doesn’t report any errors, but X11 fails to switch video output mode (please see attached snippet from X log).

  1. However if I do switch to other mode first, i.e.:
nvidia@tx2:~$ xrandr --output HDMI-0 --mode 3840x2160

X can switch it fine:

[  4880.888] (II) NVIDIA(0): Setting mode "HDMI-0: nvidia-auto-select @3840x2160 +0+0 {ViewPortIn=3840x2160, ViewPortOut=3840x2160+0+0}"
[  4882.084] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[  4882.085] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[  4882.085] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[  4882.085] (--) NVIDIA(GPU-0):   DFP
[  4882.085] (--) NVIDIA(GPU-0):   DFP-0
[  4882.085] (--) NVIDIA(GPU-0):   DPY-0
[  4882.085] (--) NVIDIA(GPU-0):   HDMI-0
[  4882.085] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[  4882.085] (--) NVIDIA(GPU-0):   HDMI-0
[  4882.097] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[  4882.098] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[  4882.098] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[  4882.098] (--) NVIDIA(GPU-0):   DFP
[  4882.098] (--) NVIDIA(GPU-0):   DFP-0
[  4882.098] (--) NVIDIA(GPU-0):   DPY-0
[  4882.098] (--) NVIDIA(GPU-0):   HDMI-0
[  4882.098] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[  4882.098] (--) NVIDIA(GPU-0):   HDMI-0

monitor gets signal back @ 3840x2160 resolution, and now I’m finally able to switch it back to 1920x1080 with xrand:

nvidia@tx2:~$ xrandr --output HDMI-0 --mode 1920x1080

X logs says the following:

[  4912.839] (II) NVIDIA(0): Setting mode "NULL"
[  4913.062] (II) NVIDIA(0): Setting mode "HDMI-0: 1920x1080 @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}"
[  4914.190] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[  4914.190] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[  4914.190] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[  4914.190] (--) NVIDIA(GPU-0):   DFP
[  4914.190] (--) NVIDIA(GPU-0):   DFP-0
[  4914.190] (--) NVIDIA(GPU-0):   DPY-0
[  4914.191] (--) NVIDIA(GPU-0):   HDMI-0
[  4914.191] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[  4914.191] (--) NVIDIA(GPU-0):   HDMI-0
[  4914.201] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[  4914.201] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[  4914.202] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[  4914.202] (--) NVIDIA(GPU-0):   DFP
[  4914.202] (--) NVIDIA(GPU-0):   DFP-0
[  4914.202] (--) NVIDIA(GPU-0):   DPY-0
[  4914.202] (--) NVIDIA(GPU-0):   HDMI-0
[  4914.202] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[  4914.202] (--) NVIDIA(GPU-0):   HDMI-0
[  4914.208] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): connected
[  4914.208] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0): External TMDS
[  4914.208] (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0) Name Aliases:
[  4914.208] (--) NVIDIA(GPU-0):   DFP
[  4914.208] (--) NVIDIA(GPU-0):   DFP-0
[  4914.208] (--) NVIDIA(GPU-0):   DPY-0
[  4914.208] (--) NVIDIA(GPU-0):   HDMI-0
[  4914.209] (--) NVIDIA(GPU-0):   DPY-EDID-d6d1e5da-c811-d26a-326c-c38af273175c
[  4914.209] (--) NVIDIA(GPU-0):   HDMI-0

and I’m able to get monitor to display @ 1920x1080 resolution.

-albertr
xrandr_fail.txt.gz (8.54 KB)

It really looks like some nasty timing bug in either xrandr or XFCE4 code which affects XFCE.

I’m using the following to get video mode set correctly, will need to figure out how to make it run automatically on HMDI plug event:

xrandr --output HDMI-0 --mode 1920x1080; sleep 3; xrandr --output HDMI-0 --mode 1920x1080

First attempt to change the mode always fails, and if I reduce sleep from 3 to 1 seconds it runs into the same race condition again.

-albertr