• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 253 254 255 256 257 ... 1139 Next »

Mayflash DolphinBar on Linux
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Mayflash DolphinBar on Linux
07-16-2017, 03:27 AM
#1
Lignum Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Jul 2017
Hi.

Lately, I've been struggling to get my DolphinBar to work on Linux (Arch, specifically). I turn it on, set it to mode 4, the wiimote connects fine, but when I select "Real Wiimote" and click "Refresh" in the controller settings, it doesn't vibrate and get recognised, as it does perfectly fine on Windows. After googling a bit, I stumbled upon this reddit comment. I created the udev rule exactly as described (I've double checked the vendor and device id against lsusb, and I've tried it with the missing " at the end of the line and without), and reloaded my configuration. After spamming the reload command, unplugging and replugging the DolphinBar a bunch of times, rebooting my system, as the author explains, nothing has changed. The only way I can get it to work is to run Dolphin as root, which is more of a hack than a solution. This is especially odd, since this exact solution has worked for me perfectly fine on a prior Arch installation.

Here's my dmesg output after connecting the DolphinBar, if that's relevant:
Spoiler: (Show Spoiler)
Code:
[ 1742.979847] usb 4-1.1: new full-speed USB device number 11 using ehci-pci
[ 1743.092361] input: HJZ Mayflash Wiimote PC Adapter as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.0019/input/input44
[ 1743.092445] hid-generic 0003:057E:0306.0019: input,hidraw8: USB HID v1.11 Gamepad [HJZ Mayflash Wiimote PC Adapter] on usb-0000:00:1d.0-1.1/input0
[ 1743.102378] input: HJZ Mayflash Wiimote PC Adapter as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.001A/input/input45
[ 1743.102499] hid-generic 0003:057E:0306.001A: input,hidraw9: USB HID v1.11 Gamepad [HJZ Mayflash Wiimote PC Adapter] on usb-0000:00:1d.0-1.1/input1
[ 1743.112372] input: HJZ Mayflash Wiimote PC Adapter as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.001B/input/input46
[ 1743.112436] hid-generic 0003:057E:0306.001B: input,hidraw10: USB HID v1.11 Gamepad [HJZ Mayflash Wiimote PC Adapter] on usb-0000:00:1d.0-1.1/input2
[ 1743.122246] input: HJZ Mayflash Wiimote PC Adapter as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.001C/input/input47
[ 1743.122296] hid-generic 0003:057E:0306.001C: input,hidraw11: USB HID v1.11 Gamepad [HJZ Mayflash Wiimote PC Adapter] on usb-0000:00:1d.0-1.1/input3

I'm using Dolphin 5.0-4723, for reference. Thanks in advance.
Find
Reply
07-16-2017, 03:41 AM (This post was last modified: 07-16-2017, 03:43 AM by Helios.)
#2
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,403
Threads: 15
Joined: May 2012
Does your udev rule have the correct file permissions?

Try running 'udevadm monitor' to see if it's correctly getting captured by udev
Find
Reply
07-16-2017, 03:57 AM
#3
Lignum Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Jul 2017
(07-16-2017, 03:41 AM)Helios Wrote: Does your udev rule have the correct file permissions?

It's set to 644, which should be correct? Either way, going brute force and setting it to 777 doesn't work either.

Just for reference, these are the file's contents, just in case I messed that up somehow:
Code:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0306", MODE="0666"

(07-16-2017, 03:41 AM)Helios Wrote: Try running 'udevadm monitor' to see if it's correctly getting captured by udev

I'm not too familiar with udev, so I have no idea what I'm looking at, sorry. It looks okay to me, but you tell me. This is the output after turning on the bar (which produced output), connecting the wiimote (no output), and clicking refresh (no output):
Spoiler: (Show Spoiler)
Code:
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[3611.438584] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1 (usb)
KERNEL[3611.438894] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0 (usb)
KERNEL[3611.442203] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.002D (hid)
KERNEL[3611.448546] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.002D/input/input64 (input)
KERNEL[3611.448570] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.002D/input/input64/event25 (input)
KERNEL[3611.448595] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.002D/hidraw/hidraw8 (hidraw)
KERNEL[3611.448626] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1 (usb)
KERNEL[3611.451921] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.002E (hid)
KERNEL[3611.458433] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.002E/input/input65 (input)
KERNEL[3611.458452] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.002E/input/input65/event26 (input)
KERNEL[3611.458465] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.002E/hidraw/hidraw9 (hidraw)
KERNEL[3611.458490] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2 (usb)
KERNEL[3611.461781] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.002F (hid)
KERNEL[3611.468313] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.002F/input/input66 (input)
KERNEL[3611.468331] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.002F/input/input66/event27 (input)
KERNEL[3611.468358] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.002F/hidraw/hidraw10 (hidraw)
KERNEL[3611.468389] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3 (usb)
KERNEL[3611.471647] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.0030 (hid)
KERNEL[3611.478212] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.0030/input/input67 (input)
KERNEL[3611.478235] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.0030/input/input67/event28 (input)
KERNEL[3611.478262] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.0030/hidraw/hidraw11 (hidraw)
UDEV  [3611.485981] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1 (usb)
UDEV  [3611.486754] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0 (usb)
UDEV  [3611.487063] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2 (usb)
UDEV  [3611.487138] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3 (usb)
UDEV  [3611.487174] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1 (usb)
UDEV  [3611.487462] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.002D (hid)
UDEV  [3611.487688] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.002F (hid)
UDEV  [3611.487894] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.0030 (hid)
UDEV  [3611.487922] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.002E (hid)
UDEV  [3611.488730] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.002D/hidraw/hidraw8 (hidraw)
UDEV  [3611.489047] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.002D/input/input64 (input)
UDEV  [3611.489465] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.002E/hidraw/hidraw9 (hidraw)
UDEV  [3611.489546] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.002F/hidraw/hidraw10 (hidraw)
UDEV  [3611.489580] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.0030/hidraw/hidraw11 (hidraw)
UDEV  [3611.490004] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.002F/input/input66 (input)
UDEV  [3611.490069] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.002E/input/input65 (input)
UDEV  [3611.490220] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.0030/input/input67 (input)
UDEV  [3611.745323] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.002F/input/input66/event27 (input)
UDEV  [3611.758401] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.002D/input/input64/event25 (input)
UDEV  [3611.761637] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.002E/input/input65/event26 (input)
UDEV  [3611.798600] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.0030/input/input67/event28 (input)
Find
Reply
07-16-2017, 04:29 AM
#4
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,403
Threads: 15
Joined: May 2012
Hmm, well that's about the extent of my udev knowledge.

Does it work if you run Dolphin as root? If it does, then this is very likely a permissions / udev problem somewhere
Find
Reply
07-16-2017, 04:41 AM
#5
Lignum Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Jul 2017
(07-16-2017, 04:29 AM)Helios Wrote: Hmm, well that's about the extent of my udev knowledge.

Does it work if you run Dolphin as root? If it does, then this is very likely a permissions / udev problem somewhere

It does indeed. Just messing around, but maybe it helps, here's the udevadm monitor output when running both udevadm and dolphin as root:
Spoiler: (Show Spoiler)
Code:
monitor will print the received events for:

UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[6599.561646] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1 (usb)
KERNEL[6599.561917] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0 (usb)
KERNEL[6599.565391] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.0049 (hid)
KERNEL[6599.571852] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.0049/input/input92 (input)
KERNEL[6599.571884] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.0049/input/input92/event25 (input)
KERNEL[6599.571907] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.0049/hidraw/hidraw8 (hidraw)
KERNEL[6599.571940] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1 (usb)
KERNEL[6599.575190] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.004A (hid)
KERNEL[6599.581769] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.004A/input/input93 (input)
KERNEL[6599.581788] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.004A/input/input93/event26 (input)
KERNEL[6599.581801] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.004A/hidraw/hidraw9 (hidraw)
KERNEL[6599.581824] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2 (usb)
KERNEL[6599.585060] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.004B (hid)
KERNEL[6599.591580] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.004B/input/input94 (input)
KERNEL[6599.591620] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.004B/input/input94/event27 (input)
KERNEL[6599.591634] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.004B/hidraw/hidraw10 (hidraw)
KERNEL[6599.591661] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3 (usb)
KERNEL[6599.594944] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.004C (hid)
KERNEL[6599.601537] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.004C/input/input95 (input)
KERNEL[6599.601558] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.004C/input/input95/event28 (input)
KERNEL[6599.601571] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.004C/hidraw/hidraw11 (hidraw)
UDEV  [6599.609381] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1 (usb)
UDEV  [6599.609939] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0 (usb)
UDEV  [6599.610408] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1 (usb)
UDEV  [6599.610574] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2 (usb)
UDEV  [6599.610604] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.0049 (hid)
UDEV  [6599.610748] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3 (usb)
UDEV  [6599.611022] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.004A (hid)
UDEV  [6599.611293] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.004B (hid)
UDEV  [6599.611498] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.004C (hid)
UDEV  [6599.611769] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.0049/input/input92 (input)
UDEV  [6599.611927] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.0049/hidraw/hidraw8 (hidraw)
UDEV  [6599.612884] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.004B/hidraw/hidraw10 (hidraw)
UDEV  [6599.612930] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.004A/input/input93 (input)
UDEV  [6599.613300] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.004B/input/input94 (input)
UDEV  [6599.613347] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.004A/hidraw/hidraw9 (hidraw)
UDEV  [6599.613369] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.004C/hidraw/hidraw11 (hidraw)
UDEV  [6599.613494] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.004C/input/input95 (input)
UDEV  [6599.881957] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.2/0003:057E:0306.004B/input/input94/event27 (input)
UDEV  [6599.882045] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:057E:0306.0049/input/input92/event25 (input)
UDEV  [6599.884760] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:057E:0306.004A/input/input93/event26 (input)
UDEV  [6599.888139] add      /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.3/0003:057E:0306.004C/input/input95/event28 (input)
Other than the order of the messages, nothing significant seems to have changed.
Find
Reply
07-16-2017, 06:36 AM
#6
Lignum Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Jul 2017
Alright, quick update, I've mostly figured it out. The DolphinBar creates four different devices which are, on my machine, mounted on /dev/hidraw[8-11] (filenames taken from dmesg output). Since I only need one wiimote, simply running "chmod 0666 /dev/hidraw8" fixes the issue for me. However, the permissions do not persist across restarts or replugging the device, meaning this has to be done every time I want to use my wiimote, which is quite inconvenient. If anybody has any suggestions to make this persist, I'd be happy to know, but for the mean time, this works.
Find
Reply
07-16-2017, 06:39 AM
#7
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,403
Threads: 15
Joined: May 2012
throw it into /etc/rc.local if on a debian OS?

ugly, but it works.
Find
Reply
07-16-2017, 06:43 AM
#8
Lignum Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Jul 2017
(07-16-2017, 06:39 AM)Helios Wrote: throw it into /etc/rc.local if on a debian OS?

ugly, but it works.

That wouldn't work for replugging the DolphinBar though, but I suppose I could just keep it turned on. Additionally, I'll have to pray that it gets the same /dev/hidrawX number every time. So yeah, it's more than just ugly, but you're right, it works (at least more than before Tongue).
Find
Reply
07-16-2017, 06:52 AM
#9
Lignum Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Jul 2017
Actually, scratch that. I found a good, clean solution, and it's kind of stupidly obvious:
Code:
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0306", MODE="0666"
When I use this in my udev .rules file, it works perfectly.

Thanks for your help!
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode