How to connect a Wiimote for remote controlling purposes under Fedora?
(actually, it is a 3rd party wiimote clone, like the ones sold on amazon for 15 $)
Fedora 19 is current enough such that the installed bluetooth stack comes with wiimote support by default. You can directly connect the wiimote like any other bluetooth device.
If everything works fine, no pin is needed. At the end of the pairing process one can select the wiimote as input device in the bluetooth applet.
Depending on the hardware, perhaps a few tries are necessary at first (use reset-button inside the battery compartment) - one method is: after the computer 'sees' the bluetooth hardware, click connect and immediately press 'reset' on the device.
The bluetooth symbol and/or the context menu show a successful pairing.
With that only a few buttons work (up/down/left/right keys, right-mouse-click and space - that's it).
Thus, we have to configure some kind of mapping.
(strace is not strictly necessary, but it is useful to check for permission denied issues when running xwiimote)
The xwiimote repository contains the basic userspace library that interfaces with the bluetooth-daemon-plugin and some related tools.
Unfortunately, this software is not packaged for Fedora, yet.
Thus, we have to compile it:
Some Hardware Tests
=> pairing worked, we have to fix the permissions for further tests:
=> some more permission adjustments:
(the xiimote repository also contains a sample udev rule for permission setting on connect, but they are only necessary for direct access like with xwiishow)
Start a ncurses interface for testing buttons, sensors, calibrating etc.:
(where 1 is the first device)
Real Xorg Setup
There is an xinput2 module which is - again - not available from the Fedora/Fusion package repositories, yet.
Verify the runtime-path setting:
(should not display 'not found' messages)
Change the system-wide Xorg configuration:
Logout and restart X.
Verify via the X command line tool
For example with my hardware the defaults are: enter, left/right/up/down, space, 1, 2, esc, volume +/-
(which are pretty sane defaults)
The cheap wiimote clone also came with a 'nunchuck' extension, which does not work out of the box with xiishow - YMMV.