Reenable touch-mode on touchscreen devices with pointers.
This is a partial revert of !1710 (merged) in order to resolve #1686, #1732 (closed), and #1760.
!1710 (merged) was based on the premise that touch-mode (i.e. auto-rotation and onscreen keyboard availability) should never be enabled when a device has a touchpad currently enabled. This would be a good assumption if all 2-in-1 laptops correctly disabled their touchpads when folded into tablet mode. But many don't, unless they are listed on a per-device basis in the Linux kernel.
Adding a gsetting would probably be the ideal solution here, but since nobody has been willing/able to implement that, I think a reversion is the best option. This issue has caused a large number of user complaints across the web:
- https://www.reddit.com/r/gnome/comments/n0kar3/screen_autorotation_stopped_working_after/
- https://www.reddit.com/r/gnome/comments/mgstkm/onscreen_keyboard_no_longer_displays_on_gnome_40/
- https://www.reddit.com/r/gnome/comments/n8371y/does_gnome_40_dropped_support_for_screen/
- https://www.reddit.com/r/gnome/comments/r0wv6e/screen_rotation_broken_in_wayland_gnome_411_arch/
- https://www.reddit.com/r/gnome/comments/nkhff5/why_tablet_mode_doesnt_work/
- https://www.reddit.com/r/ManjaroLinux/comments/tp484p/autoscreen_rotation_on_gnome/
- https://ask.fedoraproject.org/t/touchmode-not-working-on-wayland-gnome40-fedora-34/16736
- https://askubuntu.com/questions/1372058/autorotate-stopped-working-in-tablet-mode-gnome-40-21-10
- https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1960747
There have also been multiple projects to fix it from the outside, which seem like duplicated effort at this point:
- https://extensions.gnome.org/extension/4316/force-show-osk/
- https://extensions.gnome.org/extension/4191/screen-autorotate/
- https://extensions.gnome.org/extension/5389/screen-rotate/
- https://aur.archlinux.org/packages/gnome-shell-extension-screen-autorotate
- https://aur.archlinux.org/packages/mutter-auto-rotation