0

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?

2

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! :)

1

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 uinput

or uinput can be put into /etc/modules:

gksudo gedit /etc/modules

Mine 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
  • could it be that the Bluez in the Kernel image from Ubuntu 15:10 still doesn't include the plug-in for the wiimote? – user1782407 Dec 4 '15 at 16:15
  • There github page says it is included in kernel 3.1+ and bluez 4.101+, 15.10 ships with kernel 4.2 which includes the hid-wiimote driver, but you may need to activate it with ` modprobe hid-wiimote`, so guess one ships with the kernel but is not active. dvdhrm.github.io/xwiimote – Mark Kirby Dec 4 '15 at 16:28
  • even with $ modprobe hid-wiimotethe bluetooth manager GUI still asks me for a pair code, is there a way to force bluez pairing a device via terminal? – user1782407 Dec 5 '15 at 9:28
  • The docs say it is a bug in the detection and you must manually set no pin. Click the Bluetooth icon in the menu bar and select Set Up New Device. Make the wiimote discoverable and press continue, now you should see your deceive and be able to choose pin options, set none here and then continue. I don't have a bluetooth here to test, so its a bit vague, sorry, but this setting is taken from this guide step 4 help.ubuntu.com/stable/ubuntu-help/… – Mark Kirby Dec 5 '15 at 9:50
  • yes, the wiimote connects but doesn't pair and that is because the GUI always asks for a pair code, without the pairing the wiimote disconnects after seconds. One can see it in the $ dmesg where the wiimote autoromeves itself – user1782407 Dec 5 '15 at 10:17
-1

apparently there is a secundary way of doing it:

http://wiibrew.org/wiki/Wiimote#Bluetooth_Pairing

I haven't testested it yet

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.