Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2005 14:57:48 -0500
From:      Eric Anderson <anderson@centtech.com>
To:        Maksim Yevmenkin <maksim.yevmenkin@savvis.net>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: bluetooth mouse (bthidd errors)
Message-ID:  <4281123C.2090700@centtech.com>
In-Reply-To: <42810A71.2030007@savvis.net>
References:  <4280F9F8.9010003@centtech.com> <4280FA6B.9020504@savvis.net> <42810459.7050906@centtech.com> <42810A71.2030007@savvis.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Maksim Yevmenkin wrote:
> 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!  Is this or another patch going to be committed to fix this 
permanently?  Just curious..

Also - for those who don't want to patch their systems, this works fine 
in X:

xmodmap -e "pointer = 1 3 2 4 5 6 7"

Max - thanks for the awesome work on bluetooth!

Eric




-- 
------------------------------------------------------------------------
Eric Anderson        Sr. Systems Administrator        Centaur Technology
A lost ounce of gold may be found, a lost moment of time never.
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4281123C.2090700>