From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 3 17:02:04 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5859D1065671 for ; Thu, 3 Apr 2008 17:02:04 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.179]) by mx1.freebsd.org (Postfix) with ESMTP id E91DE8FC24 for ; Thu, 3 Apr 2008 17:02:03 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so1633493ele.12 for ; Thu, 03 Apr 2008 10:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Nigv5gvrmYz4SjTNuKEKkIDf4LM57PwsWivWEqUDKV4=; b=t8yQ742gjId/FrwyWrdIr+s652rjaFV6/7X6XRyWsoGAPbHWIlUiJTq1Z7aewje41HDqc9J9Ur6gKkfvZQrWf7ddkk3VV4tFRpurXQZt0NYuQDtJTy3XT2Xte0nmXiHq40m8bsYYx1WRtitOVa8q1U/soV9O2yq0hwEnTJye944= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l6+wKnBcBM4uAOHnm5W0JQwEbJ9dNvVdHu60r20UWT7lTCloYy81k4+eFiJ9pCk74fpXLq+lcZ6ta0NCttIQ3/7nZ4QxhJc9iz7F1mSr6+eDGjznSbIKzKfSUgZd+hVIEDLrLQwh5SurYOMOTYNxdpeWrE/Mnp1krI2iLy6LXJ0= Received: by 10.114.109.1 with SMTP id h1mr82964wac.35.1207240608600; Thu, 03 Apr 2008 09:36:48 -0700 (PDT) Received: by 10.114.146.10 with HTTP; Thu, 3 Apr 2008 09:36:40 -0700 (PDT) Message-ID: Date: Thu, 3 Apr 2008 17:36:40 +0100 From: "Mark Hobden" To: "Maksim Yevmenkin" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> <1206904241.480342.891.nullmailer@galant.ukfsn.org> <47F13BAD.9060808@users.sf.net> <1207142908.576787.1033.nullmailer@galant.ukfsn.org> Cc: freebsd-bluetooth@freebsd.org, mato , freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 17:02:04 -0000 On 02/04/2008, Maksim Yevmenkin wrote: > > I don't know - bthidd(4) could grow the support for AC_Pan fairly easily > > but I don't know how you would get that into the kernel - the mouse_info > > structure has no W direction and the ioctl would need to be versioned if > > the structure was extended as there was no padding.. > > exactly Iain. parsing hid messages in bthidd(8) and extracting all the > data is trivial. the question is how to feed those data into the > kernel. right now, bthidd(8) uses console ioctl to feed data into the > kernel. as you pointed out, mouse_info structure (specifically > mouse_data union) does not have have w direction. > > > btw just to make you feel better I should say that sideways scroll does > > not always work in applications; eg GThumb considers the extra buttons > > to be 'next' and 'prev' instead and sideways scroll just jumps to the next > > picture. > > i have a wired usb apple mighty mouse here and horizontal scrolling > does not work for me at all. quick look at ums(4) showed that it does > not export w data (it tries to locate both wheel and z axis, however > it does not look for ac_pan axis). > > so, it appears that we need to teach moused(8), sysmouse(4) and mice > drivers about second wheel. it appears to be a somewhat bigger chunk > of work. > > thanks, > max Hi Martin, I have a patch somewhere at home that manages to do all of the above. I had planned to re-wite part of it to not require increasing the size of an xorg structure I changed - but it doesn't look like I will have time to do that for a while. At present it applies on top of the uhidev patches but it probably wouldn't be too difficult to get it to apply without them. I have been using it for a little while now and its been working fine for me. I will try and clean it up and document what needs to be re-compiled to get it working and then post it sometime in the next few days. Kind Regards, Mark Hobden.