GPIO joystick and buttons issue
-
@ivolourenco So, each of the buttons are working properly and independantly. The daisy chain is just for the ground, and should link a pin of each switch to the Pi ground.
You're not supposed to remap the controller in ES, it's configured by default. Try those commands in SSH :
/etc/init.d/S31emulationstation stop cp /recalbox/share_init/system/.emulationstation/es_input.cfg ~/.emulationstation /etc/init.d/S31emulationstation start
And try your stick without reconfiguring it for now
-
@Substring see the outup of those commands:
""" # /etc/init.d/S31emulationstation stop
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
ERROR - tried to write to log file before it was open! The following won't be logged:
lvlERROR - tried to write to log file before it was open! The following won't be logged:cp /recalbox/share_init/system/.emulatoions
BusyBox v1.25.1 (2017-10-12 19:45:17 UTC) multi-call binary.
Usage: cp [OPTIONS] SOURCE... DEST
Copy SOURCE(s) to DEST
-a Same as -dpR -R,-r Recurse -d,-P Preserve symlinks (default if -R) -L Follow all symlinks -H Follow symlinks on command line -p Preserve file attributes if possible -f Overwrite -i Prompt before overwrite -l,-s Create (sym)links -u Copy only newer files
/etc/init.d/S31emulationstation start
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
lvl0: System "favorites" is missing name, path, extension, or command!
lo IP Address 127.0.0.1
eth0 IP Address 169.254.119.52
curl: (6) Couldn't resolve host 'recaleur-archive-prod.recalbox.com'' """Note: The joystick works withing the recalbox. But none the button work still.
-
@ivolourenco said in GPIO joystick and buttons issue:
cp /recalbox/share_init/system/.emulatoions
This is not the command I wrote, please read again
-
@Substring sorry for that, output below.
"""# /etc/init.d/S31emulationstation stop
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
ERROR - tried to write to log file before it was open! The following won't be logged:
lvlERROR - tried to write to log file before it was open! The following won't be logged:cp /recalbox/share_init/system/.emulations
BusyBox v1.25.1 (2017-10-12 19:45:17 UTC) multi-call binary.
Usage: cp [OPTIONS] SOURCE... DEST
Copy SOURCE(s) to DEST
-a Same as -dpR -R,-r Recurse -d,-P Preserve symlinks (default if -R) -L Follow all symlinks -H Follow symlinks on command line -p Preserve file attributes if possible -f Overwrite -i Prompt before overwrite -l,-s Create (sym)links -u Copy only newer files
/etc/init.d/S31emulationstation start
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
lvl0: System "favorites" is missing name, path, extension, or command!
lo IP Address 127.0.0.1
eth0 IP Address 169.254.119.52
curl: (6) Couldn't resolve host 'recaleur-archive-prod.recalbox.com'""" -
@ivolourenco the
cp
command is not correctly typed. I tried it on my recalbox and it works.
When reporting, please use such `bback quotes, not double quotes -
@Substring All buttons responding. Seems incorrectly setup though. Shall I remap them?
And what have i done... with the commands you suggested?
# lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"! lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"! lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"! ERROR - tried to write to log file before it was open! The following won't be logged: # cp /recalbox/share_init/system/.emulations/es_input.cfg ~/ cp: can't stat '/recalbox/share_init/system/.emulations/es_input.cfg': No such file or directory # cp /recalbox/share_init/system/.emulationstation/es_input.cfg ~/.emulationstation # /etc/init.d/S31emulationstation start # lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"! lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"! lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"! lvl0: System "favorites" is missing name, path, extension, or command! lo IP Address 127.0.0.1 eth0 IP Address 169.254.119.52 curl: (6) Couldn't resolve host 'recaleur-archive-prod.recalbox.com' ============================================== ==============================================
-
@ivolourenco Incorrectly setup ? If you followed the wiring diagram + buttons layout like :
Y X L
B A XYou shouldn't have to remap. But ok, try remapping now you know how to reset the mapping
-
@substring going to start drilling the button now!
I just noticed that when i push up it goes down... so may be there is a issue on the setup of wiring.
However, I did a run on remapping but it still does not recognise after A button
Thanks
-
@ivolourenco can you go to http://recalbox while trying to remap, and make a screenshot of Recalbox when you're stuck at remapping ? You can post it here using the small cloud icon with an arrow, no need to drop it on some website
-
@substring so this what i do:
-
Main Menu/ Controller Settings
-
2 Gamepads detected (picture below)
-
Press A and start the configuration (joystick configured - Picture below)
- A button configured as Button 1 and after this none of the others are recognised.
-
-
@ivolourenco so no button would work once A is assigned ? They all work on evtest, i don't get it ... unless you mixed P1 and P2 ...
-
@substring yes basically none work after A is assigned.
How could P1 or P2 affect that? I’m using the GPIO layout proposed within the wiki.
Is there a way within evtest to understand that the button is assigned to the correct GPIO pin?
-
@ivolourenco nope evtest just reports which event has been triggered. I still believe that if you're saying the layout is not right, then the wiring is wrong
-
@substring so I setup my buttons, initiate a game. And then when I have a game loaded at the insert coin (metal slug) or 1 player game (mario) there is no response from any button. I do not have an hot key specific button.
I tried once again to remap my buttons but it does not work as mentioned above.all the wiring is ok as per schematic.
Any thoughts?
-
@ivolourenco someone has the same kind of issue but for dreamcast only. Can you make ansupport archive ?
-
@substring after some more testing this occur within Neo Geo, Name, PlayStation. I can play some games of Nintendo not all.
Support Archive is a separate topic? (Sorry for the noob questions)
-
@ivolourenco go to http://recalbox/help and make a support archive, post the generated link here
-
@Substring Page not found (404) - Below.
Page not found (404)
Request Method: GET
Request URL: http://recalbox/help
Using the URLconf defined in project.urls, Django tried these URL patterns, in this order:
^media/(?P<path>.)$
^500/$
^404/$
^static/(?P<path>.)$
^ ^$ [name='home']
^ ^bios/$ [name='bios']
^ ^bios/upload$ [name='bios-upload']
^ ^config/$ [name='config']
^ ^monitoring/$ [name='monitoring']
^ ^logs/$ [name='logs']
^ ^systems/$ [name='roms-systems']
^ ^systems/roms/(?P<system>\w+)/$ [name='roms-list']
^ ^systems/roms/(?P<system>\w+)/upload/$ [name='roms-upload']
The current URL, help, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. -
@ivolourenco which recalbox version do you have ? Don't tell me you're still on 4.0 ?
-
@substring was 4.0 because I could not found roms... so i was using a compile file to try some games.
Changed to the 4.1 and did the support archive, same problems regarding the mapping. (https://file.ac/DaGZwV_MA-U/)
Can we discuss roms subjec on Kiwi IRC? Let me know when suits you.