3

After upgrading to 18.04 my screen suddendly switched upside down, since my Laptop apparently has a rotation sensor. I temporarily fixed it with xrandr -o normal and disabled the gnome rotation sensor, because I could not fix the problem by physically holding my laptop upside down. The problem is, that the rotation switches back to inverted with every restart.

I tried to write a script, which executes the xrandr command with every restart and added a xrandr --output eDP-1 --rotate normal in the gdm3 file, but none of that works.

Is there any way to set the default orientation back to normal or write a working script, which fixes the problem at a restart (including stand-by).

Gabboxl
  • 17
  • 2
    This might sound silly, but once you get the correct orientation, lock the orientation following this and reboot. Does it get auto rotated after reboot? – pomsky Sep 27 '18 at 10:25
  • I don't have this button anymore, since I uninstalled org.gnome.settings-daemon.plugins.orientation. But nontheless I could not get the right orientation by tilting the laptop. EDIT: Best I can do is sideways. And yes it rotates automatically upside down after reboot. – DaikodanNoJutsu Sep 27 '18 at 16:11

3 Answers3

2

You can use xrandr -o normal from the command prompt and it will fix it.

Eric Carvalho
  • 54,385
0
  1. Remove the iio-sensor-proxy which is what triggers the orientation changes to happen.

    sudo apt-get remove --purge iio-sensor-proxy

  2. Restart your computer

  3. Go into "Settings > Displays" (gnome-control-center). Change the "Orientation" setting for your monitor to landscape.

  4. Restart again to ensure that orientation is correct

Why this works is that even after you disable the orientation changes, gnome holds onto a previous orientation that was active and treats it as a sort of default even though it is no longer actively using the sensor to determine orientation. By manually changing the orientation, you are resetting the default.

Planky
  • 123
  • 2
  • 5
0

I had been facing with this problem so I searched for the solution and found this. But unfortunately, I didn't found the solution from here but I found it by myself. Let me share my solution.

  1. Go to the search box
  2. Search "Lock Orientation"
  3. Click it

The problem is solved.