Skip to content
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

Amiberry does not start when the controller is connected wireless per ps3controller-driver #1246

Closed
NoobieMaks opened this issue Mar 17, 2024 · 7 comments
Assignees
Labels
can't recreate fixed in master Fixed in the master branch fixed in preview Fixed in the preview branch

Comments

@NoobieMaks
Copy link

Hello, hopefully someone can help me.

I'm using a Raspberry Pi 3 B, the latest Retropie (4.8.6) and the latest Amiberry (5.6.6) in the Retropie-Setup-Source.
Using WHDLoad with the latest lha-files.

For years I try to set up my perfect retro pi image:

  1. jessie + RePi 4.4.12 + Amiberry 2.25 + ps3-driver = my first try, good but no .lha-support
  2. stretch + RePi 4.5.11 + Amiberry 3.0.11 + sixad-driver = really good but the sixad-driver leads to ghost-input in the Emulation Station-menu -> no more possible to change to the ps3controller -> error: "could not install package(s): libusb-dev"
  3. buster + RePi 4.8.6 + Amiberry 5.6.6 = would have been my hope to get the ps3controller-driver to have no ghost input issue, I'm using only ps3-controller, so I have no need for the sixad-driver.

Nearly everything works fine in my 3rd project - I can install both drivers (ps3/ sixad), of course installed and used only alternatively.

And now I come to my problem:
Amiberry doesn't start when the controller is connected per ps3controller-driver. Every other section/emulator works fine with it.
If I'm connected per cable Amiberry starts fine, also when I'm connected wireless with the sixad-driver.

It seems that only my desired ps3controller-driver doesn't let me open my .lha-files:
When I start a game I can only see 2-3 flashes of the mouse arrow on the left upper edge and then I fall back to the Emulation Station screen. When I uninstall the ps3controller-driver and install the sixad then I can open the games and also play wireless properly.

I really hope someone could help me finishing my perfect setting.
Maybe someone can tell me how I can install the ps3controller driver to my 2nd project (strech -> error: "could not install package(s): libusb-dev").

@midwan
Copy link
Collaborator

midwan commented Mar 18, 2024

It probably starts and shuts down right away, due to some error.
Try enabling logging in Amiberry, and check if you have any messages in there that might indicate what went wrong. If it crashes before it writes to the log, there won't be any of course. But it would still show how far it got.

Alternatively, try launching Amiberry from the console manually, to see if any errors are output on the console when it crashes.

@midwan midwan self-assigned this Mar 18, 2024
@NoobieMaks
Copy link
Author

NoobieMaks commented Mar 18, 2024 via email

@midwan
Copy link
Collaborator

midwan commented Mar 18, 2024

You probably don't have permissions to write to the destination where the logfile is set to be created.
You can either change the path there to somewhere you can write to, or change the permissions in that folder accordingly.

Starting from the console, means exit EmulationStation (with F4 from what I recall), and manually navigate to the location amiberry is installed, then launching it from there. If things haven't changed, something the following should do this (check if the paths are correct):

cd /opt/retropie/emulators/amiberry
./amiberry

@NoobieMaks
Copy link
Author

Thanks for your support. Launching from the console had the same result as from ES: Just a short flash of the amibery menu. So hopefully you can find something in the attached log-files I made one with sixad-driver and one with the problematic ps3controller-driver.
amiberry_sixad.log
amiberry_ps3.log

@midwan
Copy link
Collaborator

midwan commented Mar 18, 2024

From what I can see in the logs, it crashes right between setting up the controller mapping and writing out the Joystick name for the controller.

It's possible that the text it got for the Joystick name is either null or invalid, which could cause an issue when it tries to read from it later on, and write that to the log also. We never see that line written out in the ps3 log you posted.

I'm refactoring that area of the code today, so I'll add a fix for this kind of scenario as well, which hopefully will gracefully take care of such kind of situations. But you'll need to update Amiberry to the latest version (when this is released) to get the fix, of course.

midwan added a commit that referenced this issue Mar 18, 2024
midwan added a commit that referenced this issue Mar 18, 2024
@midwan midwan added can't recreate fixed in preview Fixed in the preview branch fixed in master Fixed in the master branch labels Mar 18, 2024
@midwan
Copy link
Collaborator

midwan commented Mar 18, 2024

This will be part of 5.6.9

@midwan midwan closed this as completed Mar 18, 2024
@NoobieMaks
Copy link
Author

Thank you so much! - I can't await 5.6.9 for next possible Retropie Amiberry Update.
You really brought back my good childhood days with Amiberry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't recreate fixed in master Fixed in the master branch fixed in preview Fixed in the preview branch
Projects
None yet
Development

No branches or pull requests

2 participants