Hi,
I have a problem with getting the display working.
I followed this tutorial:
everything looks very normal and okay. At the end of the tutorial when I try to run the example it complains about the display output.
When I try xrandr it says it cannot open the display. When I manually export DISPLAY to 0.0 or 1.0 still the same thing.
When the system is booting up the display works, up to the splash screen. It looks like the last frame is the Balena splash screen. If I remove the HDMI and put it back it does not show anything anymore.
Thank you for your help.
“”"
root@66bf325:/usr/local/cuda-10.0/samples/bin/aarch64/linux/release# export DISPLAY=:0
root@66bf325:/usr/local/cuda-10.0/samples/bin/aarch64/linux/release# xrandr
Can’t open display :0
“”"
P.S. My issue is similar to this, the symptoms: however the cube is pretty centred, so I guess the resolution and aspect ratio at bootup are okay.
I tried to replicate the issue but couldn’t. I am assuming that xrandr is not able to find the display. Can you post the output of xrandr -d :0 here, so we can see what xrandr is able to identify.
The carrier board is B01, the new release.
“”"
uname
4.9.140-l4t-r32.4.2
Linux 66bf325 4.9.140-l4t-r32.4.2 #1 SMP PREEMPT Sat Sep 5 11:17:12 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
“”"
“”"
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
“”"
#This is the minimal configuration necessary to use the Tegra driver. #Please refer to the xorg.conf man page for more configuration #options provided by the X server, including display-related options #provided by RandR 1.2 and higher.
#Disable extensions not useful on Tegra.
Section “Module”
Disable “dri”
SubSection “extmod”
Option “omit xfree86-dga”
EndSubSection
EndSection
Section “Device”
Identifier “Tegra0”
Driver “nvidia” #Allow X server to be started even if no display devices are connected.
Option “AllowEmptyInitialConfiguration” “true”
EndSection
“”"
Hi Nima, Unfortunately that xrandr output doesn’t seem to tell us much. Which version of balenaOS are you using and which version of l4t did you download (looks like 32.4.2 but checking to be sure) There’s also a (soon to be introduced) version of that example repo which does not require manually downloading the l4t files: https://github.com/balena-io-playground/jetson-nano-sample-new I’m wondering if you still have the same issue if you are able to try that?
Here is the link with my old Dockerfile, which also didn’t work:
nimams/test:1.0
I’m able to unblank and blank the display with the following command:
echo 0 > /sys/class/graphics/fb0/blank
So I think the cable, connection, and display are okay. I’m also using external power supply on my jetson, so I’m pretty confident the board is not underpowered.
I just tried the same display on Jetson Xavier with the following JetPack and no Balena and it worked:
My Nano is running BalenaOS and My Xavier is running JetPack without any Balena.
I have the following display:
The display works on Xavier with no problem. When I connect the same display to Nano, it only works up to the splash screen and then never receives any more frame.
I never tried the display with Xavier running BalenaOS or Nano running native JetPack.
Sorry for the confusion.
Just to double check, do you start X before trying to run the cuda examples or xrandr?
From the logs you pasted it’s possible that the first step in my colleague’s @alanb example doc might have been skipped. Here’s how the sample works on my B01:
root@1939059:/usr/local/cuda-10.0/samples/bin/aarch64/linux/release# xrandr -d :0
Can’t open display :0
root@1939059:/usr/local/cuda-10.0/samples/bin/aarch64/linux/release# X &
…
root@1939059:/usr/local/cuda-10.0/samples/bin/aarch64/linux/release# xrandr -d :0
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
1920x1080 60.00*+ 59.95 50.00
1680x1050 59.96
1600x900 60.00
1440x900 59.89
1280x1024 60.00
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 60.01
800x600 60.32
720x576 50.00
720x480 59.94
720x400 70.04
640x480 59.94 59.94
DP-0 disconnected (normal left inverted right x axis y axis)
root@1939059:/usr/local/cuda-10.0/samples/2_Graphics/bindlessTexture# ./bindlessTexture
CUDA bindlessTexture Starting…
GPU Device 0: “NVIDIA Tegra X1” with compute capability 5.3