Ubuntu – Screen randomly rotates on Ubuntu 17.10


I have an HP Pavilion 14 inch laptop.

I recently upgraded from Ubuntu 17.04 to 17.10.

Everything went well, but when I boot up the system, my screen rotation was set to left.

Then I tried using xandr to rotate my screen, but my every effort failed.

Can anybody help me on the same?

Best Answer

Had the same issue. Seems like a bug. I disabled the screen rotation from task bar(top right) and it went to landscape mode. Just check if this works for you. Also, xrandr does not work on Wayland.

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

Additionally, the below command ought to disable the orientation plugin completely.

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

Also, gnome provides an option to rotate the screen from Settings -> Devices -> Displays -> Orientation setting (search for displays in 'Activities').