screen tearing when dual monitor

hello,
nvidia jetson tx1 connects two screens.

#xrandr
screen 0: minimum 8x8,current 2000x1024,maximum 16384x16384
DSI-0 connected 720x576+1280+0 (normal left inverted right x axis y axis) 0mm x 0mm
720x576 59.88*+
HDMI-0 connected primary 1280x1024+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x1024. 60.00*+

But, there is a screen tearing with dual monitor. Then I use HDMI-0 only,there is no tearing.

How to display the screen correctly?
I would appreciate any help and explanations.

Hi 2284810331,

Could you share a video when tearing happened?

there is a screen tearing with dual monitor. Then I use HDMI-0 only,there is no tearing.
the dual_monitor.jpg is tearing, the HDMI-0only.jpg is ok


hi,
I have the same problem.

Is this problem caused by nvidia’s driving bug?

Could you try to maximize the performance by using jetson_clock.sh first?

Hi
Thank you for answering my question.

In my knowledge sudo ./jetson_clocks.sh is to increase the clock limit to increase the performance of TX1.
In tx1,I do this: sudo ./jetson_clock.sh --show
sudo ./jetson-clock.sh --store
But the results did not change.

Are you using jetpack3.1? I would like to try it on my devices.

Could you check the value in following node?

cat /sys/module/window/parameters/no_vsync

Your monitor has limited fps 60 and 59.88 but your image shows that it is 99fps already.
Seems that vsync is not ON.

#./jetson_clocks.sh --show

CPU frequency Governor: userspace
CPU MinFreq=102000 MaxFreq=1734000 CurrentFreq=1734000
CPU HOTPLUG: 0
Online CPUs: 0-3
cpu0: 1734000
cpu1: 1734000
cpu2: 1734000
cpu3: 1734000
CPU Cluster Switching: Disabled
GPU MinFreq=0 MaxFreq=998400000 CurrentFreq=998400000 FreqOverride=1
EMC MinFreq=0 MaxFreq=1600000000 CurrentFreq=1600000000 FreqOverride=1
Can’t access Fan!

But screen tearing is not solved.

the first picture is screen tearing with dual monitor.
the two picture is HDMI-0 only.
check /sys/module/window/parameter/no_vsync. value=0.

could you tell me why?


Is your app running through openGL?

Yes, my app running through openGL,this is my app,
IMG20171013145056.jpg

My app also running through openGL ,do you have any other display method .

Thankyou

I don’t think the reason of screen tearing is the app .
Could you tell me how you use screen tearing with dual monitor

Could you try following method first?

export __GL_SYNC_TO_VBLANK=1 or 0.
# run your app again

You can make a test, when this value is set to 0, tearing problem should show or become worse.

the first : export __GL_SYNC_TO_VBLANK=1
I use HDMI-0 only is not tearing
I use dual monitor is tearing
the second: export __GL_SYNC_TO_VBLANK=0
the HDMI-0 only and dual monitor are all tearing

the first : export __GL_SYNC_TO_VBLANK=1
I use HDMI-0 only is not tearing
I use dual monitor is tearing
the second: export __GL_SYNC_TO_VBLANK=0
the HDMI-0 only and dual monitor are all tearing

the first : export __GL_SYNC_TO_VBLANK=1
I use HDMI-0 only is not tearing
I use dual monitor is tearing
the second: export __GL_SYNC_TO_VBLANK=0
the HDMI-0 only and dual monitor are all tearing

Thanks for sharing the result. I’ll try it on my device too.

If you have more about dual monitor display ,could you tell me .
Thankyou