public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Quattlebaum <stephen@covidimus.net>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Connection Timeout
Date: Fri, 29 Oct 2004 21:20:59 -0500	[thread overview]
Message-ID: <1099102859.9167.32.camel@athene.covidimus.net> (raw)
In-Reply-To: <1099091721.6912.35.camel@pegasus>

(I combined responses to two responses to my original post in this
message.  Excuse the length, please: I included as much extra info as
seemed pertinent since I am apparently the first on this list to try one
of these new generation of MS mice.)

> > I applied patch-2.6.9-mh2 from http://www.bluez.org/patches.html and
> > rebuilt my kernel and modules.
> 
> be carful with this, because these patches are only tested with the
> kernel they are made for.
> 

I only got patch failures on two files, and both were trivial to merge
by hand.  Point taken, though.

> This is the new dongle from Microsoft and it is now Broadcom based and
> so you maybe need an additional patch to make it working. When it works,
> send back the output from "hciconfig -a".
> 
> Btw I need this new desktop package from Microsoft for testing. Is there
> anyone willing to donate one?
> 
> Regards

Your patch worked.  Thanks!

athene root # hciconfig -a
hci0:   Type: USB
        BD Address: 00:50:F2:E8:E5:90 ACL MTU: 377:10  SCO MTU: 16:0
        UP RUNNING PSCAN ISCAN
        RX bytes:38552 acl:1826 sco:0 events:404 errors:0
        TX bytes:6265 acl:155 sco:0 commands:106 errors:0
        Features: 0xff 0xfe 0x0d 0x38 0x08 0x08 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'BlueZ (0)'
        Class: 0x100100
        Service Classes: Object Transfer
        Device Class: Computer, Uncategorized
        HCI Ver: 1.2 (0x2) HCI Rev: 0x3 LMP Ver: 1.2 (0x2) LMP Subver:
0x800
        Manufacturer: Broadcom Corporation (15)


> Btw I need this new desktop package from Microsoft for testing. Is
> there anyone willing to donate one?

Would if I could!  I really shouldn't have even spent the money on
_mine_ right now... :-)

--- More Info and Questions ---

Now that the device is recognized, I have successfully synced w/ my T600
using multisync and gotten the mouse to work.  Buttons 3-5 and the
scrollwhell even work (though I still need to remap what they do...)
The mouse is still a little hokey, though.  Perhaps someone can help me
out here.  I think I know what's going on, but I don't know what, if
any, is the proper way to fix things.

1. hid2hci was not necessary.  As soon as I did "hciconfig hci0 up"
post-patch, the mouse immediately _stopped_ working until I got it to
work using hci below.  Apparently, when the dongle was initialized for
hci it stopped whatever hid jiggery it might have been doing (Henryk
hypothesized that it was spoofing itself as a standard USB mouse).  If
that is correct, I actually think it's a nice bit of behavior, since it
stops as soon as the OS proves that it knows what bluetooth is, thank
you very much.  A bit of random extra info, though: when the device was
in its apparent hid spoofing mode, there were _two_ extra mice devices
in /dev/input.  My USB mouse is mouse0, and "cat mouse2" proved that the
BT mouse was mouse2.  I don't know what mouse1 was... "cat mouse1" never
had any output when I moved either mouse.  Now that the mouse is working
in HCI mode, it's at /dev/input/mouse1 and I have no mouse2.

2. In order to get the mouse to work, (since it was earlier paired to an
XP SP2 machine, I'm guessing), I had to follow the instructions at
http://www.bueche.ch/comp/mx900/mx900.html (which is actually for a
logitek mouse, but worked).  I did "hidd --connect 00:50:f2:e8:fb:f2" to
"poke" the mouse, whereafter it started working.  Before I got to that
point, I had tried moving it back to the XP machine temporarily, and
ended up having to remove the mouse profile from that XP machine and
re-scan for it - not even a reboot of both the mouse (removing both
batteries) and the OS fixed it but the remove/rescan did.  The dongle
moved with the mouse when I switched computers (I only have one dongle
right now).  So, for both XP and Linux, I had to manually reconnect
before the mouse would work after talking to the other OS.  I don't
actually plan on moving this mouse between the two a lot, but I _could_
potentially have this mouse or another one like it on a USB KVM at some
point in the future, so this behavior dissapoints me a little.  I think
I understand - the mouse can only be paired to one PC at a time b/c
otherwise it'd be moving cursors on two screens at once if both are in
range, but surely there's an easy way to say, "you're on this PC now"
that doesn't involve remembering or looking up the device ID (or going
through the add/remove BT device wizard in XP).  I had hoped that the
mouse actually paired to the adapter, in which case it should, in
theory, work on a KVM, but its behavior makes it look like it pairs to
the PC.  Is that right?  Any suggestions on these issues?  (A pointer to
appropriate documentation will be more than sufficient, if I'm just
being blind :-) )

3. Right after I got the mouse working with HCI, I walked away from the
PC for a few minutes.  When I came back, the mouse wasn't working
anymore.  I know this mouse goes to sleep after a while, but at least on
the XP machine it wakes back up when you move it.  It didn't on linux,
and I had to use hidd to poke it again.  After that first time, however,
it hasn't happened again, even when I left it sitting for a while.
Weird behavior... should I expect to have to hidd-poke the mouse anytime
I walk away for a while?  (Surely not...)

4. usbview still shows the device as red, though it's working fine, so
here's independent verification of Henryk's observation that it
apparently doesn't matter.



Thanks a lot guys!



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2004-10-30  2:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29 22:50 [Bluez-users] Connection Timeout Stephen Quattlebaum
2004-10-29 23:15 ` Marcel Holtmann
2004-10-30  2:20   ` Stephen Quattlebaum [this message]
2004-10-30 13:37     ` Marcel Holtmann
2004-10-29 23:19 ` Henryk Plötz
2004-10-30 10:22 ` Jouni.Lohikoski@iki.fi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1099102859.9167.32.camel@athene.covidimus.net \
    --to=stephen@covidimus.net \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox