From owner-freebsd-x11@FreeBSD.ORG Sun Jul 24 16:09:48 2011 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49D5B106566B for ; Sun, 24 Jul 2011 16:09:48 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx1.freebsd.org (Postfix) with ESMTP id C8F078FC2D for ; Sun, 24 Jul 2011 16:09:47 +0000 (UTC) Received: by fxe6 with SMTP id 6so5846651fxe.17 for ; Sun, 24 Jul 2011 09:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=ogPNex5wfB0oCeCHHrJhWBuayDlKVz51fC4FxVz2VtQ=; b=Q3EjbkCmMpHYgJRliu3PFAYM2ZBI4wxnr1sdFu95KlsZMJ8MHMHQ7MUqmUIDDpdjhX UmVLznHbi9qJTdanl2qUCjqjC3i3h/K7Xc7M7LDGOgg2D4bLzitNAg9QAscjtwnjZfUU r+DVHyl+4Ja5K6XF5Slg6t0lqK0PQgf1KS8To= Received: by 10.223.157.206 with SMTP id c14mr2597413fax.126.1311523779876; Sun, 24 Jul 2011 09:09:39 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 28sm3278714fax.3.2011.07.24.09.09.38 (version=SSLv3 cipher=OTHER); Sun, 24 Jul 2011 09:09:39 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E2C43B9.1030109@FreeBSD.org> Date: Sun, 24 Jul 2011 19:09:29 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Koop Mast References: <4E255F64.30608@FreeBSD.org> <4E2B219B.7070608@FreeBSD.org> <1311510259.1962.5.camel@crashalot.rainbow-runner.nl> In-Reply-To: <1311510259.1962.5.camel@crashalot.rainbow-runner.nl> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-x11@freebsd.org Subject: Re: USB HID support for xf86-input-mouse (including digitizers and touchscreens) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2011 16:09:48 -0000 Koop Mast wrote: > On Sat, 2011-07-23 at 22:31 +0300, Alexander Motin wrote: >> Alexander Motin wrote: >>> Looking on xf86-input-mouse, I've found that it includes some code to >>> support USB HID pointing devices directly using libusbhid library. But >>> that code seemed like newer worked (at least on FreeBSD) and is quite >>> limited. Same time that approach would allow us to override different >>> limitation, now imposed by sysmouse protocol. For example, to support >>> absolute coordinates, pressure force, multiple touches, etc. I've made a >>> patch, rewriting it to support wide range of pointing devices. I've >>> tested it with few mouses, digitizer and two touchscreens. >> First, I would like to tell about newer patch version: >> http://people.freebsd.org/~mav/patch-zz-input-mouse9 >> >> Second, I still would like to hear any comments from x11@ people about >> possibility to include this patch to the xf86-input-mouse port. Patch >> should not be invasive for existing users, as most of code it touches >> never worked on FreeBSD before. If with perspective of the port update >> you need patch for the newer driver version, I will gladly do it, it >> should not be difficult. > > Could you regen the patch against xf86-input-mouse 1.7.1? Sure. Here it is: http://people.freebsd.org/~mav/patch-zz-input-mouse9.1.7.1 It builds with our present X server, and old code even works, but I can't test the new, as even without my patch there is some problem with options parsing -- driver sees no options at all. I suppose it may be some incompatibility with our present (old) server. > And does this work on all FreeBSD versions? I believe so. libusbhid library (the only dependency) exist since FreeBSD 4.0 and I've successfully built driver with header from FreeBSD 5.1, when it got minor, but critical API change. With some luck it may even work on other BSDs as well, as our libusbhid came from NetBSD. -- Alexander Motin