Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751729AbdFGRQ2 (ORCPT ); Wed, 7 Jun 2017 13:16:28 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:33165 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751393AbdFGRQ0 (ORCPT ); Wed, 7 Jun 2017 13:16:26 -0400 Date: Wed, 7 Jun 2017 10:16:22 -0700 From: Dmitry Torokhov To: Michal =?iso-8859-1?Q?Such=E1nek?= Cc: Benjamin Tissoires , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Peter Hutterer Subject: Re: [PATCH] macintosh: move mac_hid driver to input/mouse. Message-ID: <20170607171622.GE13116@dtor-ws> References: <20170509191418.10144-1-msuchanek@suse.de> <20170510004327.GA32584@dtor-ws> <20170528114758.52b619f2@neko> <20170528175540.GA8094@dtor-ws> <20170607185351.5fcd91df@kitsune.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170607185351.5fcd91df@kitsune.suse.cz> 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 Content-Length: 3246 Lines: 87 On Wed, Jun 07, 2017 at 06:53:51PM +0200, Michal Such?nek wrote: > On Sun, 28 May 2017 10:55:40 -0700 > Dmitry Torokhov wrote: > > > On Sun, May 28, 2017 at 11:47:58AM +0200, Michal Suchanek wrote: > > > On Tue, 9 May 2017 17:43:27 -0700 > > > Dmitry Torokhov wrote: > > > > > > > Hi Michal, > > > > > > > > On Tue, May 09, 2017 at 09:14:18PM +0200, Michal Suchanek wrote: > > > > > There is nothing mac-specific about this driver. Non-mac > > > > > hardware with suboptimal built-in pointer devices exists. > > > > > > > > > > This makes it possible to use this emulation not only on x86 > > > > > and ppc notebooks but also on arm and mips. > > > > > > > > I'd rather we did not promote from drivers/macintosh to other > > > > platforms, but rather removed it. The same functionality can be > > > > done from userspace. > > > > > > What is the status of this? > > > > The same as in above paragraph. > > > > > > > > Do you reply to every patch to drivers/input that is not the the > > > core infrastructure that you would rather drop the driver because > > > it can be done is in userspace? > > > > > > It sure can be done. Remove everything but the bus drivers and > > > uinput from drivers/input and the rest can be done in userspace. > > > > > > The question is who does it? > > > > > > Are you saying that you will implement the userspace equivalent? > > > > No, I spend my time mostly with the kernel. > > > > > > > > If not then please do your job as maintainer and accept trivial > > > patches for perfectly working drivers we have now. > > > > I am doing my job as a maintainer right now. The driver might have > > been beneficial 15 years ago, when we did not have better options, > > but I would rather not continue expanding it's use. > > > > The main problem with the driver is that the functionality it is not > > easily discoverable by end users. And once you plumb it through > > userspace to present users with options you might as well handle it > > all in userspace. > > > > > > > > If you want to move drivers/input into userspace I am not against it > > > but I am not willing to do that for you either. > > > > Then we are at impasse. > > > > > > > > > > > > > What hardware do you believe would benefit from this and why? > > > > > > Any touchpad hardware where you cannot press two buttons at once to > > > emulate the third button due to hardware design. And any touchpad > > > hardware on which some of the buttons are broken when it comes to > > > it. > > > > > > It is built into a notebook and works fine for moving the cursor but > > > due to lack of usable buttons you still need a mouse to use the > > > notebook. > > > > Have you tried simply redefining keymap of your keyboard to emit > > BTN_RIGHT/BTN_MIDDLE? Both atkbd and HID keyboards support keymap > > updates from userspace/udev/hwdb and if there is a driver that does > > not support it I will take patches fixing that. > > Indeed, they do support it. Such keymap update just does not work as > mouse button regardless of sending the BTN_* event. At least not in X11. > > So what is next? Teach X11 to handle it properly. Thanks. -- Dmitry