I just did a clean installation of Ubuntu 18.04.1 on a tablet which was previously running Ubuntu 17.10. Back then just after the installation the screen was rotated, but I was able to get it to work (I think it was running on Wayland).
Now with 18.04.1 the situation is similar: when Ubuntu first boots the login screen is upside-down, but that's not a problem. This time, after login, the screen is correctly oriented but the mouse cursor is upside down and mouse movements are inverted with respect to both axes. The problem is that when I try to click on something the click is registered on the position on the other side of the screen (symmetrically with respect to the center).
It almost seems like the screen (desktop, application, etc.) is correctly displayed, with also the mouse positioned correctly and moving as it should, but then the mouse cursor which is shown to the user is inverted, like if the screen had been inverted just before drawing the cursor.
I already tried the answers I could find, but none worked for me. Anyone have an idea of what's going on?
Thanks
Best Answer
I tried following these instructions, but that didn't work. Then what I did was simply open Terminal using Ctrl+Alt+T and invert the screen using
Then running
After rebooting, everything went back to normal.
To prevent GNOME from communicating with the sensor hardware I ran the command
This solved everything for me.