On 18/03/2019 03:26, Pandruvada, Srinivas wrote: > On Sun, 2019-03-17 at 12:58 +1100, Alexey Kardashevskiy wrote: >> >> On 17/03/2019 05:33, Jonathan Cameron wrote: >>> >>> +CC bastien and (guessing it is a HID sensor) Srinivas. >>> On Sat, 16 Mar 2019 20:16:39 +1100 >>> Alexey Kardashevskiy <aik@xxxxxxxxx> wrote: >>> >>>> Hi! >>>> >>>> I got a quite old Lenovo YOGA 700-11ISK with flip screen and run >>>> fedora29 on it. I found that gnome3 cannot properly detect the >>>> screen >>>> orientation and the screen keeps rotating non stop. >> >> While at this topic, when I "convert" the laptop to a tablet (one >> side >> is screen, the other is keyboard and touchpad), the keyboard gets >> disabled (good) but the touchpad does not (bad). What in >> gnome3/fedora/linux/... does handle this? > > These are ACPI events. Monitor input events using evetest. > Touchpad is coming through another hid device, so the user space may > not be disabling that. So you are saying that the keyboard gets disabled by ACPI with no interaction from Linux? Anyway, if I want to catch such event and disable touchpad, how do I catch transition to the tablet mode and back? -- Alexey