there are other posts about the Wiimote pairing, but none of the answers helped me, most of them are form ubuntu 12.10 and ubuntu 10.04 soe they are pretty old. the question is that Wiimote should be paired without any code, but the option to pair without entering a code is there any-more. is there a way to manually pair the wiimote without any GUI? maybe via config file or something like that?
3 Answers
Using the standard Ubuntu bluetooth GUI, the solution is not to use the 1+2 button method, but to use the sync button behind the wiimote, you can setup the wiimote without pairing, the wiimote will remain recognized but apparently unpaired (no lights in the wiimote), and then you can "activate" the wiimote from the GUI and press again the "sync" button, now it will remain paired (without inputting a pair-code) one of the single LEDs will remain on (it will not rumble though)
then with the "+" "-" buttons you can control the volume of Ubuntu, and with the dpad you can move the focus on whatever is selected according to the direction you press amongst other things, so the wiimote is active and working, now you're set! :)
- 21
You asked for a no GUI way
Install Xwiimote
sudo apt-get install xwiimote
Basic set up from the official documentation
Connecting Wii Remotes
To connect a Wii Remote to your host be sure that the official linux Bluetooth stack (BlueZ) is installed on your system and your kernel has the hid-wiimote kernel plugin loaded. Then connect your Wii Remote like any other Bluetooth device. The system log (dmesg) should print some messages about the new connected device. The Wii Remote can be put into discoverable mode by pressing the red sync-button behind the battery cover on the back. The Wii Remote will stay in discoverable mode for 20s. You can also hold the 1+2 buttons to put the Wii Remote into discoverable state. However, the first method works more reliably! If you are asked for PIN input while bonding the devices, then your BlueZ bluetoothd daemon does not include the wiimote plugin. See Bugs below for more information. If this does not help, you can still connect to your Wii Remote without pairing/bonding (i.e. not using authentication with a PIN). This should work with any BlueZ version.
If you would like to try a GUI, try cwiid
This is the basic set up from the official documentation, you can go there for more detail, last edited 2015-09-02
First install cwiid and dependencies
sudo apt-get install libcwiid1 lswm wmgui wminput
Run the GUI
wmgui
Select "connect" from the file menu, press 1+2 when prompted then OK. Lights and rumble can be turned on and off from the controls menu, and which inputs are displayed from the settings menu. Using this, you can test the IR camera, the accelerometers and check the inputs from the Nunchuck or Classic Controller.
Next up is the mouse "emulator" which allows you to control the mouse with the Wiimote. At this point, it can be run with default settings (tilting the Wiimote moves the pointer, A and B work as left and right click).
The uinput module needs to be loaded into the kernal first. This can either be done manually after every reboot:
sudo modprobe uinputor uinput can be put into /etc/modules:
gksudo gedit /etc/modulesMine looks like this:
# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. lp uinput
- 18,949
- 19
- 79
- 116
apparently there is a secundary way of doing it:
http://wiibrew.org/wiki/Wiimote#Bluetooth_Pairing
I haven't testested it yet
- 21