Хорошим инструментом для этой работы является xrandr
.
Сначала определите ваш дисплей, используя что-то вроде
$ xrandr --verbose | awk '/ connected/{print $1}'
LVDS1
Теперь вы готовы играть с ним
xrandr --output LVDS1 --rotate left
xrandr --output LVDS1 --rotate inverted
xrandr --output LVDS1 --reflect x
xrandr --output LVDS1 --reflect xy
и когда вы слишком сильно испортите экран, просто запустите
xrandr --output LVDS1 --rotate normal
xrandr --output LVDS1 --reflect normal