[PATCH v2 0/5] platform/x86: intel-vbtn: Add support for several more switches/buttons

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux