40

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.

65

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

  • 4
    wow.. i had no clue what it was for until my display started rotating in bed – sureshvv Aug 14 '18 at 17:21
  • 3
    What an annoying pesky little feature that I'm not sure what anyone would actually use. Can anyone enlighten me? Why would you want automatic screen orientation on a PC? – andromeda May 1 at 8:28
  • 1
    I was sick of this rotation .. thanks for writing this. – Vikash May 9 at 16:51
  • Unfortunately, if you're screen rotates before you sign in, it glitches out. – Amin Shah Gilani Jun 3 at 22:02
  • @Giszmo What is 19.3? Did you mean Ubuntu 19.04? – Melebius Aug 29 at 8:12
17

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
8
gsettings set org.gnome.settings-daemon.plugins.orientation active false

The above just worked for me. Seems the simplest solution

6

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.

3

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 ?

1

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

  • sorry, removing iio-sensor-proxy does remove the problem of course.... But none of the proposed config fixes seem to hold after sleep/wake cycle. – Johann cohen-tanugi Jun 28 at 11:17
0

use the code given below and it will work definitely

gsettings set org.gnome.settings-daemon.peripherals.touchscreen orientation-lock true

gsettings set org.gnome.settings-daemon.plugins.orientation active false

  • orientation-lock is the same as the <Super>+o control. – Planky Apr 5 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.