IIO Sensor proxy: screen rotation

One of the things,  I don’t get is why Linux enabled IIO Sensor Proxy default.

With a GNOME 3.18 (or newer) orientation changes will automatically be applied when rotating the panel.

Ambient light will be used to change the screen brightness. Geoclue will be able to read the compass data to show the direction in Maps.

It’s really annoying on the laptops if you accidentally rotate your monitor. So here’s is a what you got to do:

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

Enough with screen rotations.


  1. Mario Nunez H

    2019-08-09 at 07:14


    I apply this commands and works, but when I restart the laptop, happens again, so, I write again the commands

    • anvyst

      2019-08-09 at 08:37

      Hey Mario,

      Thanks for stopping by.

      After disabling the service with systemctl, you can try to mask it, to prevent other services to accidentally enabling screen rotation:

      sudo systemctl mask iio-sensor-proxy.service

      An alternative way of disabling it, if you’re using Gnome:

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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.