Just a quick hacked demo of the Wiimote controlling the Western Digital TV HD. The more the Wiimote is rolled the faster it scrolls. But it’s currently not really usable because of the rather poor performance of the WDTV GUI when the scrolling gets faster.
If you want to try this here is a quick howto (you should know how to handle yourself with telnet or SSH on the WDTV):
- You need
- eiri application image
- optware (opt.bin)
- USB bluetooth adapter that is supported by Linux (if you have one it probably is)
# ipkg install bluez-utils tar
# wget http://wdtv.elmarweber.org/temp/bt.tar.gz
# tar xvfz bt.tar.gz
# sh insert.sh
If everything works you should get no messages, if you get a notice that firmware_class is already loaded that’s OK, but no other message should appear.
# hciconfig -aif no device called hci0 is listed there was a problem with the bluetooth adapter. Take a look at
dmesg | taildo get possible error message.
Next you can bring the bluetooth adapter into play with
# hciconfig hci0 up. To check if everything works you can do a quick
# hcitool scan to show any bluetooth devices in your vicinity. Even if you don’t have any active bluetooth devices you can assume that everything works when you don’t get any error messages.
# wget http://wdtv.elmarweber.org/temp/wiidtv.tar.gz
# tar xvfz wiidtv.tar.gz
# sh wiidtv.sh
and then you must set your Wiimote into discovery mode by pressing the 1 and 2 buttons at the same time. The wiidtv program will connect with the first Wiimote it finds and use it. You have 10 seconds to do this, if there is no Wiimote found until then the program exits, so have your Wiimote ready and near your WDTV. In case your Wiimote was detected you’ll feel a short vibration from it, this is the signal that wiidtv is connected to it.
Control is very limited, you can scroll up/down by tilting / rolling the device (simulates up down remote command, if you have thumbnails enabled you’ll be out of luck). With the B button you can enter a directory or play a file and with A you return to the previous view. Finally, you can disconnect the Wiimote by pressing the Power button for a few seconds.
I’ll release an application image ASAP. As usual the sources are in the SVN if anyone wants to give it a hack.