From owner-freebsd-bluetooth@FreeBSD.ORG Tue May 10 19:24:56 2005 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F35016A4CE for ; Tue, 10 May 2005 19:24:56 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id C849543D5A for ; Tue, 10 May 2005 19:24:55 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id AB37C3BE9C; Tue, 10 May 2005 14:24:54 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14502-01-98; Tue, 10 May 2005 14:24:54 -0500 (CDT) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45]) by mailgate1b.savvis.net (Postfix) with ESMTP id 8112A3BE5E; Tue, 10 May 2005 14:24:54 -0500 (CDT) Received: from s228130hz1ew031.apptix-01.savvis.net ([10.146.4.28]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 10 May 2005 14:24:47 -0500 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew031.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 10 May 2005 14:24:34 -0500 Message-ID: <42810A71.2030007@savvis.net> Date: Tue, 10 May 2005 12:24:33 -0700 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <4280F9F8.9010003@centtech.com> <4280FA6B.9020504@savvis.net> <42810459.7050906@centtech.com> In-Reply-To: <42810459.7050906@centtech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 May 2005 19:24:34.0505 (UTC) FILETIME=[E5DF9390:01C55595] X-Virus-Scanned: amavisd-new at savvis.net cc: freebsd-bluetooth@freebsd.org Subject: Re: bluetooth mouse (bthidd errors) X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 19:24:56 -0000 Eric, >>> I'm trying to get a bluetooth mouse working. When I run bthidd, I >>> see this in my /var/log/messages: >>> >>> bthidd[30447]: Could not open /dev/vkbdctl. No such file or directory >>> (2) >>> >>> Any hints? I'm running current as of about a week ago. >> >> # kldload vkbd >> >> but do not get any ideas :) bluetooth keyboard is not going to work. > > Thanks for the quick reply! That did the trick! Maybe a little hint in > the error output would help. Like: > > bthidd[30447]: Could not open /dev/vkbdctl. No such file or directory > (2). Did you load vkbd? well, may be. bthid(8) could just load it automatically. i will fix it in the future :) > Also - my mouse buttons (2/3) are swapped. I see a couple brief > mentions about it being a mouse bluetooth issue - but how do I fix it? patch by Vladimir Grebenschikov " vova at fbsd dot ru " --- usr.sbin/bluetooth/bthidd/hid.c.orig Sun Dec 26 11:32:30 2004 +++ usr.sbin/bluetooth/bthidd/hid.c Tue Dec 21 13:16:20 2004 @@ -357,7 +357,7 @@ mi.u.data.x = mouse_x; mi.u.data.y = mouse_y; mi.u.data.z = mouse_z; - mi.u.data.buttons = mouse_butt; + mi.u.data.buttons = (mouse_butt & (~0x6)) | ((mouse_butt & 0x2) << 1) | ((mouse_butt & 0x4) >> 1); if (ioctl(s->srv->cons, CONS_MOUSECTL, &mi) < 0) syslog(LOG_ERR, "Could not process mouse events from " \ thanks, max