Recently I booted Ubuntu 18.04 Live USB and I faced annoying problem. Screen was rotated and there was no rotate options in settings. I had to search not so obvious places in Internet, so I share this Q&A.
2 Answers
You should use xrandr command.xrandr -o normal takes your screen back to normal (landscape) rotation.
You can check this command typing xrandr -o left and then get back to normal.
You can use these commands:
xrandr --output $(xrandr |grep eDP|cut -d" " -f1) --rotate left
xrandr --output $(xrandr |grep eDP|cut -d" " -f1) --rotate normalalso right and inverted
I created a script here:
with that script, you can simply call
rotatescreen.sh -r
rotatescreen.sh -l
rotatescreen.sh -i
rotatescreen.sh -nAlternative, you can use CTRL+F8 to rotate using
gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"see
1