Project

General

Profile

Actions

Emulator Issues #6729

closed

Linux - Add bluez 5 support

Added by martin.herrman over 10 years ago. Updated about 6 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Feature request
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?
N/A

Game ID?
N/A

What went wrong?
I want to use my 3rd party WII Controller (nyko wand) with dolphin-emu on Linux. It is supported well by the new kernel driver and bluez 5 bluetooth stack. I have successfully connected and tested the remote using xwiishow test application. More information can be found here:

http://dvdhrm.github.io/xwiimote/

When I run the bluez5 bluetoothd daemon and have dolphin-emu search for devices, the bluetoothd daemon logs in /var/log/messages:

bluetoothd[2211]: Wrong size of start discovery return parameters

Dolphin-emu doesn't find any compatible devices.

What did you expect to happen instead?
Dolphin-emu connects to bluetoothd, the device is trusted and thus found by dolphin-emu and I can select it to play with.

What steps will reproduce the problem?

  1. install linux (I use Gentoo) with the bluez 5 stack and kernel 3.1.11 with hid-wiimote driver
  2. pair/connect the remote and have bluetoothd thrust it
  3. startup dolphin-emu and let it search for real wiimotes.

Dolphin 3.5 and Dolphin 3.5-367 are old versions of Dolphin that have
known issues and bugs. Have you tested with the latest version from
http://dolphin-emu.org/download ?
Yes

Which versions of Dolphin did you test on?
4.0-206

Which version of Dolphin used to work?
None (with bluez4 my 3rd party wiimote is not supported)

What are your PC specifications (example: Operating System, CPU and GPU)?
Gentoo Linux, core i5 cpu, nvidia graphics

64 or 32 bit Operating System?
64

64 or 32 bit Dolphin?
64

Any other relevant information (e.g. logs, screenshots, configuration
files)
No

Actions #1

Updated by MayImilae over 10 years ago

  • Status changed from New to New
  • Issue type changed from Bug to Feature request
Actions #2

Updated by Billiard26 over 10 years ago

  • Status changed from New to Questionable

Cannot reproduce on Arch Linux, bluez 5.9-1, Dolphin 4.0-224 revision f3af8ee0f0da76819321b034cc114bb6852468ac.

Re-build dolphin after having updated bluez?
Otherwise I propose your system is broken.

Actions #3

Updated by martin.herrman over 10 years ago

Thanks for trying to reproduce. It is a bit disappointing that you didn't succeed :-)

I'll double check at my side and get back to you soon. (within a couple of days)

Actions #4

Updated by martin.herrman over 10 years ago

Ok, here is some news.

I have updated bluez to 5.10 and after that removed dolphin from the system (checked with updatedb; locate dolphin). Next I downloaded latest trunk and compiled and installed dolphin again.

In /var/log/messages the bluetooth daemon doesn't complain anymore.

Still, dolphin doesn't find any compatible device. I tried:

  • bluetoothd not running
  • bluetoothd running, but device not paired and not connected
  • bluetoothd running, device paired, but not connected
  • bluetoothd running, device paired, connected and trusted

What is the advised way to connect?

In the last option, /var/log/messages logs:

Oct 16 20:47:59 localhost kernel: input: Nintendo Wii Remote Accelerometer as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/bluetooth/hci0/hci0:21/0005:057E:0306.0007/input/input27
Oct 16 20:47:59 localhost kernel: input: Nintendo Wii Remote IR as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/bluetooth/hci0/hci0:21/0005:057E:0306.0007/input/input28
Oct 16 20:47:59 localhost kernel: input: Nintendo Wii Remote as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/bluetooth/hci0/hci0:21/0005:057E:0306.0007/input/input29

Isn't it possible to have dolphin search and use those devices as input for real wiimote controller?

Actions #5

Updated by joel.schaerer over 10 years ago

I have more or less the same issue. Dolphin used to work with my noname wiimotes, but since the last gnome and dolphin update (moved to bluez 5), it doesn't work anymore. I don't know what changed, but just wanted people to know that this is probably not an isolated case.

Actions #6

Updated by parlane over 10 years ago

Unpair the device from the system. I thought dolphin paired it a different way o_O

Actions #7

Updated by joel.schaerer over 10 years ago

I already tried that. Actually, the way it used to work was with the device unpaired and the bluetooth service stopped. It's doesn't work anymore.

Actions #8

Updated by martin.herrman over 10 years ago

Just to be sure, I tried it again: not paired, no bluetooth daemon running. No luck.

It is a pity that I don't have original wiimotes.

In my opinion, things are different now with bluez5 and the new in-kernel driver. As posted before, for one wii mote 3 new devices are created. I believe that dolphin should make use of that.

Actions #9

Updated by martin.herrman over 10 years ago

Today I got an original wiimote and tried to use it. Using dolphin 4.0-305. Stopped bluez daemon, set wiimote to real wiimote and started scanning. Pressed button 1+2 at the same time.. wiimote not found.

I have also tried with bluez daemon running, and I have also tried with user root.

Actions #10

Updated by martin.herrman over 10 years ago

Downgraded bluez5 to bluez4 and recompiled dolphin-emu-3a28afd8d5d5.

bluetooth daemon running + original wiimote: works!

no bluetooth daemon running, or with 3rd party wiimote: no wiimote found.

Actions #11

Updated by videogamefanatic89 about 10 years ago

I'm having this issue as well, even with first party wiimotes. I'm running the latest git build of dolphin, the latest bluez in the official arch repo (tried with the bluetooth service running and not running), and dolphin just shows.

I can connect my wiimote manually but that doesn't work. My computer seems to treat the wiimote like a keyboard, assigning keyboard buttons to each wiimote button. It doesn't work at all in Dolphin.

I would try using bluez4 but I can't compile it. The configure script can't find my copy of DBUS even though it's installed.

Actions #12

Updated by videogamefanatic89 about 10 years ago

Let me clarify this with a screenshot, just in case my explanation wasn't clear.

Actions #13

Updated by martin.herrman almost 10 years ago

For me it works fine nowadays with bluez 5.

I'm running Gentoo Linux, bluez 5.18, latest git build of dolphin and using 2 official wiimotes with motion plus inside.

This is what I needed to do:

  1. make sure bluetooth dongle is running in hci mode (and not HID). You can verify with lsusb or read your dmesg output. There is a tool hid2hci that can be used to switch to hci. For my current dongle I had to apply this patch: http://comments.gmane.org/gmane.linux.bluez.kernel/42209 (for my previous dongle it was important to have atheros firmware in /lib/firmware, by default it was already in hci mode).

  2. first compile bluez, then compile dolphin.

  3. do not run the bluez daemon.

  4. check if the device is available: "hcitool dev". If not, power on the bluetooth dongle: "hciconfig hci0 up".

  5. startup dolphin, configure wiimote and enable scanning

  6. press buttons 1+2 together to connect the wiimote to dolphin

Actions #14

Updated by joel.schaerer almost 10 years ago

Thank you so much, it works now! What I was missing is "hciconfig hci0 up" to turn the device back on after shutting down the bluetooth service.

Thanks again!

Actions #15

Updated by damianatorrpm over 9 years ago

I can confirm the issue and with latest git disabling bluetooth service and manually turning on "hciconfig hci0 up" does the trick. With latest stable my rev.20 wiimote+ doesn't work at all no matter if above steps have been done.

Please add bluez5 support!
openSUSE 13.2

Actions #16

Updated by damianatorrpm over 9 years ago

Sorry for another comment but I guess soon all Linux distributions will be affected by this issue why is the issue "questionable"?

At least a workaround is available.

ps: Thanks for the program, I love dolphin-emu!

Actions #17

Updated by Helios about 6 years ago

  • Status changed from Questionable to Invalid
Actions

Also available in: Atom PDF