lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 9 Nov 2017 23:44:31 +0100
From:   Stefan Brüns <>
To:     <>
CC:     <>,
        Stefan Brüns <>,
        Andy Shevchenko <>,
        AceLan Kao <>,
        Dmitry Torokhov <>,
        Darren Hart <>
Subject: [PATCH v2 0/5] platform/x86: intel-vbtn: Add support for several more switches/buttons

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
- 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
  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(-)


Powered by blists - more mailing lists