RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    joy2key does not start in RetroPie dialog menus

    Scheduled Pinned Locked Moved Help and Support
    joy2keyjoy2keysdl.py
    7 Posts 2 Posters 261 Views
    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.
    • A
      anton2026
      last edited by

      Hi, I have a problem with joy2key, it does not autostart when entering menus like the retropie setup script menu (I think so because my controller isn't working there). But when I ssh into my pi and run /opt/retropie/admin/joy2key/joy2key_sdl.py kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 0x1b 0x00 kpp knp -d then the controller works fine in the menu.
      Here is the log from the command:

      pi@raspberrypi:~ $ /opt/retropie/admin/joy2key/joy2key_sdl.py kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 0x1b 0x00 kpp knp -d
      2024-12-02 15:39:20,940 DEBUG  Debugging enabled, running in foreground
      2024-12-02 15:39:20,941 DEBUG  Cannot determine input code for "0x00", value ignored
      2024-12-02 15:39:20,941 DEBUG  Cannot determine input code for "0x00", value ignored
      2024-12-02 15:39:20,941 DEBUG  Joy map:
       {'left': 105, 'right': 106, 'up': 103, 'down': 108, 'a': 28, 'b': 57, 'x': 1, 'y': 0, 'pageup': 104, 'pagedown': 109}
      2024-12-02 15:39:21,070 DEBUG  Using SDL Version 2.0.10, PySDL2 version 0.9.17
      2024-12-02 15:39:21,070 DEBUG  Creating uinput keyboard devices with events: [(1, 105), (1, 106), (1, 103), (1, 108), (1, 28), (1, 57), (1, 1), (1, 0), (1, 104), (1, 109)]
      2024-12-02 15:39:21,074 DEBUG  Joystick #0 Arduino LLC Arduino Leonardo added
      2024-12-02 15:39:21,075 DEBUG  Added configuration for known device Arduino LLC Arduino Leonardo, hats: {}, buttons: {10: 'pageup', 0: 'up', 2: 'left', 3: 'right', 11: 'pagedown', 6: 'y', 7: 'x', 1: 'down', 4: 'b', 5: 'a'}, axis: {3: [(-1, 'up'), (1, 'down')], 2: [(-1, 'left'), (1, 'right')], 1: [(1, 'down'), (-1, 'up')], 0: [(1, 'right'), (-1, 'left')]}
      2024-12-02 15:39:26,335 DEBUG  Events to emit: ['a']
      2024-12-02 15:39:26,336 DEBUG  Emitting input code 28
      2024-12-02 15:39:30,248 DEBUG  Events to emit: ['right']
      2024-12-02 15:39:30,249 DEBUG  Emitting input code 106
      2024-12-02 15:39:35,465 DEBUG  Events to emit: ['a']
      2024-12-02 15:39:35,465 DEBUG  Emitting input code 28
      2024-12-02 15:39:35,581 DEBUG  /opt/retropie/admin/joy2key/joy2key_sdl.py exiting cleanly
      pi@raspberrypi:~ $
      

      And also if I try to update/reinstall it, it says "Unable to install binary for joy2key".
      Here is the log:

      Log started at: Mon  2 Dec 15:47:49 CET 2024
      
      RetroPie-Setup version: 4.8.9 (e553dee)
      System: rpi4 (aarch64) - Debian GNU/Linux 10 (buster) - Linux raspberrypi 5.10.17-v8+ #1414 SMP PREEMPT Fri Apr 30 13:23:25 BST 2021 aarch64 GNU/Linux
      Update is available - updating ...
      
      = = = = = = = = = = = = = = = = = = = = =
      Installing dependencies for 'joy2key' : Provides joystick to keyboard conversion for navigation of RetroPie dialog menus
      = = = = = = = = = = = = = = = = = = = = =
      
      
      = = = = = = = = = = = = = = = = = = = = =
      Installing (binary) 'joy2key' : Provides joystick to keyboard conversion for navigation of RetroPie dialog menus
      = = = = = = = = = = = = = = = = = = = = =
      
      Compiling '/opt/retropie/admin/joy2key/joy2key.py'...
      Compiling '/opt/retropie/admin/joy2key/joy2key_sdl.py'...
      Compiling '/opt/retropie/admin/joy2key/osk.py'...
      Unable to install binary for joy2key
      
      Log ended at: Mon  2 Dec 15:47:50 CET 2024
      Total running time: 0 hours, 0 mins, 1 secs
      

      Pi Model or other hardware: Raspberry Pi 4 (4 GB), Elecrow 5 inch screen (RC050S)
      Power Supply used: Random 60w charger
      RetroPie Version Used: 4.8.9
      Built From: Raspberry Pi OS Buster Lite
      USB Devices connected: Elecrow 5 inch screen (RC050S), My DIY Gamepad
      Controller used: My DIY Gamepad, DualShock 4 clone
      Guide used: https://retropie.org.uk/docs/Manual-Installation/
      File: /opt/retropie/admin/joy2key/joy2key_sdl.py (this file runs fine (i think) but the problem is related)

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @anton2026
        last edited by mitu

        @anton2026 said in joy2key does not start in RetroPie dialog menus:

        System: rpi4 (aarch64) - Debian GNU/Linux 10 (buster) - Linux raspberrypi 5.10.17-v8+ #1414 SMP PREEMPT Fri Apr 30 13:23:25 BST 2021 aarch64 GNU/Linux

        There's no Buster 64bit system officially released by Raspberry Pi. How did you install this system ?

        And also if I try to update/reinstall it, it says "Unable to install binary for joy2key".

        Can you run with

        cd $HOME/RetroPie-Setup
        sudo __debug=1 ./retropie_packages.sh joy2key install
        

        then post the output on pastebin.com ?

        Controller used: My DIY Gamepad, DualShock 4 clone

        Is the DS4 clone working with joy2key, without the need to start it manually ?

        1 Reply Last reply Reply Quote 0
        • A
          anton2026
          last edited by

          @mitu said in joy2key does not start in RetroPie dialog menus:

          There's no Buster 64bit system officially released by Raspberry Pi. How did you install this system ?

          I don't know if it is an official release or not, but I got it here.

          Is the DS4 clone working with joy2key, without the need to start it manually ?

          Sorry, I can't tell you right now. The controller is wierd, it does not work with Raspberry Pi OS through USB. It does work with bluetooth, but I need to pair it every time again (right now I can't connect it, I don't know why).

          Can you run with

          cd $HOME/RetroPie-Setup
          sudo __debug=1 ./retropie_packages.sh joy2key install
          

          then post the output on pastebin.com ?

          I tried to run sudo __debug=1 ./retropie_packages.sh joy2key install > log.txt, because the log was too long and my command line wasn't showing all of it (I think), but it only wrote this into the file:

          
          = = = = = = = = = = = = = = = = = = = = =
          Installing (binary) 'joy2key' : Provides joystick to keyboard conversion for navigation of RetroPie dialog menus
          = = = = = = = = = = = = = = = = = = = = =
          
          Compiling '/opt/retropie/admin/joy2key/joy2key.py'...
          Compiling '/opt/retropie/admin/joy2key/joy2key_sdl.py'...
          Compiling '/opt/retropie/admin/joy2key/osk.py'...
          

          Here is the log that the command line displayed.

          I also tried sudo __debug=1 ./retropie_packages.sh joy2key install 2>&1 | tee log.txt, but I don't know if it is all of it. Pastebin.com said it was too long, so I uploaded it on my onedrive.

          Thanks for your help!

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @anton2026
            last edited by

            @anton2026 said in joy2key does not start in RetroPie dialog menus:

            I don't know if it is an official release or not, but I got it here.

            It's not a release, it was a beta image. Any reason why you're not using a 32bit official image or even a RetroPie image ?

            I think that the installation doesn't succeed since on a Pi4 with Buster we always assume a 32 bit system and there's no 'binary' package for 64bit system. Could be something else, but I can't see the actuall error in the log.

            I advise you to either use the 32bit Pi4 image from the RetroPie site or a 64bit current RaspiOS. For the former the installation will be faster, since RetroPie provides binary packages and no installation from source is needed, but the latter is needed if you really want a 64bit system.

            A 1 Reply Last reply Reply Quote 0
            • A
              anton2026 @mitu
              last edited by

              @mitu said in joy2key does not start in RetroPie dialog menus:

              Any reason why you're not using a 32bit official image or even a RetroPie image ?

              I need a 64bit system because I want Minecraft Java Edition and i think that runs only on 64bit systems.

              I think that the installation doesn't succeed since on a Pi4 with Buster we always assume a 32 bit system and there's no 'binary' package for 64bit system. Could be something else, but I can't see the actuall error in the log.

              I had an installation with the same image before but I messed it up so I started over. It was working there after I did what the guy did in the last post here.

              I advise you to either use the 32bit Pi4 image from the RetroPie site or a 64bit current RaspiOS.

              I got some errors when building retropie in the newest RaspiOS Bookworm but I can (and will) try again . With this Buster version I found out that when running sudo apt upgrade retropie will fail to install some packages. Maybe it will be the same on the newest.

              Thanks!

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @anton2026
                last edited by

                @anton2026 said in joy2key does not start in RetroPie dialog menus:

                I need a 64bit system because I want Minecraft Java Edition and i think that runs only on 64bit systems.

                Isn't Java supposed to run on any system with a JVM available ? Which is the source of the package ?

                A 1 Reply Last reply Reply Quote 0
                • A
                  anton2026 @mitu
                  last edited by anton2026

                  @mitu said in joy2key does not start in RetroPie dialog menus:

                  Isn't Java supposed to run on any system with a JVM available ? Which is the source of the package ?

                  Yes, but I tested it and it was not working. And I read it too, for example here.

                  I am going to test it on the newest Bookworm version tomorrow.

                  Thanks!

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

                  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.