ubuntu realizes the rotation of the screen and turns on the automatic rotation screen

1. Rotate the screen

There are two methods, one is the command line and the other is the graphical interface. Only the command line is covered here because of its simplicity.

xrandr -o left #向左旋转90度,用于横屏转竖屏
xrandr -o right #向右旋转90度
xrandr -o inverted #上下翻转
xrandr -o normal #正常显示

2. Permanently rotate the screen

By adding a line at the end of the 55gnome-session_gnomerc file, take the horizontal screen to vertical screen as an example.

$ sudo vim /etc/X11/Xsession.d/55gnome-session_gnomerc 

Add at the end of the file

xrandr  --output Virtual1 --rotate left

Save and exit

3. Possible problems

When bloggers are testing on Jetson tx2, they will find that step 2 is completed, and the screen is still wrong after restarting tx2. The solution is as follows: use the
graphical interface to modify the screen orientation, and then restart.
Settings (upper right corner of the graphical interface)->system settings->Displays->Rotation select Counterclockwise

Guess you like

Origin blog.csdn.net/mathlxj/article/details/106745825
Recommended