I am on a Jetson AGX Xavier dev kit and need to display a 640x480 image on a 640x480 VGA monitor with the X server turned off (I’m booting in text mode). To hook up the monitor on the dev kit, I use a HDMI to VGA adapter (TRIPP LITE model P131-06N).
Now I list the supported modes with:
but I have the same results from that command either if I plug only the HDMI->VGA adapter or if I plug the HDMI->VGA adapter + VGA monitor, so I am guessing the listed modes are those exposed by the HDMI->VGA adapter only and 640x480 resolution is not part of that list.
The monitor is currently displaying at a resolution listed by the adapter.
$ cat /sys/class/graphics/fb0/mode U:1024x768p-60
I need to force that resolution to 640x480.
I tried setting the resolution with:
echo 4 > /sys/class/graphics/fb0/blank # Turn screen off echo "V:640x480p-60" > /sys/class/graphics/fb0/mode # Set text console resolution echo 0 > /sys/class/graphics/fb0/blank # Turn screen on
While this is working on another HDMI monitor that I got (no adapter involved), it does not on the VGA monitor. As soon as I plug the HDMI->VGA adapter, the resolution falls back to
U:1024x768p-60. Is there a way I can force the resolution to 640x480 permanently?
Another thing I tried is I plugged the VGA monitor to a VGA port on a Windows PC (no adapter involved here) and I can force the 640x480 resolution successfully.
The monitor is a “near eye display” and is not the kind that is widely available commercially. Changing that monitor is not an option.