The following patches make it possible to have udev/userspace notified when SW_TABLET_MODE changes on the switch device, without having to resort to poll()/select() for such sparse events. I've got udev patches locally to complement this. I've been just able to test on thinkpad_acpi (X220T), hp-wmi (Touchsmart TX2) and xo15-ebook. The per-module change is straightforward enough, but an ack would still be great on classmate and fujitsu modules. Carlos Garnacho (5): thinkpad_acpi: Send uevent when SW_TABLET_MODE changes hp-wmi: Send uevent when SW_TABLET_MODE changes xo15-ebook: Send uevent when SW_TABLET_MODE changes classmate-laptop: Send uevent when SW_TABLET_MODE changes fujitsu-tablet: Send uevent when SW_TABLET_MODE changes drivers/platform/x86/classmate-laptop.c | 2 ++ drivers/platform/x86/fujitsu-tablet.c | 1 + drivers/platform/x86/hp-wmi.c | 3 +++ drivers/platform/x86/thinkpad_acpi.c | 2 ++ drivers/platform/x86/xo15-ebook.c | 1 + 5 files changed, 9 insertions(+) -- 1.8.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html