Android Cannot map Wirelesss Controller to SNES ports on Sony Android TV
#1
In Kodi Input Setting of my Sony Android TV, I can see 3 peripherals. "virtual-search" and "wireless Controller" for two PS4 Controllers.

Whenever I start SNES (Snes9x), Port 1 is always occupied by this "virtual-search" which I have no idea what it is.

Can anyone please help me in getting rid of "virtual-search" device so that my two PS4 controllers can get properly assigned to Port 1 and 2? Thanks.
Reply
#2
This is partially fixed in v20.3 (unreleased) and v21 Beta 1. Kodi will now assign controllers to ports based on when the last button was pressed on each controller (but only since Kodi was last started).

The fix is included in my test builds: https://github.com/garbear/xbmc/releases .

You can also grab the latest v20.2 nightly (includes the Android controller fix) here: http://mirrors.kodi.tv/nightlies/android...v8a/Nexus/

If that doesn't fix the problem, can you please upload a debug log?
RetroPlayer releases: https://github.com/garbear/xbmc/releases

Donations: eigendude.eth
Reply
#3
Thanks for the response and your continuous work on this. I forgot to mention, but I am using v21 Beta 1, and I've followed all the discussion around controller assignment issues on this board, including this one Solved - Games on Kodi 20.1 on Philips TV Android 10 - game controls don't work

It still doesn't work. I tried to press buttons on my two PS4 controllers before I launch SNES to make them the last active controllers, but this "virtual-search" device is always there. Sometimes if I'm lucky (maybe after I do controller button assignment) I can get my two controllers assigned to Port 1 and 2, but it is so tedious to having to assign buttons every time.

I will upload a debug log when I get a chance. Thank you.

Can't wait for Player Management feature to make further progress.
Reply
#4
Here is the debug log starting from right before launching SNES until the controller port assignment. Please let me know if I didn't do it right, and I can do it again.

https://paste.kodi.tv/isarudinaj.kodi
Reply
#5
Port 1 being occupied by "virtual-search" seems to be a long standing issue. Currently trying to get the controller to work on my nvidia shield and I'm having the exact same issue. Digging through the board I see that this was mentioned before, and wonder if voice input is what's messing up the port order.
Reply
#6
Thanks for confirming the issue. I was also suspecting whether it's "virtual-search" is some kind of remote control's voice input.

I tried to take advantage of the current behavior where the last active input devices get the port assignment, but even if I press the D pads of my two PS4 controllers prior to launching SNES to make them the last active, most of the times "virtual-search" still gets assigned to either Port 1 or Port 2.
Reply
#7
I created a fix for Kodi to ignore virtual controllers: https://github.com/xbmc/xbmc/pull/24382

The fix will be included in v20.3 and v21 Beta 3.

The fix is included in my latest round of test builds: https://github.com/garbear/xbmc/releases
RetroPlayer releases: https://github.com/garbear/xbmc/releases

Donations: eigendude.eth
Reply
#8
Thanks garbear, your fix seems to be working!
Reply
#9
I'm bringing together all recent Android controller support threads: https://forum.kodi.tv/showthread.php?tid=376084

Please bring further help debugging these issues to that thread!
RetroPlayer releases: https://github.com/garbear/xbmc/releases

Donations: eigendude.eth
Reply
#10
@shogen Can you test again with my latest 2024-01-29 build? I think I've got most Android bugs figured out, want to make sure your setup still works with it. And bring results to the new thread! https://forum.kodi.tv/showthread.php?tid=376084
RetroPlayer releases: https://github.com/garbear/xbmc/releases

Donations: eigendude.eth
Reply
#11
The build link is not working. Can you check? https://github.com/garbear/xbmc/releases...bi-v7a.apk
Reply
#12
Thanks, it had a link to an earlier build. Should be fixed now.
RetroPlayer releases: https://github.com/garbear/xbmc/releases

Donations: eigendude.eth
Reply

Logout Mark Read Team Forum Stats Members Help
Cannot map Wirelesss Controller to SNES ports on Sony Android TV0