how to rotate screen linux code example
Example 1: screen rotation in linux
xrandr --output $(xrandr |grep eDP|cut -d" " -f1) --rotate left
xrandr --output $(xrandr |grep eDP|cut -d" " -f1) --rotate normal
Example 2: set ubuntu display landscape
xrandr -o normal
xrandr -o left
xrandr -o rigth