From: Matthew Grant <grantma@anathoth.gen.nz>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: BlueZ Mailing List <bluez-users@lists.sourceforge.net>,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [Bluez-users] Re: PROBLEM: Apple powerbook, Apple BT keyboard, keyboard does not reconnect on reboot
Date: Sat, 06 Nov 2004 19:12:27 +1300 [thread overview]
Message-ID: <1099721547.5132.70.camel@localhost> (raw)
In-Reply-To: <1098676528.6465.68.camel@pegasus>
[-- Attachment #1: Type: text/plain, Size: 4128 bytes --]
Marcel,
Finally figured out what is wrong. There is definitely a Powerpc
problem with the BT HIDPGETCONNLIST ioctl on the powerpc arch.
The HID ioctl HIDPGETCONNLIST is not returning any HID device entries
from the kernel on the Powerpc architecture, even when a blue-tooth
keyboard and mouse are working.
In Debian's boot scripts hidd --killall is used to nicely close the
connections so that the devices will reconnect cleanly on next boot.
This is not working for me as the above ioctl is not returning a list if
addresses to be acted on.
Work around for me will be to explicitly kill each device address before
stopping hidd, as hidd --kill <device address> works. Does this mean
that the devices are registering in the hidp module, but there is a
problem in passing the list back out of the kernel?
Do you have access to a powerpc machine to test this on? Could you give
me any instructions on getting the hidp.ko module to produce the debug
that would be useful?
It would be good to get this one solved, as I would like to look at
shallower bugs which I can knock off myself. First look at the hidp code
with this one freaked me out a bit.
(Eg: like fixing the transfer from USB hid compatibility mode to HCI
mode for the BT Apple keyboard - it seems to get stuck in some mode that
could be fixed by sending it a BT instruction to tell it to reset or
switch modes. The second one is fixing it so that the special Apple
only keys work 100% as expected. Sounds like a simple job of altering
the keymap if an Apple BT keyboard is detected.)
Thanks v. much for all your work and for your help!
Cheers,
Matthew Grant
On Mon, 2004-10-25 at 16:55, Marcel Holtmann wrote:
> Hi Matthew,
>
> > Running 2.6.8 mh2, bluz-utils 2.10 on Debian Sarge. Marcel, please
> > excuse me for mailing you directly as wellas the list, as I want to send
> > you a binary hcidump output so you can get maximum debug info.
>
> don't care about that. If you exceed the mailing list limited I will
> accept the post manually and let it through.
>
> > I am having problems with the keyboard not reconnecting on reboot when
> > hciattach switches the internal dongle from USB HID emulation to HCI.
>
> It is not hciattach that is switching, it is hid2hci.
>
> > The Lower level layer is definitely connected, but the keyboard events
> > are not generating keyboard input at all. I have to switch the keyboard
> > off, and then switch it back on, and it renegotiates, and it all starts
> > working.
>
> What does "hidd --show" tell you when the keyboard is connected, but not
> working?
>
> > This test is not using security mode 3 yet, though I will be doing this
> > to prevent people sniffing passwords.... but the same problem happens
> > then.
>
> Actually I thought, that the Apple keyboard is always in security mode
> three, but from your dumps it looks like that this is not true when it
> reconnects. What does "hcitool con" say about the reconnect ACL link?
>
> > When I boot from OS X back into Linux, the problem does not occur.
>
> This is strange and actually I never had any problems with the Apple HID
> stuff, but I used it on a normal Intel machine.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
--
===============================================================================
Matthew Grant /\ ^/\^ grantma@anathoth.gen.nz /~~~~\
A Linux Network Guy /~~\^/~~\_/~~~~~\_______/~~~~~~~~~~\____/******\
===GPG KeyID: 2EE20270 FingerPrint: 8C2535E1A11DF3EA5EA19125BA4E790E2EE20270==
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-11-06 6:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-24 21:45 PROBLEM: Apple powerbook, Apple BT keyboard, keyboard does not reconnect on reboot Matthew Grant
2004-10-24 22:07 ` [Bluez-users] " Matthew Grant
2004-10-25 3:56 ` Marcel Holtmann
2004-10-25 3:55 ` [Bluez-users] " Marcel Holtmann
2004-10-25 8:59 ` Matthew Grant
2004-10-26 10:34 ` [Bluez-users] " Matthew Grant
2004-11-06 6:12 ` Matthew Grant [this message]
2004-11-06 12:34 ` Marcel Holtmann
2004-11-06 20:11 ` Matthew Grant
2004-11-06 21:31 ` Marcel Holtmann
[not found] ` <1099788984.4543.5.camel@localhost>
2004-11-07 2:38 ` Marcel Holtmann
2004-11-08 19:38 ` Matthew Grant
2004-11-08 19:53 ` Marcel Holtmann
2004-11-10 19:34 ` Matthew Grant
2004-11-13 3:39 ` Matthew Grant
2004-11-13 6:09 ` Matthew Grant
2004-11-13 12:53 ` Marcel Holtmann
2004-11-13 18:52 ` Matthew Grant
2004-11-13 19:05 ` Marcel Holtmann
2004-11-13 19:55 ` Matthew Grant
2004-11-13 20:01 ` Marcel Holtmann
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=1099721547.5132.70.camel@localhost \
--to=grantma@anathoth.gen.nz \
--cc=bluez-users@lists.sourceforge.net \
--cc=dwmw2@infradead.org \
--cc=marcel@holtmann.org \
/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