Date: Thu, 11 May 2006 20:57:47 -0500 From: Eric Anderson <anderson@centtech.com> To: Sean McNeil <sean@mcneil.com> Cc: bluetooth@freebsd.org Subject: Re: Setting up a bluetooth mouse on FreeBSD 6 Message-ID: <4463EB9B.8070304@centtech.com> In-Reply-To: <1147384638.88133.4.camel@triton.mcneil.com> References: <1147384638.88133.4.camel@triton.mcneil.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------090207040400060100090102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sean McNeil wrote: >>From previous emails, I found: > > Eric Anderson's blog at > http://destari.blogspot.com/2006/01/setting-up-bluetooth-mouse-on-freebsd.html > > I did this and my mouse works, but unfortunately the middle and right > mouse buttons are reversed. This is a bluetooth mouse I got with my > Acer Ferrari lapop. Movement isn't quite as smooth as a USB mouse > either, but it isn't that bad. > > Another odd thing here is that bluetooth is enabled in the standard > build of -CURRENT, but bthidd and bthidcontrol are not. Will these be > added in anytime soon? There is a patch to bthidd (check gnats, but I've attached the one I found) to fix that. I'm not sure what Max's plans are to commit or not, but it's a needed patch for sure. I think (but I'm nobody) that bthidd and bthidcontrol should be enabled on current for greater exposure, and then enabled on -STABLE. I've been using it for quite some time, and it's been very solid. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ --------------090207040400060100090102 Content-Type: text/x-patch; name="bthidd.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bthidd.patch" Index: hid.c =================================================================== RCS file: /alt/ncvs/src/usr.sbin/bluetooth/bthidd/hid.c,v retrieving revision 1.2 diff -u -u -r1.2 hid.c --- hid.c 18 Nov 2004 18:05:15 -0000 1.2 +++ hid.c 5 May 2006 18:55:52 -0000 @@ -130,6 +130,8 @@ mouse_x, mouse_y, mouse_z, mouse_butt, mevents, kevents; +#define HID_BUT(i) ((i) < 3 ? (((i) ^ 3) % 3) : (i)) + assert(s != NULL); assert(s->srv != NULL); assert(data != NULL); @@ -216,7 +218,7 @@ break; case HUP_BUTTON: - mouse_butt |= (val << (usage - 1)); + mouse_butt |= (val << HID_BUT(usage - 1)); mevents ++; break; --------------090207040400060100090102--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4463EB9B.8070304>