2

This question is for computers without a rotation sensor. For computers with a rotation sensor, autorotate feature can work in GNOME and KDE without any additional tool. See this question.


I have a touch screen Chromebook (natively) running Ubuntu MATE 22.04.

The screen can be partially flipped, and I want to use the Chromebook as a tablet. There is no automatic rotation.

I can rotate the display in Displays -> Rotation -> Upside Down. However, that does not rotate the touch events.

For example, if I touch the top part of the screen (which now hosts of the bottom of the desktop because the display is flipped upside down in the settings), it opens menu in the top part of the desktop.

How to flip the touch events as well?

1 Answers1

2

x86_64 and ARM and others (using graphical interface)


Install Screen Orientation Manager.

image

Download and install the .deb package from GitHub releases.

Alternatively, use the official PPA.

sudo add-apt-repository ppa:apandada1/screen-orientation-manager
sudo apt update
sudo apt install screen-orientation-manager

Run xinput list to get the ID for the touchscreen and touchpad, and enter it into the app (it will remember them).

It can also automatically load the configs of some known devices (so that you don't have to manually run xinput list), if you want to get your device added, please create an issue in GitHub.

x86_64 only (keyboard shortcut based)


You can use the autorotate tool.

First, download the tool from github, and unzip the binary named autorotate in $HOME/.local/bin. (In case you did not have the hidden folder .local/bin, create it, logout, and login).

Run chmod +x $HOME/.local/bin/autorotate to mark it as executable.

Next, detect your screen type using autorotate.

autorotate list

For me, the screen type is eDP-1.

Check that the command autorotate invert --display eDP-1 inverts the display, and the command autorotate normal --display eDP-1 restores the display orientation.

Finally, open Keyboard shortcuts, and assign custom keyboard shortcuts with these commands, so that you can quickly rotate the display (I am using ctrl + alt + and ctrl + alt + ).