Need help with GPIO controller weird issues !
-
Hello
I am french, so please excuse my bad english.Pi Model or other hardware: Pi3
Power Supply used: 5V2A
RetroPie Version Used : 4.2.7
Built From: Pre made SD Image on RetroPie website
USB Devices connected: keyboard
Controller used: GPIO joysticks and buttonsI have built up an arcade with a raspberry pi 3 using GPIO for 2 players with 8 buttons each (A, B, X, Y, L, R, joyUp, joyDown, joyLeft, joyRight, START, SELECT).
I use retropie with emulationstation and my usb keyboard is also plugged into the rasp.
Everything worked fine, the buttons and joysticks are rigged correctly to the GPIO pins, but at some point, i updated the whole setup and my controls have been acting weirdly ever since.
I remember trying to follow this tutorial
https://www.raspberrypi.org/forums/viewtopic.php?t=83317
but i am not sure if all went well because i got anERROR : Unable to find kernel headers
at the end of the install.sh script.
In Emulationstation, when i try to use the "configure input" menu, it says 2 gamepads detected.
if i press briefly each button for either player 1 or 2, it says "GPIO CONTROLLER 1 (or 2)" but sometimes it says "KEYBOARD".
Some directions on the joystick give me a "KEYBOARD" and some dont seem to work at all.I've done a jstest on both players (js0) and (js1)
Every button and joystick direction is responding "ON" when i press it but some buttons act weirdly.
For js0 if i press everything i get :
Driver version is 2.1.0.
Joystick (GPIO controller 1) has 2 axes (X, Y)
and 12 buttons (BtnX, BtnY, BtnZ, BtnTL, BtnTR, BtnTL2, BtnTR2, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR).
Testing ... (interrupt to exit)
Axes: 0: 32767 1: 32767 Buttons: 0:on 1:on 2:off 3:on 4:on 5:off 6:on 7:on 8:off 9:off 10:on 11:onBut when i press button 11 i also get some ^[[D to appear at the end of the line
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:on ^[[D^[[D^
...... and i get other letters for some other buttons or directions such as x, w, b, a, ....
For js1 if i press everything i get :Driver version is 2.1.0.
Joystick (GPIO controller 2) has 2 axes (X, Y)
and 12 buttons (BtnX, BtnY, BtnZ, BtnTL, BtnTR, BtnTL2, BtnTR2, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR).
Testing ... (interrupt to exit)
Axes: 0: 32767 1: 32767 Buttons: 0:on 1:on 2:off 3:on 4:on 5:off 6:on 7:on 8:off 9:off 10:on 11:onBut when i press button 10 i also get like if i pressed "return", a carriage return and line feed, making the jstest line to appear again like so
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:on 11:off
...... and i get other letters for some other buttons or directions as well.
What i understand is that all my buttons and joystick directions are detected, but some extra data (corresponding to some keyboard presses apparently) is sent when i press some buttons which make the controller configuration in emulationstation impossible... some buttons are skipped automatically, some dont respond....
What can i do to fix this ? I dont want to wipe everything, as i've spent many many hours uploading my roms and scraping them properly....
Thank you very much.
-
Maybe anyone could help me remove every config file concerning controllers and start from there ? Do i need specific packages installed and to enable gpio controls somewhere or is everything now supported by default in the latest rev of retropie ?
I've spent hours trying to fix this with no result whatsoever... :'-(
Is there a way to uninstall retropie, and then install it over again, without losing my roms dir and scraps in the process ? What does the "uninstall retropie" option actually do ?
Thank you
-
@jesuska said in Need help with GPIO controller weird issues !:
i updated the whole setup
When you say whole setup what steps did you follow to update? Did you update the underlying OS when prompted?
You said it was working before the update? Did you make a backup image before updating?
-
@jesuska Also, check your power supply, you are under powered at 2A. You really need 2.5A.
-
That guide is outdated (I think it was around RetroPie 2), the mk_arcade_joystick module can be installed from the Retropie setup drivers menu.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.