If the DBT-120 is at least Rev. 2, you can update the firmware on it (using an Apple-Computer). This allows you to use the Apple Wireless Keyboard already at boot-time bevor any bluetooth-stack is loaded.
On power-up it will work as a HID-proxy. That means it will establish the connection to the Apple Wireless Keyboard (and should do with a bluetooth-mouse as well, but I haven't tested that) without pairing and present it to the System as an ordinary USB-keyboard
(or USB-mouse).
In this mode you can already use your Apple Wireless Keyboard with every OS that supports USB-keyboards.
If you want to use the DBT-120 to connect other bluetooth-devices as well, you need to switch it from HID- to HCI-mode. Under Linux use:
hid2hci --tohci
That has to be done once every time you boot linux.
(Under Windows I used a tool call hidtohci.exe, available from another bluetooth-keyboard-manufacturer. Worked fine with my hardware. I don't remember where I found it, just google for it)
The very first time you do that, you need to pair the DBT-120 and the Apple Wireless Keyboard. I don't remember exactly what I did to accomplish that (have a look at the documentation that comes with bluez.utils, especially at README.keyboard mouse), but it was tricky, because i had to blindly hack the PIN after I first connected the Apple Wireless Keyboard with
hidd -c
If you wait to long (some seconds), the pairing might fail.
If that all works, make sure you have configured the hci-daemon (hcid) to become master on incoming connections.
(The Apple Wireless Keyboard falls in sleep mode if you don't use it for a while. A single press of a key wakes it up and lets it try to reconnect to the DBT-120. That will fail without forcing hcid to switch to master)
For that my /etc/bluetooth/hcid.conf looks contains the following line:
lm master;
I'm not sure, which of the following lines are critical for the Apple Wireless Keyboard to work properly. Start with the defaults and change one by one until everything works:
This is a description of the update: http://docs.info.apple.com/article.html?artnum=86493
(Apple claims that the DBT-120 will get incompatible with non-Macs afterwards. This is WRONG. But you need to switch it from HID- to HCI-mode as mentioned bevor.)
If someone could confirm dbt-120 compatibility in hci-mode with Logitech's V270 mouse, I'd be grateful. Allso information of flashing without mac would be appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.