From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: Need help adding support for X1 Carbon 2nd Gen's Keyboard Date: Mon, 8 Sep 2014 14:54:27 -0700 Message-ID: <20140908215427.GG24033@core.coreip.homeip.net> References: <540E0F3F.7020101@mediacru.sh> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-pd0-f171.google.com ([209.85.192.171]:35501 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754703AbaIHVyb (ORCPT ); Mon, 8 Sep 2014 17:54:31 -0400 Received: by mail-pd0-f171.google.com with SMTP id p10so4620710pdj.16 for ; Mon, 08 Sep 2014 14:54:30 -0700 (PDT) Content-Disposition: inline In-Reply-To: <540E0F3F.7020101@mediacru.sh> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: =?iso-8859-1?B?Sm9z6SBE7WV6?= Cc: linux-input@vger.kernel.org Hi Jos=E9, On Mon, Sep 08, 2014 at 10:19:11PM +0200, Jos=E9 D=EDez wrote: > Hello linux-input, >=20 > This is my first post on this mailing list (or on any other kernel > list, actually), so sorry if I break unwritten ettiquete. Please let > me know. >=20 > So I recently got a X1 Carbon Thinkpad, and so far everything has > been working flawlessly, but the Adaptive Keyboard generates some > ACPI HKEY events with scancodes that are not currently recognised. > They are reported to the kernel successfully so one could set up > shortcuts by using something like `acpid`, but perhaps it would be > better if it generated normal key presses (i.e XF86Something). >=20 > I've read through most of the thinkpad_acpi.c code and understand > most of it, but so far I've been unable to report normal keyboard > events from there (and I don't even know if it would be the correct > thing to do.) >=20 > I must also say that these keys are somewhat odd. In one of the > modes, there are icons for "snippet tool", "cloud", "man speaking", > "hands in front of camera". I'm not sure what would be the best way > to report these, so I seek your advice here. >=20 > At the very least, I can list which scancode is generated by each key= =2E It would be helpful to know what cations the vendor driver maps for these keys in Windows (if you still have it available). Then we could try to come with existing input event definitions for the actions (or maybe we'd need to add new ones) and map them to the events in thinkpad_acpi.c. Thanks. --=20 Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html