Skip to contentSkip to conversation

Apple Mighty Mouse and aluminum keyboard woes

DISCUSSION J.R. Mauro 2 participants 3 messages Dec 8, 2008 Bluetooth drivers

lore
Share & tools
lore

J.R. Mauro

author
#0 lore raw

Hello,

I recently purchased an Apple Bluetooth Mighty Mouse and it's been giving me some grief. Both the mouse and the aluminum bluetooth keyboard I own fail to show up with hcitool or hidd, but both of them seem to be registering with the input subsystem as they both work. I can only imagine this is because I paired them with OS X (since I couldn't pair them with Linux). Despite those hiccups, both of the devices *work* but the mouse is not sending scroll or squeeze events. I don't really care about the squeeze events, but the lack of scrolling is quite aggravating.

I've run evtest and it shows that my mouse has: vendor 0x5ac product 0x820b version 0x111 for ID numbers. The keyboard has the following: vendor 0x5ac product 0x820a version 0x111

So obviously they're Apple, and possibly they are new devices and no one has seen their minor IDs yet, as Apple comes up with slightly-different "new" devices every few months to give everyone a headache. I know I've seen patches floating around about the keyboard, but I can't apply them to my kernel. I'm content to wait for 2.6.28 to come out if issues are fixed there, but I'm willing to be a guinea pig for anything that will apply to 2.6.27.

In support of my claim, the mouse lists the following events:

Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 272 (LeftBtn)
Event code 273 (RightBtn)
Event code 274 (MiddleBtn)
Event type 2 (Relative)
Event code 0 (X)
Event code 1 (Y)
Event type 4 (Misc)
Event code 4 (ScanCode)

As you can see, there's no scroll, and there should be both vertical and horizontal scrolling. So we have a couple of mysteries, namely, why the bluetooth tools can't actually communicate with the devices (although, sometimes, if there's a full moon or something, I can actually do things like "hcitool info <BDADDR>" and get real info) and the whole missing-event problem.

As I hinted, I'm using kernel 2.6.27 (though I have a couple of patches applied for applesmc, I don't think they have any bearing on this problem). I'm not subscribed to this particular mailing list, so I've added myself to the CC list.

Thanks,
~J.R.

#1 lore raw
Quoted 7 lines · J.R. Mauro

Hello,

I recently purchased an Apple Bluetooth Mighty Mouse and it's been giving me some grief. Both the mouse and the aluminum bluetooth keyboard I own fail to show up with hcitool or hidd, but both of them seem to be registering with the input subsystem as they both work. I can only imagine this is because I paired them with OS X (since I couldn't pair them with Linux).

You couldn't pair them in Linux because you forgot to enable the Bluetooth adapter, eg. hciconfig's output is empty.

Start the hid2hci daemon, and you will have Bluetooth.

Quoted 4 lines

Despite those hiccups,
both of the devices *work* but the mouse is not sending scroll or squeeze events. I don't really care about the squeeze events, but the lack of scrolling is quite aggravating.

It doesn't have scrolling because you're currently using the device in "boot mode". Set it up properly using Bluetooth, and it'll work just fine.

Cheers

author
#2 lore raw
Quoted 11 lines · Bastien Nocera
Quoted 7 lines · J.R. Mauro

Hello,

I recently purchased an Apple Bluetooth Mighty Mouse and it's been giving me some grief. Both the mouse and the aluminum bluetooth keyboard I own fail to show up with hcitool or hidd, but both of them seem to be registering with the input subsystem as they both work. I can only imagine this is because I paired them with OS X (since I couldn't pair them with Linux).

You couldn't pair them in Linux because you forgot to enable the Bluetooth adapter, eg. hciconfig's output is empty.

No, it's been on the whole time.

Quoted 2 lines

Start the hid2hci daemon, and you will have Bluetooth.

I get "No devices in [HID, HCI] mode found" no matter what I run.

Quoted 9 lines
Quoted 5 lines

Despite those hiccups,
both of the devices *work* but the mouse is not sending scroll or squeeze events. I don't really care about the squeeze events, but the lack of scrolling is quite aggravating.

It doesn't have scrolling because you're currently using the device in "boot mode". Set it up properly using Bluetooth, and it'll work just fine.

That's a bit of a chicken and egg problem, because things like hcitool scan literally can't find the devices. I put both devices in /etc/bluetooth/hcid.conf, is there something else I have to do to set them up? The guides on the web were pretty vague.

Sorry if I'm asking newbie questions here. If there's a particular guide I should look at, I'd appreciate an "RTFM" with a link :)

Quoted 4 lines

Cheers