2004-02-13 17:22:00

by Sunnan

[permalink] [raw]
Subject: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Hello, would you please help me?

I'm trying to get an apple wireless mouse working on the apple ibook
(g4, builtin usb).

I've got the debian bluez packages installed, actually

sudo apt-get install `apt-cache search bluez |cut -f1 -d' '`

(yeah, lazy maybe..)

and I've also got libs2 and utils2 installed from cvs.

Until I ran hid2hci I didn't see anything with hcitool, but hid2hci
seemed to work fine.

Now running hcitool dev gives me
Devices:
hci0 00:0D:93:04:19:15

I'm experimenting with running bthid (from bluez cvs utils2).
/var/log/daemon.log has
Feb 13 17:42:20 slowstorm bthid[980]: Bluetooth HID service started

but little else.
Once it got
Feb 13 17:25:20 slowstorm bthid[890]: Bluetooth HID service started
Feb 13 17:26:49 slowstorm bthid[890]: Connected: HID device (ffff:0000)
Feb 13 17:26:49 slowstorm bthid[890]: Connection failed: Connection
timed out (110)

..but that's all.

I'm also repeatedly grepping ps aux for bthid and it only appears for a
couple of minutes after starting it, then it's not there (so I usually
restart it).

I don't see any cursor movement or anything. I don't know so much about
bluetooth or about computers in general.

For a kernel, I use Linux 2.6.3-rc2-ben1 (on ppc).

lsmod indicates that uinput, hci_usb,rfcomm,l2cap and bluetooth are
loaded. I've created /dev/input/uinput with mknod as per
http://www.bueche.ch/comp/mx900/mx900.html

I had the mouse working under Mac OS X before I installed Debian.

What are the other steps I need to take before I can start using the mouse?

Thanks very much in advance, Sunnan


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2004-02-13 23:22:56

by Marcel Holtmann

[permalink] [raw]
Subject: Re: one more thing (was Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb))

Hi Sunnan,

> slowstorm/home/sunnan% hcitool inq
> Inquiring ...

make sure your mouse is visible.

> slowstorm/home/sunnan% hcitool dev
> Devices:
> hci0 00:0D:93:04:19:15
> slowstorm/home/sunnan% hcitool info 00:0D:93:04:19:15
> Device is not available or not connected.

This can't work, because you try to connect to your local device ;)

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-02-13 23:21:04

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Hi Sunnan,

> No, not at all. bthid keeps turning itself off (silently disappearing
> from "ps aux|grep bthid" after a while) and I'm not sure how to see if
> or how the mouse connects to the computer. is the dev from hcitool dev
> my bluetooth chip or the mouse? where will the mouse show up, under
> /dev/input/mice or what? I don't really get this basic stuff yet.

the "hcitool dev" shows your local device. The syslog will show your
mouse if it is connected. Take a look at the latest posts on the mailing
list about an Apple keyboard. I think it is the same PIN problem.

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-02-13 22:59:55

by Sunnan

[permalink] [raw]
Subject: one more thing (was Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb))

I need to add that hcitool inq gives me nothing:


slowstorm/home/sunnan% hcitool inq
Inquiring ...
slowstorm/home/sunnan% hcitool dev
Devices:
hci0 00:0D:93:04:19:15
slowstorm/home/sunnan% hcitool info 00:0D:93:04:19:15
Device is not available or not connected.
slowstorm/home/sunnan% sudo hcitool info 00:0D:93:04:19:15
Device is not available or not connected.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-02-13 22:54:10

by Sunnan

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Hello again,
Marcel Holtmann wrote:
> Do you got your mouse working?

No, not at all. bthid keeps turning itself off (silently disappearing
from "ps aux|grep bthid" after a while) and I'm not sure how to see if
or how the mouse connects to the computer. is the dev from hcitool dev
my bluetooth chip or the mouse? where will the mouse show up, under
/dev/input/mice or what? I don't really get this basic stuff yet.

I read and followed
http://www.bueche.ch/comp/mx900/mx900.html
and also read most of
http://www.holtmann.org/linux/bluetooth/hid.html
but I don't really know how to interpret it.
Sunnan


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-02-13 22:29:01

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Hi Sunnan,

> slowstorm/home/sunnan/.dl/mouseemu% sudo /sbin/hciconfig -a
> hci0: Type: USB
> BD Address: 00:0D:93:04:19:15 ACL MTU: 192:8 SCO MTU: 64:8
> UP RUNNING PSCAN ISCAN
> RX bytes:593 acl:2 sco:0 events:40 errors:0
> TX bytes:670 acl:2 sco:0 commands:28 errors:0
> Features: 0xff 0xff 0x0f 0x00 0x18 0x18 0x00 0x00
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
> Link policy: RSWITCH HOLD SNIFF PARK
> Link mode: SLAVE ACCEPT
> Name: 'slowstorm-0'
> Class: 0x000100
> Service Classes: Unspecified
> Device Class: Computer, Uncategorized
> HCI Ver: 1.1 (0x1) HCI Rev: 0x385 LMP Ver: 1.1 (0x1) LMP
> Subver: 0x385
> Manufacturer: Cambridge Silicon Radio (10)

this looks much better now. Your laptop contains a CSR chip with the
Bluetooth 1.2 AFH feature. Very nice.

Do you got your mouse working?

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-02-13 22:02:01

by Sunnan

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Marcel Holtmann wrote:
> the version of utils2 have a big endian problem, which I have now fixed
> in CVS.

Lucky! I always become happy when I find a bug.

> Try your version from bluez-utils-2.4. Better you call it with
> the full path "/sbin/hciconfig -a".


slowstorm/home/sunnan/.dl/mouseemu% sudo /sbin/hciconfig -a
hci0: Type: USB
BD Address: 00:0D:93:04:19:15 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:593 acl:2 sco:0 events:40 errors:0
TX bytes:670 acl:2 sco:0 commands:28 errors:0
Features: 0xff 0xff 0x0f 0x00 0x18 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'slowstorm-0'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x385 LMP Ver: 1.1 (0x1) LMP
Subver: 0x385
Manufacturer: Cambridge Silicon Radio (10)



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-02-13 22:15:09

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Hi Ramon,

> I think this wasn't for me. Mine is a different question...

it was for the mailing list ;)

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-02-13 22:13:16

by Ramon A Reveron

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Hi Marcel,

I think this wasn't for me. Mine is a different question...

Thanks...

Regards,
Ramon A. Reveron
IBM Retail Store Solutions
Software Engineer
______________________________________
Phone - (919) 301-5346
Lotus Notes - Ramon A Reveron/Raleigh/IBM
Internet Email- [email protected]
______________________________________




Marcel Holtmann <[email protected]>
Sent by: [email protected]
02/13/2004 04:50 PM

To: Sunnan <[email protected]>
cc: BlueZ Mailing List <[email protected]>
Subject: Re: [Bluez-users] apple wireless mouse on apple
ibook (g4, builtin usb)


Hi Sunnan,

> 2.4-6 from Debian sid, as well as utils2 from bluez cvs. hciconfig comes

> from that cvs checkout (though I have two version in my path, the cvs
> version takes precedence, while hcidump comes out of Edds bluez-hcidump
> package, version 1.5-2 for debian sid.

the version of utils2 have a big endian problem, which I have now fixed
in CVS. Try your version from bluez-utils-2.4. Better you call it with
the full path "/sbin/hciconfig -a".

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-02-13 21:50:07

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Hi Sunnan,

> 2.4-6 from Debian sid, as well as utils2 from bluez cvs. hciconfig comes
> from that cvs checkout (though I have two version in my path, the cvs
> version takes precedence, while hcidump comes out of Edds bluez-hcidump
> package, version 1.5-2 for debian sid.

the version of utils2 have a big endian problem, which I have now fixed
in CVS. Try your version from bluez-utils-2.4. Better you call it with
the full path "/sbin/hciconfig -a".

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-02-13 20:48:29

by Sunnan

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Hi again,
after rebooting and loading my modules (and starting hcid, sdpd and
rfcomm, the latter probably unnecessary but I'm erring on the side of
caution?), I run:
sudo hcidump -w dumpdata

but just get:

HCIDump - HCI packet analyzer ver 1.5
Can't attach to device hci0. No such device(19)

and it exits without writing anything to the file.

and "hciconfig -a" exits silently.

then I run hid2hci anyway, it prints:
Switching device 05ac:1000 to HCI mode was successful

and then I can do hcidump -w dumpdata
which gives me to stdout:
HCIDump - HCI packet analyzer ver 1.5
device: hci0 snap_len: 1028 filter: 0xffffffff

I had wait a while before it wrote anything to the file.
Then I waited a bit more, and it wrote a bit more. This is normal.
I've attached the file.

> I don't know what kind of module this is. Please run "hcidump -w <file>"
> before running "hciconfig -a" and send us the dump. Maybe we have a big
> endian problem here. What bluez-utils version do you have installed?


2.4-6 from Debian sid, as well as utils2 from bluez cvs. hciconfig comes
from that cvs checkout (though I have two version in my path, the cvs
version takes precedence, while hcidump comes out of Edds bluez-hcidump
package, version 1.5-2 for debian sid.


> Reboot your machine and show me this file before you run hid2hci.

I'm sorry, but it wasn't possible since hcidump wouldn't write one, as
described above.


Attachments:
dumpdata (612.00 B)

2004-02-13 19:56:37

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Hi Sunnan,

> I don't know how to show how it was before. Now it shows:
>
> slowstorm/home/sunnan% sudo hciconfig -a
> hci0: Type: USB
> BD Address: 00:0D:93:04:19:15 ACL MTU: 192:8 SCO MTU: 64:8
> UP RUNNING PSCAN ISCAN
> RX bytes:6963 acl:399 sco:0 events:198 errors:0
> TX bytes:2109 acl:66 sco:0 commands:62 errors:0
> Features: 0xff 0xff 0x0f 0x00 0x18 0x18 0x00 0x00
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
> Link policy: RSWITCH HOLD SNIFF PARK
> Link mode: SLAVE ACCEPT
> Name: 'slowstorm-0'
> Class: 0x000100
> HCI Ver: 1.1 (0x1) HCI Rev: 0x8503 LMP Ver: 1.1 (0x1) LMP
> Subver: 0x8503
> Manufacturer: not assigned (2560)

I don't know what kind of module this is. Please run "hcidump -w <file>"
before running "hciconfig -a" and send us the dump. Maybe we have a big
endian problem here. What bluez-utils version do you have installed?

> One of the more interesting(?) entries in my /var/log/daemon.log after
> doing this was:
>
> Feb 13 19:38:29 slowstorm sdpd[25047]: init_server: binding L2CAP
> socket: Address already in use

You can't rund sdpd twice, but for HID support this is irrelevant.

> hcidump -w dump.data
>
> printed:
> HCIDump - HCI packet analyzer ver 1.5
> device: hci0 snap_len: 1028 filter: 0xffffffff
>
> but never quit. I checked dump.data with wc from time to time but it
> never appeared to get any largers.
>
> I got childishly impatient after a couple of minutes and hit C-c. I
> attached the file anyway. Is it supposed to take very long time? If so,
> I could give it another go. Thanks for your patience.

This is correct, because you have to terminate it with CTRL-C.

> T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
> D: Ver= 1.10 Cls=e0(unk. ) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
> P: Vendor=05ac ProdID=8203 Rev= 9.01
> C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=100mA
> I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
> E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
> E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
> E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
> I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
> E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
> I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
> E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
> I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
> E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
> I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
> E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
> I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
> E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
> I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
> E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms
> I: If#= 2 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=00 Driver=(none)

Reboot your machine and show me this file before you run hid2hci.

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-02-13 18:59:24

by Sunnan

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)


T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.3-rc2-ben1 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0001:01:1b.1
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.3-rc2-ben1 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0001:01:1b.0
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.3-rc2-ben1 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0001:01:1a.0
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=e0(unk. ) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=05ac ProdID=8203 Rev= 9.01
C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms
I: If#= 2 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=00 Driver=(none)


Attachments:
devices.txt (2.77 kB)
dump.data (612.00 B)
Download all attachments

2004-02-13 17:51:15

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] apple wireless mouse on apple ibook (g4, builtin usb)

Hi Sunnan,

> I'm trying to get an apple wireless mouse working on the apple ibook
> (g4, builtin usb).
>
> I've got the debian bluez packages installed, actually
>
> sudo apt-get install `apt-cache search bluez |cut -f1 -d' '`
>
> (yeah, lazy maybe..)
>
> and I've also got libs2 and utils2 installed from cvs.
>
> Until I ran hid2hci I didn't see anything with hcitool, but hid2hci
> seemed to work fine.
>
> Now running hcitool dev gives me
> Devices:
> hci0 00:0D:93:04:19:15

what is the output of "hciconfig -a" and the content of
/proc/bus/usb/devices (before and after the run of hid2hci)?

> I'm experimenting with running bthid (from bluez cvs utils2).
> /var/log/daemon.log has
> Feb 13 17:42:20 slowstorm bthid[980]: Bluetooth HID service started
>
> but little else.
> Once it got
> Feb 13 17:25:20 slowstorm bthid[890]: Bluetooth HID service started
> Feb 13 17:26:49 slowstorm bthid[890]: Connected: HID device (ffff:0000)
> Feb 13 17:26:49 slowstorm bthid[890]: Connection failed: Connection
> timed out (110)
>
> ..but that's all.
>
> I'm also repeatedly grepping ps aux for bthid and it only appears for a
> couple of minutes after starting it, then it's not there (so I usually
> restart it).
>
> I don't see any cursor movement or anything. I don't know so much about
> bluetooth or about computers in general.

The Apple Bluetooth mouse expects a PIN or a link key even if you only
connect to the SDP service (security mode 3). This is stupid for a HID
mouse, but they did it this way. A working PIN is "0000". So I say you
replace your PIN helper program (from hcid.conf) with the following
executable script

#!/bin/sh
echo "PIN:0000"

and put also "0000" into /etc/bluetooth/pin. Restart the hcid and see
how it goes. If this don't work, run "hcidump -w <file>" and send us the
dump file.

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users