Farzad
January 16, 2019, 12:57am
1
It seems xrandr can detect only on resolution for min, current and max resolution. Here are the output of xrandr for two different monitors,
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 800 x 480, current 800 x 480, maximum 800 x 480
default connected 800x480+0+0 0mm x 0mm
800x480 66.00*
another monitor,
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 600, current 1024 x 600, maximum 1024 x 600
default connected 1024x600+0+0 0mm x 0mm
and this the output of xrandr of the last monitor on my desktop computer,
DVI-0 connected 1440x900+3840+0 (normal left inverted right x axis y axis) 697mm x 392mm
1024x600 60.08 +
1920x1080 60.00 50.00 59.94
1920x1080i 60.00 50.00 59.94
1280x1024 75.02
1440x900 74.98* 59.90
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x576i 50.00
720x480 60.00 59.94
720x480i 60.00 59.94
640x480 75.00 72.81 60.00 59.94
720x400 70.08
How can I get all options for resolution?
Thanks!
@Farzad Does it help if you specify a specific output in the call to xrandr
?
Farzad
January 16, 2019, 6:37pm
5
I followed these posts instruction and it didn’t work.
https://ubuntuforums.org/showthread.php?t=1824207
Farzad
January 17, 2019, 5:27pm
7
It is fixed !
Jordan pointed out that it was a default framebuffer resolution rather than using the TX2’s GPU and it didn’t have Nvidia drivers.
The Dockerfile needs the driver packages,
MAINTAINER nuculur@gmail.com
# This is the base container for the Jetson TX2 board with drivers (with cuda)
# base URL for NVIDIA libs
ARG URL=http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/3.2/pwv346/JetPackL4T_32_b157
# Update packages, install some useful packages
RUN apt-get update && apt-get install -y apt-utils bzip2 curl sudo unp && apt-get clean && rm -rf /var/cache/apt
WORKDIR /tmp
# Install drivers first
RUN curl -sL http://developer.nvidia.com/embedded/dlc/l4t-jetson-tx2-driver-package-28-2 | tar xvfj -
RUN chown root /etc/passwd /etc/sudoers /usr/lib/sudo/sudoers.so /etc/sudoers.d/README
RUN /tmp/Linux_for_Tegra/apply_binaries.sh -r / && rm -fr /tmp/*
## Pull the rest of the jetpack libs for cuda/cudnn and install
RUN curl $URL/cuda-repo-l4t-9-0-local_9.0.252-1_arm64.deb -so cuda-repo-l4t_arm64.deb
RUN curl $URL/libcudnn7_7.0.5.13-1+cuda9.0_arm64.deb -so /tmp/libcudnn_arm64.deb
RUN curl $URL/libcudnn7-dev_7.0.5.13-1+cuda9.0_arm64.deb -so /tmp/libcudnn-dev_arm64.deb
## Install libs: L4T, CUDA, cuDNN
the script doesn’t update system cache with tegra shared libraries so update system cache with /usr/lib/aarch64-linux-gnu/tegra/
.
thanks !