Ubuntu 18.04 LTS Disable Screen Rotation

Posted on 24/08/2019

Just run these two commands:

  1. gsettings set org.gnome.settings-daemon.peripherals.touchscreen orientation-lock true
  2. gsettings set org.gnome.settings-daemon.plugins.orientation active false

Source