How can I set HDMI resolution by SSH or UART cmdline?

Hi Nvidia,

We try to verify eye diagram of HDMI .
I follow the document to disable the HDP and conect the HDMI port to oscilloscope.
But how can I set HDMI resolution by SSH or UART cmdline?
I use xrandr but can’t open display.

~$ xrandr --output HDMI-0 --mode 1024x768 --rate 60
Can't open display
~$ xrandr -display :0.0 --output HDMI-0 --mode 1024x768 --rate 60
No protocol specified
Can't open display :0.0

Are you able to adjust it if you are doing it on screen?

When you operate it in ssh, are you running as root?

Yes, it worked on screen.
I try to sudo in ssh and get same error.

I mean you cannot run sudo in xrandr.

Hi Wayne,

I don’t run root at first. I tried both and got same error.

~$ xrandr --display :0.0 --output HDMI-0 --mode 1024x768 --rate 60
No protocol specified
Can't open display :0.0
~$ xrandr --output HDMI-0 --mode 1024x768 --rate 60
Can't open display

~$ sudo xrandr --display :0.0 --output HDMI-0 --mode 1024x768 --rate 60
No protocol specified
Can't open display :0.0
~$ sudo xrandr --output HDMI-0 --mode 1024x768 --rate 60
Can't open display

please try command xhost + on your jetson first and then test again.

It’s still error.

My step:

  1. command xhost + on jetson ubuntu screen.
~$ xhost + 
access control disabled, clients can connect from any host
  1. test xrandr in ssh again and still error.

Hi @WayneWWW

I echo the $DISPLAY is :1

I try to following cmd is worked.

xrandr --display :1 --output HDMI-0 --mode 1024x768 --rate 60

Thanks your help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.