Linux 'Hotplugging' controller doesn't work in SteamOS.
#1
Basically what it says in the title. I Installed XBMC 13.1 via the new XBMC Beta Repo @ deb http://mirrors.xbmc.org/apt/steamos alchemist main and added the xbox 360 controller xml file to my /home/steam/.xbmc/userdata/keymaps folder and it works great at first.The controller auto-shuts down after a few minutes but when I turn it back on the only button that works is the middle xbox button to close out of the program via the SteamOS UI. If I exit out it works fine and I can relaunch XBMC with full control again. This tells me that SteamOS still detects it and it appears to be an issue with XBMC handling hotplug events.

This thread has a response from valve regarding this issue generically:
http://steamcommunity.com/groups/steamun...389164746/

My debug log:
http://xbmclogs.com/show.php?id=233798

xbox 360 XML file:
http://pastebin.com/fr86ySVU

XBMC (13.1 Git:f2acae7). Platform: x86 Linux 64-bit
XBMC x64 build, compiled Jun 9 2014 by GCC 4.7.2 for x86 Linux 64-bit 3.10.11
Running on Linux 64-bit (SteamOS GNU/Linux 1.0 (alchemist), 3.10-3-amd64 x86_64)
Host CPU: Intel® Core™ i7-4700HQ CPU @ 2.40GHz
Host GPU: Nvidia Optimus(GeForce 870m/Intel HD)
XBMC Beta Repo: deb http://mirrors.xbmc.org/apt/steamos alchemist main
Reply
#2
You xbox controller is wireless I reckon? I'll have a wireless in a while and will see if I can reproduce
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#3
Yes, MS controller and official dongle. My wired afterglow Xbox controller doesn't have the issue as it stays on the entire time.
Reply
#4
Hope this isn't considered as thread necromancy Smile

I can confirm that this still seems to be an issue with XBMC on SteamOS. If there is anything I can help with regards to testing then I would be glad to help.

My setup is SteamOS (alchemist_beta) + XBMC for SteamOS
AMD Ryzen 5 2700
Asus ROG Strix B350 ITX
Geforce RTX 2060 
Ubuntu 20.04 LTS | Kernel 5.8.1 | Nvidia blob drivers 
Kodi v18.8
Reply
#5
I have a patch which uses SDL2 which I suspect fixes this, however the move to SDL2 shows some weakness to our otherwise crappy input code so its not possible to use the controllers Smile Its somewhat enough to test if it fixes though but I won't have time to compile on SteamOS and test it now as I try to focus on Helix.

So if someone wants to take over or try it I could possibly clean up it and push. But doubt anyone will do so in time for Helix.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#6
There is a half working workaround here, seems to stop working once media is played

http://forum.xbmc.org/showthread.php?tid...pid1722549
Reply
#7
@teedubb: thx Smile
based your your idea: https://github.com/xbmc/xbmc/pull/5274
works for me with PS3 controller while playing media

edit: note for steamos
if you have ipv6 enabled(default), you might need to install netcat-openbsd
Reply
#8
Ive tested some more and it looks like the 360 controller and xbmc stop communicating after playing media. Huh There is nothing obvious in the logs. System is xbmc 13.2, ubuntu x64 14.04, 3.16 kernel with valves xpad driver. Problem doesnt occur in steamos.
Reply
#9
It did happen in SteamOS until hot-plugging was added to it sometime mid this year. Though if a game does not support it then it will not recognize that the device number has changed after the controller has been brought out of sleep mode. It will try to attach to the device ID it detected at the moment the game was initially started.
AMD Ryzen 5 2700
Asus ROG Strix B350 ITX
Geforce RTX 2060 
Ubuntu 20.04 LTS | Kernel 5.8.1 | Nvidia blob drivers 
Kodi v18.8
Reply
#10
Just tested with a helix nightly and the controller still works after starting media playback. I guess this is the sdl/refresh rate bug Ive read about (my steamos install isnt configured to use auto refresh rate switching)...
Reply



Logout Mark Read Team Forum Stats Members Help
'Hotplugging' controller doesn't work in SteamOS.0
This forum uses Lukasz Tkacz MyBB addons.