Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Custom GPIO Map doesn't work with Joy-IT Gamestation

    GamePad/GPIO/USB encoder
    gpio analog joy mkarcadejoystic joy-it gamestation
    2
    4
    637
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PinKing
      PinKing last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • PinKing
        PinKing last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • acris
          acris last edited by

          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)
          1 Reply Last reply Reply Quote 0
          • PinKing
            PinKing last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Want to support us ?

            82
            Online

            98.7k
            Users

            28.1k
            Topics

            187.0k
            Posts

            Copyright © 2021 recalbox.com