Dolphin, the GameCube and Wii emulator - Forums
Problem accessing a Skylander Portal under Linux (Mint 17.3) - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Controllers (https://forums.dolphin-emu.org/Forum-controllers)
+--- Thread: Problem accessing a Skylander Portal under Linux (Mint 17.3) (/Thread-problem-accessing-a-skylander-portal-under-linux-mint-17-3)



Problem accessing a Skylander Portal under Linux (Mint 17.3) - santasemilla - 10-23-2016

Hi everyone,

I'm having an issue with permissions when trying to play Skylander Giants with its portal. I'm running linux Mint 17.3 and latest dolphin compilation (5.0-1127). The problem is that Dolphin doesn't have permissions to access the portal. When I run Dolphin as root all is fine, but under my user, I get this log errors and info:

info:

Code:
Core/IPC_HLE/WII_IPC_HLE_Device_hid.cpp:202 I[WII_IPC_HID]: Could not find handle: 0
Core/IPC_HLE/WII_IPC_HLE_Device_hid.cpp:168 I[WII_IPC_HID]: HID::IOCtl(Set Suspend) (BufferIn: (135dfd08, 8), BufferOut: (00000000, 0)
Core/IPC_HLE/WII_IPC_HLE_Device_hid.cpp:168 I[WII_IPC_HID]: HID::IOCtl(Set Suspend) (BufferIn: (135dfd08, 8), BufferOut: (00000000, 0)

Error:

Code:
Core/IPC_HLE/WII_IPC_HLE_Device_hid.cpp:582 E[WII_IPC_HID]: Dolphin does not have access to this device: Bus 001 Device 002: ID 1430:0150.

I got the info on the device and tried to make a rule as explained here, but nothing happened.
Additionally, I tried the solution proposed here for hidraw devices... but still no luk.

Could anyone give some advice on this problem? I know this is not specific a "Controller" but many of you deal with hidraw devices and linux.

Thanks for the help!!


RE: Problem accessing a Skylander Portal under Linux (Mint 17.3) - leolam - 10-23-2016

Make sure you have reloaded the udev rules (this should be done automatically, but you never know), then unplugged and replugged your device. The rules don't apply until you do that.

PS: many… we are ~450 recent, active Linux users. Tongue


RE: Problem accessing a Skylander Portal under Linux (Mint 17.3) - santasemilla - 10-24-2016

Hi leolam!

Thanks for stopping by. Yes, I was aware of that, but still no luck. I placed a file: 51-hidraw-permissions.rules at /etc/udev/rules.d containing:

Code:
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE:="0666", GROUP=="plugdev"
and yes, my user is part of the "plugdev" group by the way. It seems that permissions are well assigned as when I run: ls -lah /dev/hidraw* I get:

Code:
crw-rw-r-- 1 root plugdev 251, 0 Oct 23 10:34 /dev/hidraw0
crw-rw-r-- 1 root plugdev 251, 1 Oct 23 10:34 /dev/hidraw1
crw-rw-r-- 1 root plugdev 251, 2 Oct 23 10:34 /dev/hidraw2
crw-rw-rw- 1 root plugdev 251, 3 Oct 23 17:29 /dev/hidraw3
the hidraw3 is the portal, and the difference with the rest is 'cause I was playing with MODE:="0664" and MODE:="0666". But when I run Dolphin I still get the error:

Code:
Core/IPC_HLE/WII_IPC_HLE_Device_hid.cpp:582 E[WII_IPC_HID]: Dolphin does not have access to this device: Bus 001 Device 008: ID 1430:0150.
The strange thing is that in the past this rule used to work. I reinstalled my computer and had to do it again, but I have no idea why is not working now. Again, weird thing is that running Dolphin as sudo, all goes well. That's why I think it is a permissions problem.

Hope some of the ~449 other linux users see the post!  Big Grin


RE: Problem accessing a Skylander Portal under Linux (Mint 17.3) - leolam - 10-24-2016

Oh right, I forgot that the HID code doesn't use the HID interface, and instead directly interacts with the devices at a lower-level.

You need a rule like this one:

SUBSYSTEM=="usb", ATTRS{idVendor}=="YOURVID", ATTRS{idProduct}=="YOURPID", TAG+="uaccess"

to give permission to Dolphin to use the raw USB device. So in your case:

SUBSYSTEM=="usb", ATTRS{idVendor}=="1430", ATTRS{idProduct}=="0150", TAG+="uaccess"


RE: Problem accessing a Skylander Portal under Linux (Mint 17.3) - santasemilla - 10-24-2016

Thanks soooo much! That did the trick! I thought that the hidraw subsistem had to have a rule and not the usb directly. By the way... I don't know how this worked in the past Tongue

Thanks again leolam!
Problem solved.


RE: Problem accessing a Skylander Portal under Linux (Mint 17.3) - leolam - 10-24-2016

No problem, and nope, if you read the code, you will notice that it uses libusb directly and not a library like hidapi or at least the hidraw interface.


RE: Problem accessing a Skylander Portal under Linux (Mint 17.3) - santasemilla - 05-21-2017

Hi! Just reviving this thread. I'm trying to play Skyalanders Giants with Dolphin 5.0-3813 right now but I don't know why the portal is not recognized. It is ok as a USB device, no errors under dolphin log, just nothing. Could it be something missing on the last builds? This was happening on a previous one (couple of weeks ago) but I cannot recall the version number.

Thanks so much for the help!


RE: Problem accessing a Skylander Portal under Linux (Mint 17.3) - DJBarry004 - 05-21-2017

I ain´t admin or anything, but necroposting is prohibited man... :/


RE: Problem accessing a Skylander Portal under Linux (Mint 17.3) - santasemilla - 05-21-2017

(05-21-2017, 11:47 AM)DJBarry004 Wrote: I ain´t admin or anything, but necroposting is prohibited man... :/

mmm... you are right, my bad. I'll make a new one.
Thanks!


RE: Problem accessing a Skylander Portal under Linux (Mint 17.3) - MayImilae - 05-21-2017

*waves her magic moderator wand*

Closed!