From owner-freebsd-arch@FreeBSD.ORG Sat Mar 27 10:57:35 2010 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE8A6106564A for ; Sat, 27 Mar 2010 10:57:35 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 5C7618FC08 for ; Sat, 27 Mar 2010 10:57:35 +0000 (UTC) Received: from [192.168.1.4] (adsl-154-185-142.bna.bellsouth.net [68.154.185.142]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id o2RAvUOT094626 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 27 Mar 2010 06:57:30 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: gary.jennejohn@freenet.de In-Reply-To: <20100327102729.3bb8fba4@ernst.jennejohn.org> References: <20100326211706.GI18894@FreeBSD.org> <20100327102729.3bb8fba4@ernst.jennejohn.org> Content-Type: text/plain Organization: FreeBSD Date: Sat, 27 Mar 2010 05:57:24 -0500 Message-Id: <1269687444.35918.9.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.9 required=5.0 tests=AWL, BAYES_00, FH_DATE_PAST_20XX, RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: arch@FreeBSD.org, Gleb Smirnoff Subject: Re: touch panel support X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2010 10:57:35 -0000 On Sat, 2010-03-27 at 10:27 +0100, Gary Jennejohn wrote: > On Sat, 27 Mar 2010 00:17:06 +0300 > Gleb Smirnoff wrote: > > > Hello, > > > > I've got a display with touch panel, and I'd like to get in working > > in FreeBSD. The touch panel is supported by NetBSD's uep(4). So far, > > I have written uep(4) for FreeBSD, that successfully reads and parses > > data from the USB touch panel device. > > > > And then I've got a problem. Our mouse subsystem is not ready for > > touch panels. Our mouse(4) protocol does not support mouse driver > > passing _absolute_ coordinates to the mouse(4) subsystem. It only > > expects a relative movement of the mouse. But _absolute_ coordinates > > are principal idea of any touch panel. > > > > The lesser problem is lack of generic support for touch panel > > calibration. > > > > Both of these problems are solved in NetBSD. They've got a wsmux(4) > > device, just like our kbdmux(4), but for mice. This mouse multiplexer > > can also understand absolute coordinates from underlying mice drivers. > > NetBSD also has a generic support for calibration of touch panels. > > > > What is the FreeBSD future way to go: port things for NetBSD? Write > > something different? > > > > IMO we should go for porting what NetBSD has. Well, input device stuff is tricky... From a console perspective, what we do now with kbdmux and moused seems like the right thing. If you look at X though, we would really like to have independent input devices, each with its own set of characteristics. For multi-seat installations, you basically want to allocate some set of input devices to each seat. In other cases, you might want your touchpad to work independently of your mouse, for example. I'm not certain what the best way to achieve this is, but our input layer is currently pretty frustrating to deal with, especially when you throw HAL or DeviceKit into the mix. We have to go to a lot of effort to figure out if mice are using moused or not, and if they should be advertised to X. robert. > -- > Gary Jennejohn > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" -- Robert Noland FreeBSD