I have a 2-in-1 laptop (Dell 7779) running F35 Workstation with GNOME. The touchscreen can fold all the way around to turn the computer into a silly-looking 17-inch tablet. When I do that, the built-in keyboard and mouse are, appropriately, disabled, except for brightness-related keys. However, sometimes the same thing happens after I close and re-open the lid, perhaps because of some fault in the hinge sensors. I’m left trying to use the on-screen keyboard to save work, close a bunch of vim instances, etc. so I can reboot and get the keyboard working. This is tricky because the on-screen keyboard doesn’t have all the special and modifier keys.
Is there some command I can issue to order the computer out of tablet mode instead of working through the on-screen keyboard?
(This is not a new issue; I’ve had this computer about five years and it’s happened the whole time. I’ve just been too lazy to make this post.)