From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 23 13:27:21 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5B6ADA36; Thu, 23 Jan 2014 13:27:21 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D69FB1E7F; Thu, 23 Jan 2014 13:27:20 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.7/8.14.7) with ESMTP id s0NDR6si084151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 23 Jan 2014 17:27:06 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.7/8.14.7/Submit) id s0NDR5eb084150; Thu, 23 Jan 2014 17:27:05 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 23 Jan 2014 17:27:05 +0400 From: Gleb Smirnoff To: Brock Williams Subject: Re: kern/183032: uep driver not working with eGalax touchcontroller Message-ID: <20140123132705.GR66160@FreeBSD.org> References: <201401230000.s0N002SO009456@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201401230000.s0N002SO009456@freefall.freebsd.org> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: freebsd-bugs@FreeBSD.org, hselasky@FreeBSD.org X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 13:27:21 -0000 Hi, Brock! On Thu, Jan 23, 2014 at 12:00:02AM +0000, Brock Williams wrote: B> Attached is a simple patch I made to the xf86-input-mouse port to B> implement the SwapXY option. This makes my eGalax touchscreen usable. B> B> I'm sure there is a more elegant way to do this but it works for our B> needs. IMO, it'll be better to do the swap on lower level - the uep(4) kernel driver. I can provide a patch for you to test. It might be even possible to autodetect device and autotune this. Hans, can you provide any advice on adding USB quirck. We've got different touchscreens that are identified and attached by uep(4), but they behave differently. Is there a way to fetch additional information from a device (vendor, revision, etc...)? -- Totus tuus, Glebius.