All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support for Lenovo Compact Keyboard
@ 2014-06-10 22:24 Jamie Lentin
  2014-06-10 22:24 ` [PATCH v2 1/2] Loosen seams to allow support of other keyboards Jamie Lentin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jamie Lentin @ 2014-06-10 22:24 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-input, linux-kernel, Jamie Lentin

This patchset follows on from my previous attempt[1] to add support for
these keyboards from Lenovo.

Changes since v1:
* Merge driver into hid-lenovo-tpkbd.c instead of creating our own
  driver for the hardware [Jiri Kosina]
* Remove key mappings which are now supported by standard
* Use KEY_FILE for Fn-F12 (opens My Computer on Windows)
* Support the USB variant as well as Bluetooth
* Expose the Fn Lock setting as a sysfs attribute instead of trying to
  build a mechanism to toggle into the kernel

I got rid of the Fn-lock toggle code since it didn't play nicely with
the USB keyboard; from what I could ascertain, hid_output_raw_report
wants to sleep when sending a report to a USB keyboard, which isn't
allowed. The same was true when using an input handler.

A sysfs attribute is more flexible anyway, and one could trivially
script a user-space toggling mechanism around it. I suspect in
reality so long as Fn-Lock is left on nobody will really care what the
Fn-Lock key does :)

Applies and tested against 3.14.5.

Cheers,

[1] https://lkml.org/lkml/2014/3/25/535

Jamie Lentin (2):
  Loosen seams to allow support of other keyboards
  Add support for Compact (Bluetooth|USB) keyboard with Trackpoint

 drivers/hid/hid-core.c         |   2 +
 drivers/hid/hid-ids.h          |   2 +
 drivers/hid/hid-lenovo-tpkbd.c | 236 +++++++++++++++++++++++++++++++++++++++--
 include/linux/hid.h            |   1 +
 4 files changed, 232 insertions(+), 9 deletions(-)

-- 
2.0.0.rc2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-14  5:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-10 22:24 [PATCH v2 0/2] Add support for Lenovo Compact Keyboard Jamie Lentin
2014-06-10 22:24 ` [PATCH v2 1/2] Loosen seams to allow support of other keyboards Jamie Lentin
2014-06-11  7:41   ` Antonio Ospite
2014-06-10 22:24 ` [PATCH v2 2/2] Add support for Compact (Bluetooth|USB) keyboard with Trackpoint Jamie Lentin
2014-06-11  8:36   ` Antonio Ospite
2014-06-12  8:56     ` Jamie Lentin
2014-06-13 21:45       ` Antonio Ospite
2014-06-14  5:33         ` Jiri Kosina
2014-06-11 10:57 ` [PATCH v2 0/2] Add support for Lenovo Compact Keyboard Jiri Kosina

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.