linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] platform/x86: intel-vbtn: Add support for several more switches/buttons
@ 2017-11-09 22:44 Stefan Brüns
  0 siblings, 0 replies; only message in thread
From: Stefan Brüns @ 2017-11-09 22:44 UTC (permalink / raw)
  To: platform-driver-x86
  Cc: linux-input, Stefan Brüns, Andy Shevchenko, linux-kernel,
	AceLan Kao, Dmitry Torokhov, Darren Hart

Currently, intel-vbtn only supports the most relevant buttons, although
there are several more events, mostly in use by convertibles.

(Original first patch omitted from series, as already applied upstream.)

The first patch adds support for the SW_TABLET_MODE switch, which
is used by current convertibles.

The second patch adds support for distinct press/release events in the
intel-vbtn driver. This is required for the KEY_LEFTMETA modifier
("Windows logo") key, added later.

The third patch introduces a new keycode, KEY_ROTATE_LOCK_TOGGLE, which
should be used by devices which use a button for rotation lock instead
of a switch (SW_ROTATE_LOCK).

The fourth patch adds support for the KEY_ROTATE_LOCK_TOGGLE. On the Dell
XPS 12 (9Q33), rotation lock is implemented as a button to toggle
between locked and unlocked state. In locked state, the accelerometer
should be ignored, while in unlocked state the screen contents should
autorotate based on the tablet orientation.

The fifth patch adds support for the "Windows logo" button/key found on the
XPS 12 display front. The Lenovo Helix 2 has an equivalent touch button.

Changes in v2:
- Correct whitespace in key_entry struct
- New patch, add support for seperate key up/down in intel-vbtn
- New patch, add support for KEY_ROTATE_LOCK_TOGGLE
- Emit KEY_ROTATE_LOCK_TOGGLE instead of KEY_ROTATE_DISPLAY
- Use separate up/down events
- Emit KEY_LEFTMETA instead of KEY_MENU

Stefan Brüns (5):
  platform/x86: intel-vbtn: support SW_TABLET_MODE
  platform/x86: intel-vbtn: Support separate press/release events
  Input: add KEY_ROTATE_LOCK_TOGGLE
  platform/x86: intel-vbtn: support KEY_ROTATE_LOCK_TOGGLE
  platform/x86: intel-vbtn: support panel front button

 drivers/platform/x86/intel-vbtn.c      | 23 +++++++++++++++++++++--
 include/uapi/linux/input-event-codes.h |  1 +
 2 files changed, 22 insertions(+), 2 deletions(-)

-- 
2.15.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-09 22:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-09 22:44 [PATCH v2 0/5] platform/x86: intel-vbtn: Add support for several more switches/buttons Stefan Brüns

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).