Raspberry Pi 4

For information, Recalbox IS NOT compatible with Raspberry Pi 4 yet.
Pour information, Recalbox N'EST PAS encore compatible avec le Raspberry Pi 4.

The Recalbox Team.

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,4

    But 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 start

    all 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=doof

    After 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_rpi

    Ok, 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,4

    After 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_rpi

    No 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=5

    and 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_rpi

    Again 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.


  • Staff
    Moderator
    Team



  • 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.



Want to support us ?

244
Online

67432
Users

18926
Topics

141504
Posts

Looks like your connection to Recalbox Forum was lost, please wait while we try to reconnect.