bthidd

Maksim Yevmenkin maksim.yevmenkin at savvis.net
Wed Apr 20 13:19:10 PDT 2005


Ronald,

>> looks like the phone has both keyboard and the mouse part. do you 
>> know  if phone sends mouse events (if you move joystick i guess)? how 
>> about  running 'hcidump' while pressing buttons on the phone?
>>
>>> # bthidcontrol -a phone query > /etc/bluetooth/bthidd.conf
>>>  # bthidd -d
>>> <select 'control external device' on my phone>
>>> bthidd[786]: Accepted control connection from 00:0f:de:78:93:d8
>>> bthidd[786]: Accepted interrupt connection from 00:0f:de:78:93:d8
>>
>> that looks fine. it means there is a hid session between phone and 
>> the  computer. please use hcidump to see if there is any hid events 
>> going  from the phone.
>>
>>> And now I'm stuck. I don't see a new device in /dev or a msg in   
>>> dmesg/console.
>>
>> there wont be any device. the mouse part *might* work. btw try to run  
>> bthidd on console (not on xterm).
> 
> I understand more now. I need to run moused to make it work. With moused 
> I  can use my phone to control the mouse-pointer and mouse-buttons on 
> the  console. I think I need to set up X11 to use moused for this to 
> work on X  also. Does this work?

right, i assumed you ran moused(8). so, basically here is what i do

1) run moused(8)

2) specify 'Option "Device" "/dev/sysmouse"' in my /etc/X11/XF86Config

3) run bthidd(8) on the console.

now i can control mouse pointer in both console and X with both (wired 
and wireless) mice.

thanks for the hcidump. it shows that phone sends both mouse and 
keyboard events.

thanks,
max


More information about the freebsd-bluetooth mailing list