Dec 5, 2006

GentooLinuxでWiiリモコンを試す その1

Engadget JapaneseでWindowsでWiiリモコンをマウスにするネタが 紹介されてた。じゃあ負け時とGentooでもやってみましょうか。 ということで、早速Wiiリモコン単体とBluetoothアダプターを購入。何やってんだオレ。

  • Wiiリモコン(RVL-003)
  • PLANEX BT-01UDE(Bluetooth Ver2.0 USBアダプタ)
以下の手順はやっつけでテキトーに設定したので、正しい手順ではないかもしれない。 まずはLinuxのカーネル再構築でBluetoothを有効にする。Gentoo Linux Bluetooth Guideより引用。
Networking ---> <*> Bluetooth subsystem support ---> --- Bluetooth subsystem support L2CAP protocol support SCO links support RFCOMM protocol support [*] RFCOMM TTY support BNEP protocol support [*] Multicast filter support [*] Protocol filter support HIDP protocol support Bluetooth device drivers ---> HCI USB driver [*] SCO (voice) support HCI UART driver [*] UART (H4) protocol support [*] BCSP protocol support [*] Transmit CRC with every BCSP packet HCI BCM203x USB driver HCI BPA10x USB driver HCI BlueFRITZ! USB driver HCI VHCI (Virtual HCI device) driver USB support ---> <*> Support for Host-side USB --- USB Host Controller Drivers EHCI HCD (USB 2.0) support [ ] Full speed ISO transactions (EXPERIMENTAL) [ ] Root Hub Transaction Translators (EXPERIMENTAL) <*> OHCI HCD support <*> UHCI HCD (most Intel and VIA) support < > SL811HS HCD support
BlueZをインストール。
# emerge bluez-libs bluez-utils
デーモン起動。
# /etc/init.d/bluetooth start
hcitoolでWiiリモコンを検出。
# hcitool scan Scanning ... XX:XX:XX:XX:XX:XX Nintendo RVL-CNT-01
で、接続。
# hidd --connect XX:XX:XX:XX:XX:XX
なんかつながったみたいだ。 まだここまで。WiinRemoteみたいにマウス代わりにはまだ使えません。 /etc/bluetooth/hcid.confなどで設定すればもっと柔軟にできそうだ。まだよくわかってません。調査中です。はい。

No comments: