Custom GPIO Map doesn't work with Joy-IT Gamestation
-
Hi guys,
I have a Joy-IT Gamstation and I tried to configure the custom buttons. In recalbox.config I configured this:controllers.gpio.enabled=1
controllers.gpio.args=map=5 gpio=25,22,26,21,3,5,20,19,14,16,15,13,4But after starting recalbox my buttons do not the right things.
When I logged into the recalbox with ssh and write the following commands on the console:
modprobe -r mk_arcade_joystick_rpi
modprobe mk_arcade_joystick_rpi map=5 gpio=25,22,26,21,3,5,20,19,14,16,15,13,4
/etc/init.d/S31emulationstation stop
/etc/init.d/S31emulationstation startall buttons working as they should.
Now I put this as a workaround in a script in /recalbox/share/System/custom.sh which is startet from /etc/init.d/S99custom after the recalbox is up, and this works for me, but my question is:
Why do not work the parameters in recalbox.config? What did I overlook?
I post this in german forum too, but there was no response. I hope somebody here can give me a tipp, so I do not need the workaround anymore…
Greetings,
Andy. -
Hi guys,
i think there is a bug in reading the args for custom gpios.
I did following:
In /etc/init.d/S26recalboxsystem I put some debug lines
rb_gpio_configure() {
settings_gpio_mk="$systemsetting -command load -key controllers.gpio.enabled
"
echo "Andy S26_2 : settings_gpio_mk: $settings_gpio_mk" 2>&1 | recallog
if [ "$settings_gpio_mk" == "1" ];then
settings_gpio_map="$systemsetting -command load -key controllers.gpio.args
"
echo "Andy S26_3 : settings_gpio_map: $settings_gpio_map" 2>&1 | recallog
[ "$settings_gpio_map" == "" ] && settings_gpio_map="map=1,2"
recallog "enabling mk_arcade_joystick_rpi"
eval $config_script "module" "load" mk_arcade_joystick_rpi "$settings_gpio_map" 2>&1 | recallog
else
...Then I set controllers.gpio.args to "doof"
in /recalbox/share/system/recalbox.conf; ------------ D2 - GPIO Controllers ------------ #
; GPIO Controllers
; enable controllers on GPIO with mk_arcarde_joystick_rpi (0,1)
controllers.gpio.enabled=1
controllers.gpio.args=doofAfter reboot I found this in
/recalbox/share/system/logs/recalbox.log[ 5.88] Andy S26_2 : settings_gpio_mk: 1
[ 5.90] ---- recalbox-config.sh ----
[ 5.91] Andy S26_3 : settings_gpio_map: doof
[ 5.92] enabling mk_arcade_joystick_rpiOk, the reading of this gpio-arg was ok.
Now I change the args to the parameters I need:
;------------ D2 - GPIO Controllers ------------ #
; GPIO Controllers
; enable controllers on GPIO with mk_arcarde_joystick_rpi (0,1)
controllers.gpio.enabled=1
controllers.gpio.args=map=5 gpio=25,22,26,21,3,5,20,19,14,16,15,13,4After reboot this is the result in recalbox.conf
/recalbox/share/system/logs/recalbox.log
[ 5.94] Andy S26_2 : settings_gpio_mk: 1
[ 5.96] setting timezone to Europe/Paris
[ 5.97] ---- recalbox-config.sh ----
[ 5.98] Andy S26_3 : settings_gpio_map:
[ 5.99] enabling mk_arcade_joystick_rpiNo args in settings_gpio_map in log-file!!!!
I changed the arg to only map=5 …
; ------------ D2 - GPIO Controllers ------------ #
; GPIO Controllers
; enable controllers on GPIO with mk_arcarde_joystick_rpi (0,1)
controllers.gpio.enabled=1
controllers.gpio.args=map=5and reboot the system...
[ 6.03] Andy S26_2 : settings_gpio_mk: 1
[ 6.05] setting timezone to Europe/Paris
[ 6.06] Andy S26_3 : settings_gpio_map:
[ 6.07] ---- recalbox-config.sh ----
[ 6.07] enabling mk_arcade_joystick_rpiAgain no content in settings_gpio_map!!!
Now i don't wonder, why my custom gpio settings do not work.
Can some comprehend this?
Is this a bug or a feature?
Greetings,
Andy.
-
it's know bug
https://forum.recalbox.com/topic/18829/6-1-et-manettes-gamecon/21
https://gitlab.com/recalbox/recalbox/blob/master/RELEASE-NOTES.md
- Fix GPIO driver not loading (Arcade, GameCon & DB9)
-
Hi acris,
thank you for this Information. I don't not understand french, so I didn't find the post with the solution for my problem. I excuse me, for wasting your time...
Greetings,
Andy.