Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Bluetooth on 5.0.1



Hi list.

I recently upgraded my PowerMac G3 B&W to NetBSD 5.0.1, and thought that's great opportunity to try out Bluetooth support. So I recompiled kernel with necessary devices like ubt, bt*.

I had partial success with Apple Wireless Keyboard (small alu model). After somewhat lenghty configuration, it's possible to use this keyboard in text mode, and it "just" works. However, there's one really annoying bug - pressing caps lock triggers kernel panic:

Sep 11 21:45:32 pmbw /netbsd: panic: lock error
Sep 11 21:45:32 pmbw /netbsd: Begin traceback...
Sep 11 21:45:32 pmbw /netbsd: 0xd453dce0: at lockdebug_abort+0x48
Sep 11 21:45:32 pmbw /netbsd: 0xd453dd00: at mutex_abort+0x54
Sep 11 21:45:32 pmbw /netbsd: 0xd453dd10: at mutex_vector_enter+0x1ac
Sep 11 21:45:32 pmbw /netbsd: 0xd453dd40: at bthidev_output+0xec
Sep 11 21:45:32 pmbw /netbsd: 0xd453dd70: at btkbd_set_leds+0x54
Sep 11 21:45:32 pmbw /netbsd: 0xd453dd90: at wskbd_translate+0x1b8
Sep 11 21:45:32 pmbw /netbsd: 0xd453ddd0: at wskbd_input+0xe4
Sep 11 21:45:32 pmbw /netbsd: 0xd453de00: at btkbd_input+0x280
Sep 11 21:45:32 pmbw /netbsd: 0xd453de60: at bthidev_input+0x128
Sep 11 21:45:32 pmbw /netbsd: 0xd453de80: at l2cap_recv_frame+0xe0
Sep 11 21:45:32 pmbw /netbsd: 0xd453deb0: at hci_acl_recv+0x148
Sep 11 21:45:32 pmbw /netbsd: 0xd453def0: at hci_intr+0x18c
Sep 11 21:45:32 pmbw /netbsd: 0xd453df10: at softint_thread+0xf4
Sep 11 21:45:32 pmbw /netbsd: 0xd453df40: at emptyidlespin+0x10
Sep 11 21:45:32 pmbw /netbsd: 0xd453df50: at _prop_dictionary_keysym32_pool+0x98b78
Sep 11 21:45:32 pmbw /netbsd: End traceback...
Sep 11 21:45:32 pmbw /netbsd: dumpsys: TBD
Sep 11 21:45:32 pmbw /netbsd: rebooting

It's also impossible to use Xorg with Bluetooth keyboard. Looks like kbd driver does not know about WSKBD_TYPE_BLUETOOTH and fails miserably, unloading, and therefore disabling all keyboard support. Here's interesting part of Xorg.0.log:

(**) Option "CoreKeyboard"
(**) Keyboard0: always reports core events
(**) Option "Protocol" "wskbd"
(**) Keyboard0: Protocol: wskbd
(**) Option "Device" "/dev/wskbd0"
(EE) Keyboard0: Unsupported wskbd type "21"(EE) PreInit failed for input device "Keyboard0"
(II) UnloadModule: "kbd"

Regards
Radek


Home | Main Index | Thread Index | Old Index