From: Jonathan Denose <jdenose@google.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Jiri Kosina <jikos@kernel.org>,
Benjamin Tissoires <bentiss@kernel.org>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
Jonathan Denose <jdenose@google.com>
Subject: [PATCH v2 0/2] Implement lid-notifier for lid switch events
Date: Tue, 11 Nov 2025 21:34:05 +0000 [thread overview]
Message-ID: <20251111-lid-switch-notifier-v2-0-789723d78d89@google.com> (raw)
To circumvent a hardware issue where the touchpad is not physically
connected to the lid angle sensor, implement a notifier chain which
broadcasts lid switch events and a notifier_block which can be enabled
via a quirk to listen for those events turning the touchpad surface
on or off based on if the lid is open or closed. This will prevent
issues resulting from interference between the laptop lid and the
touchpad.
Signed-off-by: Jonathan Denose <jdenose@google.com>
---
Changes in v2:
- Remove notifier logic from input core and add lid-notifier module which exposes lid events
- Kconfig: Add CONFIG_INPUT_LID_NOTIFIER option to include lid-notifier
- Link to v1: https://lore.kernel.org/r/20251030-lid-switch-notifier-v1-0-c58dc9b1439d@google.com
---
Jonathan Denose (2):
Input: Add lid switch notifier
HID: multitouch: Toggle touch surface on Elan touchpad on lid event
drivers/hid/hid-multitouch.c | 32 ++++++++++++++-
drivers/input/Kconfig | 11 +++++
drivers/input/Makefile | 1 +
drivers/input/lid-notifier.c | 98 ++++++++++++++++++++++++++++++++++++++++++++
include/linux/input.h | 2 +
5 files changed, 143 insertions(+), 1 deletion(-)
---
base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787
change-id: 20251014-lid-switch-notifier-1cb9918d675d
Best regards,
--
Jonathan Denose <jdenose@google.com>
next reply other threads:[~2025-11-11 21:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-11 21:34 Jonathan Denose [this message]
2025-11-11 21:34 ` [PATCH v2 1/2] Input: Add lid switch notifier Jonathan Denose
2025-11-11 22:34 ` Dmitry Torokhov
2025-11-12 23:45 ` Jonathan Denose
2025-11-11 21:34 ` [PATCH v2 2/2] HID: multitouch: Toggle touch surface on Elan touchpad on lid event Jonathan Denose
2025-11-11 22:37 ` Dmitry Torokhov
2025-11-12 23:49 ` Jonathan Denose
2025-11-18 7:12 ` Dmitry Torokhov
2025-11-13 4:49 ` kernel test robot
2025-11-13 4:49 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251111-lid-switch-notifier-v2-0-789723d78d89@google.com \
--to=jdenose@google.com \
--cc=bentiss@kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox