2004-03-07 22:13:50

by Ben Wilson

[permalink] [raw]
Subject: [Bluez-users] bthid on ppc

Hi,
I am trying to get the MS bluetooth mouse working with a
PowerBook with 2.6.3_rc2-benh kernel.

I can get pan and bnep working, letting me access the internet
wireless! Awesome, even if it is only about 20k/sec, is that
normal?

I also got rfcomm working, and can establish ppp connection
with my cellphone provider.

The only thing that isn't working is bthid. It seems to die
silently when ever I establish the connection, or move the the
mouse. I still see events generated with hciconfig, but bthid
keeps exiting for no reason I can see.

Any advice? Anyone get this unholy trinity (Apple Laptop, MS
mouse, running Linux) working?

The mouse works fine with the MS dongle on x86.

Thanks!

--
Ben


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2004-03-16 07:48:32

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] bthid on ppc

Hi Sunnan,

> Thanks for correcting my misinformation.
> Could you please tell me where this suspected non-big-endian safe code
> is? (Which files and functions, etc?)

I think the problems are in libs2/lib/sdp.c or libs2/lib/sdp_data.c.

> As I said, I've gotten the other bthid to work for repeating intervals a
> few seconds long. I guess it could still be a big endian problem, but it
> doesn't crash, it's just unable to read SDP (I don't even know what SDP
> is! Embarassing, I'm going to read up on that) sometimes.

There is a sdptest program under libs2/test and you can play with.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-03-16 00:24:27

by Sunnan

[permalink] [raw]
Subject: Re: [Bluez-users] bthid on ppc

Hi again, Marcel,
Marcel Holtmann wrote:
> the sdpd has nothing to do with it. It is the "new" SDP code that both
> implementations carry and I think none of it is big endian safe.

Thanks for correcting my misinformation.
Could you please tell me where this suspected non-big-endian safe code
is? (Which files and functions, etc?)

As I said, I've gotten the other bthid to work for repeating intervals a
few seconds long. I guess it could still be a big endian problem, but it
doesn't crash, it's just unable to read SDP (I don't even know what SDP
is! Embarassing, I'm going to read up on that) sometimes.

one love, sunnan

2004-03-15 23:35:59

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] bthid on ppc

Hi Sunnan,

>
> Seeing this thread made me take up my old efforts to get my Apple
> wireless mouse to work on my Debian-running iBook g4 (with built-in bt),
> but it can't be the same type of issue since I did get Peter's bthid
> mentioned above (same name, different program than in BlueZ cvs) to
> compile (had to change some includes and so on) and work, it doesn't
> crash but I could only use the mouse for a few seconds at a time, then
> it would freeze for a few seconds, then work a few seconds, and so on
> (and I mean full seconds, not figuratively speaking).
> That was yesterday. Today I didn't even get that working, I managed to
> move the cursor for just a short blink, maybe half a second or so.
>
> That error could be in sdpd (that's what Peter's bthid's error messages
> hint at, or so I interpret them) or in that bthid, or somewhere else, I
> don't know.
>
> So, anyway, it's not the same issue. BlueZ cvs bthid just dies silently
> for me (even though the other tools, sdptool, hcitool etc works fine).

the sdpd has nothing to do with it. It is the "new" SDP code that both
implementations carry and I think none of it is big endian safe.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-03-15 23:14:37

by Sunnan

[permalink] [raw]
Subject: Re: [Bluez-users] bthid on ppc

Ben Wilson wrote:
> Does this mean this is a known issue? The HID program from
> http://www.visi.com/~pmk/msbtkb-linux.html wouldn't even compile
> for me, I figured it may be the same type of issue.

Seeing this thread made me take up my old efforts to get my Apple
wireless mouse to work on my Debian-running iBook g4 (with built-in bt),
but it can't be the same type of issue since I did get Peter's bthid
mentioned above (same name, different program than in BlueZ cvs) to
compile (had to change some includes and so on) and work, it doesn't
crash but I could only use the mouse for a few seconds at a time, then
it would freeze for a few seconds, then work a few seconds, and so on
(and I mean full seconds, not figuratively speaking).
That was yesterday. Today I didn't even get that working, I managed to
move the cursor for just a short blink, maybe half a second or so.

That error could be in sdpd (that's what Peter's bthid's error messages
hint at, or so I interpret them) or in that bthid, or somewhere else, I
don't know.

So, anyway, it's not the same issue. BlueZ cvs bthid just dies silently
for me (even though the other tools, sdptool, hcitool etc works fine).

one love sunnan


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-03-08 05:40:01

by Ben Wilson

[permalink] [raw]
Subject: Re: [Bluez-users] bthid on ppc

Hi Marcel,

> actually I think the new SDP code and the HID program has some endian
> bugs which causes your problem.

Does this mean this is a known issue? The HID program from
http://www.visi.com/~pmk/msbtkb-linux.html wouldn't even compile
for me, I figured it may be the same type of issue.

Are there any plans for making this work? I'm not a programmer,
but may be able to find someone to do it :)

Thanks!

--
Ben


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-03-08 00:13:19

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] bthid on ppc

Hi Ben,

> I am trying to get the MS bluetooth mouse working with a
> PowerBook with 2.6.3_rc2-benh kernel.
>
> I can get pan and bnep working, letting me access the internet
> wireless! Awesome, even if it is only about 20k/sec, is that
> normal?
>
> I also got rfcomm working, and can establish ppp connection
> with my cellphone provider.
>
> The only thing that isn't working is bthid. It seems to die
> silently when ever I establish the connection, or move the the
> mouse. I still see events generated with hciconfig, but bthid
> keeps exiting for no reason I can see.
>
> Any advice? Anyone get this unholy trinity (Apple Laptop, MS
> mouse, running Linux) working?
>
> The mouse works fine with the MS dongle on x86.

actually I think the new SDP code and the HID program has some endian
bugs which causes your problem.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users