lists.openwall.net   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  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 17 Sep 2009 14:57:07 -0300
From:	Henrique de Moraes Holschuh <hmh@....eng.br>
To:	"Rick L. Vinyard, Jr." <rvinyard@...nmsu.edu>
Cc:	Dmitry Torokhov <dmitry.torokhov@...il.com>,
	Trilok Soni <soni.trilok@...il.com>,
	Linux USB <linux-usb@...r.kernel.org>,
	LKML <linux-kernel@...r.kernel.org>, linux-input@...r.kernel.org
Subject: Re: Using EV_MSC or extending KEY_*

On Wed, 16 Sep 2009, Rick L. Vinyard, Jr. wrote:
> The M* keys are intended to provide a quick way to switch between key
> mappings, with each mode having their own user-defined mappings.

What I'd do in this case would be this:

1. Initially have the M* level-shift keys assigned KEY_RESERVED

2. Have a big enough keymap to map all keys in all M*-level shift states
possible.

Eg:
   START OF KEYMAP
   M* keys
   1st set of G* keys
   2nd set of G* keys
   3rd set of G* keys...
   ...
   last set of G* keys
   END OF KEYMAP

3. Have the driver special-process M* level-shift keys *as long as they are
still set to KEY_RESERVED* to select which part of the keymap is used to
translate the other keys.  Note that this likely means pressing a M* key
would be transparent to userspace in this case, i.e. no events would be
issued when a M* key is doing a level shift.

So, you'd be able to set all mappings you want in the driver, and the M*
keys would do what they're expected to do without any userland help at all,
but you'd still be able to program the M* keys to be normal keys if you
want.

Of course, this assumes you don't do chording on multiple M* keys to end up
with a huge number of keymaps :p

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ