From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [PATCH 2/2] input: bcm5974-0.61: New default mouse driver mode Date: Tue, 2 Sep 2008 09:00:26 -0400 Message-ID: <20080902085209.ZZRA012@mailhub.coreip.homeip.net> References: <48BC4BC3.1080903@euromail.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from an-out-0708.google.com ([209.85.132.244]:28203 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751018AbYIBNAb (ORCPT ); Tue, 2 Sep 2008 09:00:31 -0400 Received: by an-out-0708.google.com with SMTP id d40so383924and.103 for ; Tue, 02 Sep 2008 06:00:30 -0700 (PDT) Content-Disposition: inline In-Reply-To: <48BC4BC3.1080903@euromail.se> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Henrik Rydberg Cc: akpm@osdl.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Hi Henrik, On Mon, Sep 01, 2008 at 10:08:35PM +0200, Henrik Rydberg wrote: > Currently, the Apple bcm5974 driver only mimics a synaptics touchpad, not a mouse. > This creates unnecessary complications on systems where the synaptics driver is absent > or not configured, such as in a completely new system, or a text console. Mousedev should provide a reasonable emulation of standard mouse giving user chance to configure the system properly. There is no need to task the driver to provide such emulation and therefore I will not apply this patch. > This patch > provides a default compatibility configuration, which works as a multi-button mouse, > implemented using rudimentary multi-finger options. It yields the following benefits: > > * A default Xorg configuration will pick up the mouse input interface, resulting in a > functional mouse pointer out-of-the-box on many systems. This happens automatically with Synaptics hardware on newer distributions (at least Fedora 9 does this). As far as I know SYnaptics driver does no look for specific product but for a certain features of the input device and so shoudl work for BCM as well. > > * Two-finger scroll emulates a mouse wheel. > > * Three-finger swipe emulates a horizontal mouse wheel. > > * Multi-finger clicks emulate the middle and right mouse buttons. > The kenel driver should only do as little translation as possible, allowing userspace to decide how to implement more fancy features. > * The mouse driver also works with gpm in text consoles, providing cut-and-paste functionality. > Does not mousedev emulation work from GPM? Also GPM has evdev protocol support which should work very well with synaptics-like touchpads. -- Dmitry