RetroPie-Setup icon indicating copy to clipboard operation
RetroPie-Setup copied to clipboard

Newer & simpler method to associate Wiimote

Open u1735067 opened this issue 12 years ago • 31 comments

Hi there,

while trying to associate a non official wiimote classic controller, I found this: http://github.com/dvdhrm/xwiimote Since recent kernel releases (including the one used by RetroPie), an optional module, hid-wiimote can be loaded using modprobe hid-wiimote, then you use sudo hidd --search to find the wiimote without a pin (bluez is not good at this, asking for a pin), and in the syslog :

Jan 18 21:55:21 raspberrypi hidd: New HID device 00:18:00:B2:F5:35 (Nintendo RVL-CNT-01)
Jan 18 21:55:21 raspberrypi kernel: [168934.199087] wiimote 0005:057E:0306.0007: hidraw0: BLUETOOTH HID v3a.1c Gamepad [Nintendo RVL-CNT-01] on 00:1A:7D:DA:71:13
Jan 18 21:55:21 raspberrypi kernel: [168934.200264] input: Nintendo Wii Remote Accelerometer as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/bluetooth/hci0/hci0:71/0005:057E:0306.0007/input/input30
Jan 18 21:55:21 raspberrypi kernel: [168934.201753] input: Nintendo Wii Remote IR as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/bluetooth/hci0/hci0:71/0005:057E:0306.0007/input/input31
Jan 18 21:55:21 raspberrypi kernel: [168934.213406] input: Nintendo Wii Remote as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/bluetooth/hci0/hci0:71/0005:057E:0306.0007/input/input32
Jan 18 21:55:22 raspberrypi kernel: [168935.216422] input: Nintendo Wii Remote Extension as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/bluetooth/hci0/hci0:71/0005:057E:0306.0007/input/input33
Jan 18 21:55:22 raspberrypi kernel: [168935.223466] input: Nintendo Wii Remote Motion+ as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/bluetooth/hci0/hci0:71/0005:057E:0306.0007/input/input34
Jan 18 21:55:22 raspberrypi kernel: [168935.224051] wiimote 0005:057E:0306.0007: New device registered

You can run test with evtest or xwiishow.

I wanted to share this, as it seems much simpler & integrated than the method proposed in the wiki (https://github.com/petrockblog/RetroPie-Setup/wiki/Wiimotes-with-classic-controllers).

u1735067 avatar Jan 18 '14 21:01 u1735067

Thanks for sharing - I have just added this information to the wiki (https://github.com/petrockblog/RetroPie-Setup/wiki/Wiimotes-with-classic-controllers)!

petrockblog avatar Jan 19 '14 11:01 petrockblog

Actually, the hid-wiimote included in 3.6.y kernel is buggy. See below the 2 patches I used (over https://github.com/raspberrypi/linux/tree/rpi-3.6.y). But to make the classic controller work with my remote (http://www.thinkgeek.com/product/f3a7/) I had to force ext as WIICLASSIC, so it's a bit hacky for this part ; the rest is only bug fix (from 3.11 version) / adaptation to be working with RetroArch (D-Pad).

Also, while a simple hidd --search handle the connection, it doesn't handle the Wii leds numerotation, I'll try to write a script that continuously search for specified Wiimote (or all) and set the right leds.

raspberrypi-linux-3.6 - Force WIICLASSIC ext, fix Classic controls - 194ccc5 over 2a8d45e

From 194ccc578a5a9a53c96ab4099e8a9365f29dcdfd Mon Sep 17 00:00:00 2001
From: "Alexandre L."
Date: Sun, 19 Jan 2014 14:11:16 +0100
Subject: [PATCH] Force WIICLASSIC ext, fix Classic controls

-Force WIICLASSIC ext (because this version fails to detect it or my non official remote fails to report it ?)
-Fix classic controls (ly, rx, button invert ..) : fixed in 3.11
-Remove HAT3 : because it's useless
-Fix D-Pad input, because it's not detected in RetroArch when mapped as KEY_UP/... => BTN_0123
---
 drivers/hid/hid-wiimote-ext.c | 70 ++++++++++++++++++++---------------
 1 file changed, 40 insertions(+), 30 deletions(-)

diff --git a/drivers/hid/hid-wiimote-ext.c b/drivers/hid/hid-wiimote-ext.c
index 0a1805c9b0e52..262369f7318f0 100644
--- a/drivers/hid/hid-wiimote-ext.c
+++ b/drivers/hid/hid-wiimote-ext.c
@@ -69,10 +69,10 @@ static __u16 wiiext_keymap[] = {
 	KEY_NEXT,	/* WIIEXT_KEY_PLUS */
 	KEY_PREVIOUS,	/* WIIEXT_KEY_MINUS */
 	BTN_MODE,	/* WIIEXT_KEY_HOME */
-	KEY_LEFT,	/* WIIEXT_KEY_LEFT */
-	KEY_RIGHT,	/* WIIEXT_KEY_RIGHT */
-	KEY_UP,		/* WIIEXT_KEY_UP */
-	KEY_DOWN,	/* WIIEXT_KEY_DOWN */
+	BTN_0,	/* WIIEXT_KEY_LEFT */
+	BTN_1,	/* WIIEXT_KEY_RIGHT */
+	BTN_2,		/* WIIEXT_KEY_UP */
+	BTN_3,	/* WIIEXT_KEY_DOWN */
 	BTN_TL,		/* WIIEXT_KEY_LT */
 	BTN_TR,		/* WIIEXT_KEY_RT */
 };
@@ -101,6 +101,9 @@ static bool motionp_read(struct wiimote_ext *ext)
 	ssize_t ret;
 	bool avail = false;
 
+	// Don't want to enable MotionPlus (if any)
+	return false;
+
 	if (!atomic_read(&ext->mp_opened))
 		return false;
 
@@ -128,6 +131,12 @@ static __u8 ext_read(struct wiimote_ext *ext)
 	ssize_t ret;
 	__u8 rmem[2], wmem;
 	__u8 type = WIIEXT_NONE;
+  
+  wmem = 0x55;
+  wiimote_cmd_write(ext->wdata, 0xa400f0, &wmem, sizeof(wmem));
+  wmem = 0x0;
+  wiimote_cmd_write(ext->wdata, 0xa400fb, &wmem, sizeof(wmem));
+  return WIIEXT_CLASSIC;
 
 	if (!ext->plugged || !atomic_read(&ext->opened))
 		return WIIEXT_NONE;
@@ -197,6 +206,7 @@ static void wiiext_worker(struct work_struct *work)
 
 	ext_disable(ext);
 	motionp = motionp_read(ext);
+	motionp = false;
 	ext_type = ext_read(ext);
 	ext_enable(ext, motionp, ext_type);
 }
@@ -440,13 +450,13 @@ static void handler_classic(struct wiimote_ext *ext, const __u8 *payload)
 
 	if (ext->motionp) {
 		lx = payload[0] & 0x3e;
-		ly = payload[0] & 0x3e;
+		ly = payload[1] & 0x3e;
 	} else {
 		lx = payload[0] & 0x3f;
-		ly = payload[0] & 0x3f;
+		ly = payload[1] & 0x3f;
 	}
 
-	rx = (payload[0] >> 3) & 0x14;
+	rx = (payload[0] >> 3) & 0x18;
 	rx |= (payload[1] >> 5) & 0x06;
 	rx |= (payload[2] >> 7) & 0x01;
 	ry = payload[2] & 0x1f;
@@ -464,46 +474,46 @@ static void handler_classic(struct wiimote_ext *ext, const __u8 *payload)
 	input_report_abs(ext->input, ABS_HAT1Y, ly - 0x20);
 	input_report_abs(ext->input, ABS_HAT2X, rx - 0x20);
 	input_report_abs(ext->input, ABS_HAT2Y, ry - 0x20);
-	input_report_abs(ext->input, ABS_HAT3X, rt - 0x20);
-	input_report_abs(ext->input, ABS_HAT3Y, lt - 0x20);
+	//input_report_abs(ext->input, ABS_HAT3X, rt - 0x20);
+	//input_report_abs(ext->input, ABS_HAT3Y, lt - 0x20);
 
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_RIGHT],
-							!!(payload[4] & 0x80));
+							!(payload[4] & 0x80));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_DOWN],
-							!!(payload[4] & 0x40));
+							!(payload[4] & 0x40));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_LT],
-							!!(payload[4] & 0x20));
+							!(payload[4] & 0x20));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_MINUS],
-							!!(payload[4] & 0x10));
+							!(payload[4] & 0x10));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_HOME],
-							!!(payload[4] & 0x08));
+							!(payload[4] & 0x08));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_PLUS],
-							!!(payload[4] & 0x04));
+							!(payload[4] & 0x04));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_RT],
-							!!(payload[4] & 0x02));
+							!(payload[4] & 0x02));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_ZL],
-							!!(payload[5] & 0x80));
+							!(payload[5] & 0x80));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_B],
-							!!(payload[5] & 0x40));
+							!(payload[5] & 0x40));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_Y],
-							!!(payload[5] & 0x20));
+							!(payload[5] & 0x20));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_A],
-							!!(payload[5] & 0x10));
+							!(payload[5] & 0x10));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_X],
-							!!(payload[5] & 0x08));
+							!(payload[5] & 0x08));
 	input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_ZR],
-							!!(payload[5] & 0x04));
+							!(payload[5] & 0x04));
 
 	if (ext->motionp) {
 		input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_UP],
-							!!(payload[0] & 0x01));
+							!(payload[0] & 0x01));
 		input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_LEFT],
-							!!(payload[1] & 0x01));
+							!(payload[1] & 0x01));
 	} else {
 		input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_UP],
-							!!(payload[5] & 0x01));
+							!(payload[5] & 0x01));
 		input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_LEFT],
-							!!(payload[5] & 0x02));
+							!(payload[5] & 0x02));
 	}
 
 	input_sync(ext->input);
@@ -650,16 +660,16 @@ int wiiext_init(struct wiimote_data *wdata)
 	set_bit(ABS_HAT1Y, ext->input->absbit);
 	set_bit(ABS_HAT2X, ext->input->absbit);
 	set_bit(ABS_HAT2Y, ext->input->absbit);
-	set_bit(ABS_HAT3X, ext->input->absbit);
-	set_bit(ABS_HAT3Y, ext->input->absbit);
+	//set_bit(ABS_HAT3X, ext->input->absbit);
+	//set_bit(ABS_HAT3Y, ext->input->absbit);
 	input_set_abs_params(ext->input, ABS_HAT0X, -120, 120, 2, 4);
 	input_set_abs_params(ext->input, ABS_HAT0Y, -120, 120, 2, 4);
 	input_set_abs_params(ext->input, ABS_HAT1X, -30, 30, 1, 1);
 	input_set_abs_params(ext->input, ABS_HAT1Y, -30, 30, 1, 1);
 	input_set_abs_params(ext->input, ABS_HAT2X, -30, 30, 1, 1);
 	input_set_abs_params(ext->input, ABS_HAT2Y, -30, 30, 1, 1);
-	input_set_abs_params(ext->input, ABS_HAT3X, -30, 30, 1, 1);
-	input_set_abs_params(ext->input, ABS_HAT3Y, -30, 30, 1, 1);
+	//input_set_abs_params(ext->input, ABS_HAT3X, -30, 30, 1, 1);
+	//input_set_abs_params(ext->input, ABS_HAT3Y, -30, 30, 1, 1);
 	set_bit(ABS_RX, ext->input->absbit);
 	set_bit(ABS_RY, ext->input->absbit);
 	set_bit(ABS_RZ, ext->input->absbit);

raspberrypi-linux-3.6 - Disable power_supply device in sysfs - ade5a71 over 2a8d45e

From ade5a7138871bf73326f4f92d8c7cc5249656307 Mon Sep 17 00:00:00 2001
From: "Alexandre L."
Date: Sun, 19 Jan 2014 14:06:10 +0100
Subject: [PATCH] Disable power_supply device in sysfs

Disable power_supply device in sysfs, because it fails when you try associating 2 remotes (fixed in 3.11 version).
---
 drivers/hid/hid-wiimote-core.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c
index 84e2fbec5fbb8..03adecd98c111 100644
--- a/drivers/hid/hid-wiimote-core.c
+++ b/drivers/hid/hid-wiimote-core.c
@@ -17,7 +17,7 @@
 #include <linux/leds.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
-#include <linux/power_supply.h>
+//#include <linux/power_supply.h>
 #include <linux/spinlock.h>
 #include "hid-ids.h"
 #include "hid-wiimote.h"
@@ -1159,7 +1159,7 @@ static void wiimote_destroy(struct wiimote_data *wdata)
 	wiiext_deinit(wdata);
 	wiimote_leds_destroy(wdata);
 
-	power_supply_unregister(&wdata->battery);
+	//power_supply_unregister(&wdata->battery);
 	input_unregister_device(wdata->accel);
 	input_unregister_device(wdata->ir);
 	input_unregister_device(wdata->input);
@@ -1220,13 +1220,15 @@ static int wiimote_hid_probe(struct hid_device *hdev,
 	wdata->battery.type = POWER_SUPPLY_TYPE_BATTERY;
 	wdata->battery.use_for_apm = 0;
 
-	ret = power_supply_register(&wdata->hdev->dev, &wdata->battery);
+	/*
+  ret = power_supply_register(&wdata->hdev->dev, &wdata->battery);
 	if (ret) {
 		hid_err(hdev, "Cannot register battery device\n");
 		goto err_battery;
 	}
 
 	power_supply_powers(&wdata->battery, &hdev->dev);
+  */
 
 	ret = wiimote_leds_create(wdata);
 	if (ret)

u1735067 avatar Jan 19 '14 13:01 u1735067

Thanks for the info - I have added that to the wiki entry for now.

petrockblog avatar Jan 19 '14 13:01 petrockblog

I made the script, you'll find it here : https://github.com/u1735067/Super-RPi/blob/master/etc/profile.d/wiimote.sh https://github.com/u1735067/Super-RPi/tree/master/home/pi (Wiimote*) It handle the connection and Wiimote numerotation (even on reconnect).

I also included some configuration file. Exemple in video : http://youtu.be/YNwIkufAeeU

hid-wiimote have big changes in 3.11 kernel (extension detection, short update messages support, .. even Wiimote numerotation I think), but this kernel seems to be still under development. Also, my modifications on the D-Pad keys (BTN instead of UP..) might be to be reapplied when adopted (or need find a way to make it work with RetroArch).

I really think this method should be used with future kernel 3.11.

u1735067 avatar Jan 28 '14 21:01 u1735067

@Alex131089 That looks very interesting! Could you give some instructions about the usage from your point of view?

petrockblog avatar Jan 30 '14 19:01 petrockblog

Yep :) I'm slowly testing the usage (mostly because I have no screen to connect to) but I'll think to make a feedback when I can then ;) About the Connect script, the "listed MAC" method (that I wanted to avoid the Pi to pair with unwanted devices) might not be optimal, as even SSH seems to be slow when I don't pair remotes (there is n, 3 in my case, "hidd --connect" process running) :/

u1735067 avatar Jan 30 '14 22:01 u1735067

Hi, I'm wondering if there has been any update to this. I found that using hidd works great. Seems the 3.11 version works well with the LEDs. I used your quick script for hcitool and modified it for hidd.

It's just getting the joystick config going that's driving me nuts. with HCITool you need to use wminput, but with hidd I thought you didn't.

Thoughts? Ideas? Progress? At this point I'm trying to just get a wii remote working .. then I'll try to get a classic controller going too.

rjwesten avatar May 07 '14 21:05 rjwesten

Can you explain more what you're using (hcitool / wminput ?) / how you're doing ? I'll have some time to work on it again this week, I'm downloading image v2.3 to see what's inside (kernel, a recent one I hope, and tools) then I'll try to make my remote work with it :) As I learnt a bit python, I hope I could switch from bash script to python (with better MAC filtering).

u1735067 avatar Aug 18 '14 13:08 u1735067

Also, last time I looked at wiimotes, it seemed that we could keep remote association using MAC address, but I'm not an expert of bluetooth stack, more informations here : http://wiibrew.org/wiki/Wiimote#Bluetooth_Pairing Edit: also : http://www.stavros.io/posts/your-weight-online/ https://github.com/pcacjr/bluez/commit/c70a4afe4328053f462d8e30a0a787245aa7b948 http://stackoverflow.com/questions/19214805/how-can-i-permanently-pair-a-wii-balance-board-with-an-ubuntu-pc

u1735067 avatar Aug 18 '14 14:08 u1735067

https://github.com/dvdhrm/xwiimote/issues/4 Great to see that in 2014 Debian is still running Bluez 4.99 from 08/03/2012, which cannot pair with unofficial remote (that I use) -_-

u1735067 avatar Aug 19 '14 18:08 u1735067

After 4 days, starting from scratch with RetroPie2.4, here's the state. To summarize, I partially got the ClassicController work in EmulationStation.

  • Bluez : pairing with unofficial remote

As said, debian has an outdated bluez version, 4.99, wiimote pairing was fixed a few week later than this version. I tried the bluez-5.22 version compilling it myself, but I'm not sure the distribution can handle this version, everything seemed broken (or I forgot some things, like starting the daemon). But after like 7-8 attempts (and considering that 2 debian patchs failed because they were fixed upstream), I managed to build and even package bluez-4.101 which embeed the plugin that allow wiimote pairing with unofficial remote (name based detection). http://alex.twb.fr/rpi/bluez_build/ While I could pair my remote using the GUI blueman, I didn't find how to do it on CLI. So for a connect (not pairing), you can use hidd --search (from package bluez-compat) or bluez-test-input [-i hci0] connect <btaddr> (already in bluez). About wminput ( @rjwesten ), as I understand it completly handle the input, not passing hand to hid-wiimote.

  • hid-wiimote (xwiimote) : joystick property & mapping
    • EmulationStation2 (shipped with the latest RetroPie) uses SDL2, which uses events (/dev/input/eventX) to get controllers input ; but to find the right events, it relies on udev and the property ID_INPUT_JOYSTICK. By default, this property is not set, I had to put a rule for udev in /etc/udev.rules.d/98-wiiclassic.conf :
SUBSYSTEM=="input", ATTRS{name}=="Nintendo Wii Remote Classic Controller", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"

I think hid-wiimote (because it handle the wiimotes) should handle this reporting for the right extensions, I reported this it to its developper : https://github.com/dvdhrm/xwiimote/issues/51 ; some docs about how to detect the property : https://hg.libsdl.org/SDL/file/704a0bfecf75/README-linux.txt#l57

    • hid-wiimote's Wii Classic Controller seems to be bad : sticks are reported as HAT and D-PAD as KEY_{UP,DOWN,LEFT,RIGHT} (not detected by SDL2 as button press). Sticks should be reported as axes and D-PAD as HAT. Without this change, D-PAD will remain unusable (unless the driver is manually patched to change the mapping like I did). It also causes another problem : sticks as HAT are too sensitive and don't have deadzone, so page changing is completly uncontrollable in ES2. More informations : https://github.com/dvdhrm/xwiimote/issues/50
    • leds are not handled, but the led 1 is turned on to confirm it connected successfully.
  • SDL2 : version 2.0.1 has broken joystick detection version 2.0.1 don't (fully ?) use udev to find joysticks and rely on an old method (https://hg.libsdl.org/SDL/file/b9663c77f5c9/src/joystick/linux/SDL_sysjoystick.c : need ABS_X/Y to be considerated as a joystick/controller ; unfortunatly the Classic Controller report them as HAT, see above). Even if this is not listed in changelog (https://forums.libsdl.org/viewtopic.php?t=10088), version 2.0.3 has this detection fixed. libsdl-2.0.3 for Pi (cc @petrockblog maybe you used a similar build) can be found at https://buildbot.libsdl.org/sdl-builds/sdl-raspberrypi/sdl-raspberrypi-681.tar.xz (https://buildbot.libsdl.org/builders/sdl-raspberrypi/builds/681). Be careful when extracting if you use this, I root owned my /usr/ and was unable to sudo then .. Had to fix it offline.

So as you can see, there's still some way to get this working out-of-the-box sadly :( I hope @dvdhrm can fix the (what I consider as) hid-wiimote issues.

Then, I'll only require :

  1. start bluetoothd / install an auto pair script
  2. pair the remotes
  3. configure ES & RetroPie with the controller
  4. enjoy !

And about the remote I bought, battery life seems to be short (and there's not of/off switch, so they discharge in travel because constantly waking up), but I think they can easilly be replaced.

Alexandre

u1735067 avatar Aug 21 '14 17:08 u1735067

If anyone want, I modified the hid-wiimote module & compiled it : http://alex.twb.fr/rpi/ (compiled with this source : https://gist.github.com/Alex131089/01177d7bc593948cac9f/c1839f6f7fab66e78814afeefa4f65259d06e8a4#file-hid-wiimote-modules-c-L1003)

u1735067 avatar Aug 22 '14 15:08 u1735067

Nice job on the very detailed write-up!

Does SDL 2.0.3 work fine with ES, then? I was having trouble with ES not being able to create a window when I was using 2.0.2 a few months ago, so when I updated the ES install script I set it to use 2.0.1. If 2.0.3 works fine, the script can be updated (assuming this is even still the case, I haven't kept up with RetroPie-Setup over the past few months with the "package" overhaul).

Aloshi avatar Aug 22 '14 22:08 Aloshi

@Aloshi Actually if I understood SDL-2.0.1 sources, the hid-wiimote I posted which use axes might be enough (not tested though) as this version checks for at least 1 stick to tell if it's a joystick or not (https://hg.libsdl.org/SDL/file/b9663c77f5c9/src/joystick/linux/SDL_sysjoystick.c#l100). dvdhrm gave some informations about hid-wiimote, not likely to be fixed soon sadly, but compiling this module is not too hard :) Edit: About the pairing, I remember comments on Amazon for my unofficial controller, saying that it doesn't pair with the Wii, have to connect each time.

u1735067 avatar Aug 23 '14 10:08 u1735067

As described in the newer Wiki Article I managed to pair my Wiimote using xwiimote. I can test all functionality with the xwiishow command. Also the connection re-establishes automatically.

But... unfortunately, Emulationstation does not recognize the Wiimote as gamepad :-1:

What am I missing? Anyone can help me out here?

My system:

  • Raspberry Pi 2
  • Raspbian Jessie (2015-11-21)
  • RetroPie installed binary-based

mrkskwsnck avatar Dec 23 '15 20:12 mrkskwsnck

I'm in the same boat as MrksKwsnck.

  • Raspberry Pi 2
  • RetroPie Image Jessie based (beta)
  • Wii U Pro Controller (Third Party)

Any advice?

MarckOliver avatar Jan 14 '16 15:01 MarckOliver

Same as MrKsk.

RPI 2 Raspbian Jessie IMG installation (2015-11) apt-get update/upgrade RetroPie installed binary-based (with bluetooth configuration) apt-get install xwiimote

Need help please

melancond avatar Jan 15 '16 22:01 melancond

I didn't really got my hands on this since the last posts, but I still have this project in mind and I hope I'll have some time to update all this stuff with latest versions in a few weeks/months (It's currently the last months of my studies) ; maybe someone will find an answer in the meanwhile. The only thing I see that could go wrong currently is the udev rule (and/or maybe the hid-wiimote module not patched ?).

u1735067 avatar Jan 16 '16 00:01 u1735067

Hello,

Retropie 3.4 has made some changes for the bluetooth side of stuff that is supposed to work in the config menu now. I have seen a few tutorials on the 8bitdo controllers and I believe this will translate to the Wiimote. A specific UDEV rule is needed and discussed here: https://github.com/RetroPie/RetroPie-Setup/wiki/Setting-up-a-Bluetooth-controller

I sadly have not had time to test out this technique, but will hopefully have some time to do so shortly. The UDEV rule will need to be modified with the correct name for the Wiimote.

Again, I haven't had a chance to try, but I believe it should work with a couple potential issues: -I am unsure if the analog sticks will work (or work correctly) without manual config files -I do not know if this will handle LED enumeration on multiple remotes

If anyone wants to try, I suggest watching this first, as it talks about potential pitfalls and how to grab the name for the UDEV rule: https://www.youtube.com/watch?v=Q4K3h4CIJwA (looks like it is the name as reported in bluetoothctl). I will try to get to it when time permits, but that could take a while, so I wanted to hopefully point folks to something that may work.

mrbwa1 avatar Jan 28 '16 16:01 mrbwa1

I gave the rule/name here https://github.com/RetroPie/RetroPie-Setup/issues/256#issuecomment-52950792 , for this controller, if it can help :)

u1735067 avatar Jan 28 '16 19:01 u1735067