iriya_ufo’s blog

Curiosity was simply the first derivative of knowledge.

Ubuntuの最新バージョンfeistyでbluetoothドライバを使う

Edgyからバージョンをあげて何のトラブルもなく過ごしてきた私ですが,今日トラブリました.

Wiiリモコンのハックを行おうと思ったのですが,bluetoothドライバの認識ができません.

適当にapt-getでパッケージをインストールしても最新バージョンが入ってますといわれました.

dmesgの出力メッセージが

[ 3906.804000] usb 2-1: USB disconnect, address 2
[ 3908.388000] usb 2-1: new full speed USB device using uhci_hcd and address 3
[ 3927.744000] Bluetooth: L2CAP ver 2.8
[ 3927.744000] Bluetooth: L2CAP socket layer initialized
[ 3934.340000] usb 2-1: new full speed USB device using uhci_hcd and address 4
[ 3934.464000] usb 2-1: device descriptor read/64, error -71
[ 3935.360000] usb 2-1: configuration #1 chosen from 1 choice

こんな感じになったのでなんか読めてないっつうことが分かります.

bluetoothの設定を行うコマンドhciconfigのmanを眺めつつ格闘した結果,

iriya@iriya-laptop> sudo hciconfig hci0 reset
iriya@iriya-laptop> sudo hciconfig hci0 inqmode 0

これでなんとかなりました.
ふぅ,よかった.

Wiiリモコン使えんようになったら洒落にならん.