From owner-freebsd-arch@FreeBSD.ORG Fri Mar 26 21:55:24 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 2BAAB106564A for ; Fri, 26 Mar 2010 21:55:24 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id 8EF558FC1A for ; Fri, 26 Mar 2010 21:55:23 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.3/8.14.3) with ESMTP id o2QLH66m043465 for ; Sat, 27 Mar 2010 00:17:06 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.3/8.14.3/Submit) id o2QLH66P043464 for arch@FreeBSD.org; Sat, 27 Mar 2010 00:17:06 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sat, 27 Mar 2010 00:17:06 +0300 From: Gleb Smirnoff To: arch@FreeBSD.org Message-ID: <20100326211706.GI18894@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: 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: Fri, 26 Mar 2010 21:55:24 -0000 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? -- Totus tuus, Glebius.