74

In Ubuntu 17.04 there was 'Rotation' menu in Display tab. But now in new version of Ubuntu, there's still a Display tab but no more rotation menu. Now I can't turn that off again since I upgraded to 18.04 LTS.

pomsky
  • 70,557
Aiden
  • 893

7 Answers7

117

The best solution I have found so far is to use the icon that is available in the top right corner of the screen, when you click on the down arrow. The icon is the one in red in the screenshot below:

screenshot with the icon

It might also look like this:

screenshot with the icon on 19.3

Giszmo
  • 165
  • 1
  • 1
  • 10
Sylvain
  • 1,286
44

If you want to remove this feature then fire below commands :

Try this command to stop and disable

$ sudo systemctl stop iio-sensor-proxy.service
$ sudo systemctl disable iio-sensor-proxy.service

Try this command to remove

$ sudo apt-get remove iio-sensor-proxy
18

You may use the keyboard combination Super+O to toggle the rotation lock ON/OFF as described in @Sylvain's answer.

screenshot with the icon

Note that Super is usually the key with Windows logo.

pomsky
  • 70,557
16
gsettings set org.gnome.settings-daemon.plugins.orientation active false

The above just worked for me. Seems the simplest solution

98cwitr
  • 161
4

What do you mean "turn off screen rotation" ? Do you mean go back to normal orientation ?

Anyway, in the new gnome-control-center of gnome 3.28, in Devices > Screen Display tab, you can click on Orientation and a menu appears to let you choose between

- Landscape
- Portrait right
- Portrait left
- Landscape (flipped)

I guess this is what you want ?

solsTiCe
  • 9,515
3

for me none of these work. As soon as I put the computer to sleep and wake it up again, it puts itself in the wrong orientation (due to the fact that the computer is sitting on a tilted support that raises it up). The only thing that I manage to do quickly is

xrandr -o normal

to fall back to normal orientation. This is painful

1

Use the code given below and it will work.

gsettings set org.gnome.settings-daemon.peripherals.touchscreen orientation-lock true
gsettings set org.gnome.settings-daemon.plugins.orientation active false
karel
  • 122,292
  • 133
  • 301
  • 332