-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble with PS3 controller via USB #55
Comments
We can upgrade to 3.14 noted here: As part of standard install it stays with oldest Canonical can maintain. You can switch to using latest Ubuntu kernel with LTS any time though |
@beaumanvienna , upgrading to 3.14 works!. I will continue to test this out in the beta. If things continue to work well for this week or the next, this could be semi-permant or it could always stay in beta. Seems xboxdrv is the only way to go. Folks will have to adjust the number of controllers in /etc/default/xboxdrv. You can't "pre-set" 4 controllers as you did with xbox 360. |
That's really good! The RetroRig will make a kernel update? Cool stuff! |
Well...right now I have it as a settings option, and when a user would choose the PS3 USB as a gampead it jumps to that function and warns them about non-supported kernels (if you check that link above you'll see Canonical standard blah blah blah on it). If beta testing goes well....then maybe we can just include this in the setup at the very end, and since they have to reboot anyway...presto chango, finished? So....for now I am going to keep working on the controls for PS3 USB today and refine those, test from scratch, but first I have many errants for a few hours yet. |
@beaumanvienna , JC - we need to chat a bit about the PS3 USB support. Is there a way we can build in a check for when the USB connection is severed with the USB PS3 Controller method, so that when it's plugged in the kernel module is again detached like it would on reboot? Here is the dmesg output:
This small script effectively does what I want to achieve, but I want to see how we can make this better or incorporate this into a service. Maybe rescan can continuously poll for that usb connection and then perform something like this:
I can't blacklist hid_sony, as I think it's used also for a basic connect (I tried). There fore the two lines above are needed. |
The good news, is while connected via USB, the controller does not "time out." |
Cool! I noticed you are working on test instructions right now. Very nice! I can then easily test all your changes. Are we already switching to kernel 3.14 by default? If yes, we could make a small dialog after install asking for a reboot. Like on good old windows :-D But: I won't start testing right now. The problem is that I use the Ubuntu test install also for xbmc and mednafen development. Right now, I got all tools working really nice :-D . Next weekend then! I have to admit, I like kdevelop quite a bit now. Haven't had a look at that for years. I like the debugging. It helps a lot to understand which ways a program goes... |
I did put in a reboot call at end, but removed it since the gamepad function already informs the user. I can "force" them to that screen at the end of it all. no problem :) Cool, yea I heard of Kdevelop. Time for some coffee...its 06:44, so its time to just stay up and not go back to sleep haha. |
Just make sure to switch off your computer, otherwise you'll mess up thinks ;-) |
If you use gdb directly (kdevelop is just a front-end), it gives you some more opportunities. When a programs hangs you can stop it it to get a backtrace. That's how I found the deadlocks in xbmc... I'm just glad now that mednafen is written in plain C. And it's not such a monster like XBMC... |
Oh you know .C is a proper language Hahha On July 6, 2014 7:21:51 AM EDT, Jens-Christian [email protected] wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
I did a re-install from scratch. Looks impressive! I'm now running on kernel 3.14. The grub menu was updated accordingly. The Nouveou driver had problems with the second monitor, but that was quickly resolved be updating to the Nvidia drivers. I did exchange xbmc.bin to the latest debug version. No hanging so far. I still can't run updates in RCB. This time I get to the import dialog, but it leaves me with a blank selection window. The import occurs every time again, when starting RCB. The import itself is less then a second, while it normaly takes 10 or 20s. There's a message popping up, but it's way to fast to read it. I'm now testing the PS3+USB combination. Good job on this one! Keymapping is fine, same as hotplugging. Awesome! Some things I noticed during ./retrorig_setup.sh: The cancel option is funny, when it's asking for a reboot after the install. After testing with USB, I'm now changing to BT. I ran ./retrorig_setup.sh again. It stop xboxdrv and starts. What's funny, I didn't had to press the PS3 after pairing, it started automatically with controller ID 2 (second LED on). Works fine with xbmc. Switching it off and back on leaves it still with ID 1. Hotplugging for BT still works. Really great job! A small thing that I noticed is after the BT pairing, when all is finished and the last dialog shows "Pairing of controller finished" (or something similar), there used to be a display of both BT MAC addresses. That's gone. I've been noticing that actually for three or four days now. The XBMC icon is still broken when it shows up in the launch bar. Hovering the mouse over it reveals "XBMC media center". And we got to suppress all these huge amount of text output, when RetroRig is changing the permissions. In gnome-terminal this is pretty fast, but still quite useless. When running the sript in a real TTY, it's much slower and just shows flickering character salad. But good job! The USB stuff and new kernel that you did in the last days looks really good! |
Hmm...I have no problem with this. Did you add a ROM, with the proper format to a ROM folder? It's probably just not importing anything. I have no problem with importing. You are seeing a blank window because the MyGames.db file is blank, and no games were imported. Hit the context menu, (Square or C on keyboard) and go to "edit ROM collection" Take a look in there for all the options I have set currently.
done - moved rrs_reboot() outside log brackets
I only had this in for debug purposes. Do you wan it left in for now, while in beta? See lines 96-98 of
You changed this line earlier:
Unity pulls the icon and file from the desktop entry in
Maybe we need to adjust that? It works just fine for me, but maybe we need a variable set for international languages.
done - added small message only if it takes long, they will see a notice rather than a wall of text |
JC, now I know what you mean:
I can see this when running in windowed mode. The user won't see that "new" icon that is blank and still says XBMC Media Center. I'll tray and track down where that comes from if you don't get it first. BTW, RCB is broken using the .retrorig dot file. Might just have to make some adjustments in the addon's xml. |
dotfile issue rectified, this is now in beta and functioning. The only problem JC, is disconnecting and reconnecting the controller. I'll have to look at that more. |
Should be fixed with updating the kernel to 3.14, right? |
Yes, you get the kernel module working fine, but if you disconnect and reconnect the controller, the kernel module seems to load alongside xboxdrv and take over. I still have to test this once I fix RCB tonight, but maybe there is something we can do. I don't know much about modifying kernel modules though. I will also check on the bug report filed for this for any patch files. It's possible that one was, or can be released, negating the need for the kernel upgrade we do. |
Merged into #70 |
Status
Regression in: Ubuntu 3.13.0-30-generic kernel
Kernel Module: sony-hid.ko
Still exists in latest trusty propsed: 3.13.0-31-generic
Latest comment on bug of relevance
"Had the same problem with Kernel 3.13.0-30. I upgraded the kernel to 3.14
from linux-image-3.14.0-031400-generic_3.14.0-031400.201403310035_amd64.deb and the controller now works.
brandon@Desktop:~$ uname -a
Linux Desktop 3.14.0-031400-generic #201403310035 SMP Mon Mar 31 04:36:23 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux"
Looks related to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1326725
Source article:
http://gameimps.com/ps3-controller-linux-usb-290
The text was updated successfully, but these errors were encountered: