From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751228AbdBWIgs (ORCPT ); Thu, 23 Feb 2017 03:36:48 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34154 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751033AbdBWIgq (ORCPT ); Thu, 23 Feb 2017 03:36:46 -0500 Date: Thu, 23 Feb 2017 00:36:31 -0800 From: Dmitry Torokhov To: Andy Shevchenko Cc: Pau Espin Pedrol , Andy Shevchenko , Platform Driver , Corentin Chary , "linux-kernel@vger.kernel.org" , acpi4asus-user , "dvhart@infradead.org" Subject: Re: [PATCH] eeepc-laptop: Skip unknown key messages 0x50 0x51 Message-ID: <20170223083631.GE18639@dtor-ws> References: <20170210174837.1078-1-pespin.shar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 21, 2017 at 05:38:59PM +0200, Andy Shevchenko wrote: > On Tue, Feb 21, 2017 at 3:39 PM, Pau Espin Pedrol wrote: > > > If we have user space tools supporting and using this type of event, > > then what about adding them properly with a define + entry in the > > structure array so that it can be standardized and on top get rid of > > those kernel message every time I (un)plug the charger? Would that be > > welcomed? I could send a new patch as specified above, adding the > > KEY_CHARING_ON/OFF defines + add entries to eeepc_keymap. > > Please, do not top posting. > > Dmitry, do we have special events for AC (un)plug? What is the best > approach in your opinion? Not route them through input as they not input events would be the best. I'd look into hooking up power_supply class. Thanks. -- Dmitry