From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751637AbbJKL5z (ORCPT ); Sun, 11 Oct 2015 07:57:55 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:55181 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751487AbbJKL5w (ORCPT ); Sun, 11 Oct 2015 07:57:52 -0400 X-Sasl-enc: 9lCzdsmywkLEDF/L4q6lrJ/Xgco3Fg9o3q928jAxmupI 1444564670 Date: Sun, 11 Oct 2015 08:57:47 -0300 From: Henrique de Moraes Holschuh To: Darren Hart Cc: Linux Kernel Mailing List , Henrique de Moraes Holschuh , ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH] thinkpad_acpi: Add TP_HKEY_EV_SCREEN_FLIP (0x60c0) for Lenovo ThinkPad Yoga 12 Message-ID: <20151011115747.GA32241@khazad-dum.debian.net> References: <20151010184509.GA27137@malice.jf.intel.com> <20151010214034.GA9431@khazad-dum.debian.net> <20151010214626.GA2958@malice.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151010214626.GA2958@malice.jf.intel.com> X-GPG-Fingerprint1: 4096R/39CB4807 C467 A717 507B BAFE D3C1 6092 0BD9 E811 39CB 4807 X-GPG-Fingerprint2: 1024D/1CDB0FE3 5422 5C61 F6B7 06FB 7E04 3738 EE25 DE3F 1CDB 0FE3 User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 10 Oct 2015, Darren Hart wrote: > On Sat, Oct 10, 2015 at 06:40:34PM -0300, Henrique de Moraes Holschuh wrote: > > On Sat, 10 Oct 2015, Darren Hart wrote: > > > On Sat, Oct 10, 2015 at 11:41:47AM -0700, Darren Hart wrote: > > > > From: Darren Hart > > > > > > > > thinkpad_acpi reports "unhandled HKEY event 0x60c0" when switching > > > > between laptop and tent/tablet mode on the ThinkPad Yoga 12. This key is > > > > reported by atkbd serio0 as e058 and e059. > > > > > > > > Add TP_HKEY_EV_SCREEN_FLIP to the list of ignored events and silence the > > > > warning. > > > > > > > > Cleanup whitespace on preceeding line for TP_HKEY_EV_KEY_FN_ESC. > > > > > > > > Signed-off-by: Darren Hart > > > > Cc: Henrique de Moraes Holschuh > > > > Cc: ibm-acpi-devel@lists.sourceforge.net > > > > Acked-by: Henrique de Moraes Holschuh > > Thanks Henrique, > > Now, as I'm digging into this I'm finding maybe there is more to this. Should I > be attempting to tie this in to the tablet switch mechanism for the older x61t? I think so, provided that you can read the current mode from somewhere. And it is likelt to be exported by the EC somehow, since atkbd gets two separate keycodes... > Or is this something we now want to strictly hand off to a userspace helper via > the atkbd event? It depends on the existence of said userspace helper, I suppose. -- "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