From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 Date: Wed, 24 Oct 2018 17:14:48 +0200 From: Alexey Gladkov To: Fredrik Noring Message-ID: <20181024151448.GV3219@comp-core-i7-2640m-0182e6> References: <20181022084956.GT3219@comp-core-i7-2640m-0182e6> <20181022153738.GA2331@sx9> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181022153738.GA2331@sx9> Cc: kbd@lists.altlinux.org Subject: Re: [kbd] [PATCH 0/5] Add Apple USB keyboard models A1048 and A1243, Swedish localization X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2018 15:14:53 -0000 Archived-At: List-Archive: On Mon, Oct 22, 2018 at 05:37:38PM +0200, Fredrik Noring wrote: > Hi Alexey, > > > You put the product ID in the filename. Do you think the keycodes will be > > unique for each product? > > For Apple keyboards (at least), I hope that the USB triplet idVendor, > idProduct, and bCountryCode can distinctly indicate the proper keymap. > > Most variations are due to bCountryCode (localization), with minor > differences for idProduct (such as the difference between keycodes 41 > and 86 for Apple models A1048 and A1243, for example). I would be > surprised if they reused idProduct for incompatible products. > > It would be very helpful if the kernel could automatically select the > corresponding keymap when recognising a known USB-keyboard product. OK. Applied. Thanks! -- Rgrds, legion