joy2key not working - Orange Pi 5 (Ubuntu Jammy 22.04)
-
Hi there,
joy2key currently is not working with my 8BitDo Pro 2 controller. It works well on RetroPie however I am not having any luck running Ubuntu Jammy (manual install).
I am running kernel version 5.1.110. Here is the installation log (dont see any errors):
Log started at: Wed Sep 13 01:21:02 PM CST 2023 RetroPie-Setup version: 4.8.5 (292c09d) System: rk3588 (aarch64) - Ubuntu 22.04.3 LTS - Linux orangepi5 5.10.110cm5-rockchip-rk3588 #1.1.8 SMP Tue Sep 12 21:01:40 IST 2023 aarch64 aarch64 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'... Log ended at: Wed Sep 13 01:21:03 PM CST 2023 Total running time: 0 hours, 0 mins, 1 secs
Is there anything I am doing wrong here or is there any way I can test if my controller DPAD/axis are being mapped to up/down keys?
Cheers,
StonedEdge -
@StonedEdge said in joy2key not working - Orange Pi 5 (Ubuntu Jammy 22.04):
joy2key currently is not working with my 8BitDo Pro 2 controller.
So it's not working in RetroPie-Setup's dialog menus ?
Run
joy2key_sdl.py
with debugging info from a terminal and post the output:/opt/retropie/admin/joy2key/joy2key_sdl.py -d kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 0x1b 0x00 kpp knp
It works well on RetroPie however I am not having any luck running Ubuntu Jammy (manual install).
Which image did you use for the installation ? Are you running in a desktop environment or from the console ?
-
@mitu said in joy2key not working - Orange Pi 5 (Ubuntu Jammy 22.04):
/opt/retropie/admin/joy2key/joy2key_sdl.py -d kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 0x1b 0x00 kpp knp
Hmm, this might be why. I am having trouble installing RetroArch at the moment (didnt realise that was a dependency of joy2key).
orangepi@orangepi5:~$ Traceback (most recent call last): File "/opt/retropie/admin/joy2key/joy2key_sdl.py", line 557, in <module> sys.exit(main()) File "/opt/retropie/admin/joy2key/joy2key_sdl.py", line 515, in main menu_swap = ra_btn_swap_config() File "/opt/retropie/admin/joy2key/joy2key_sdl.py", line 437, in ra_btn_swap_config with open(CONFIG_DIR + '/all/retroarch.cfg', 'r') as cfg_file: FileNotFoundError: [Errno 2] No such file or directory: '/opt/retropie/configs/all/retroarch.cfg' Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook with os.fdopen(os.open(pr_filename, FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_opt_retropie_admin_joy2key_joy2key_sdl.py.1000.crash' Original exception was: Traceback (most recent call last): File "/opt/retropie/admin/joy2key/joy2key_sdl.py", line 557, in <module> sys.exit(main()) File "/opt/retropie/admin/joy2key/joy2key_sdl.py", line 515, in main menu_swap = ra_btn_swap_config() File "/opt/retropie/admin/joy2key/joy2key_sdl.py", line 437, in ra_btn_swap_config with open(CONFIG_DIR + '/all/retroarch.cfg', 'r') as cfg_file: FileNotFoundError: [Errno 2] No such file or directory: '/opt/retropie/configs/all/retroarch.cfg'
At the moment when I try to install Retroarch from the setup script, I am encountering this log:
Checking function cgCreateContext in -lCg -lCgGL ... no Error: EGL is disabled and forced to build with OpenGLES support. rm -rf obj-unix rm -f retroarch rm -f *.d config.mk is outdated or non-existing. Run ./configure again. make: *** [Makefile:196: config.mk] Error 1 Could not successfully build retroarch - RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators (/home/orangepi/RetroPie-Setup/tmp/build/retroarch/retroarch not found). /home/orangepi/RetroPie-Setup
At the moment since I am running Wayland on Gnome for testing purpose (I probably will end up running Gnome on Xorg) for the final handheld build as Wayland is driving me mad already with the lack of compatibility (and the fact I also need to use separate GPU driver blobs for it, bouncing between the X11 and Wayland drivers seems a hassle).
In order to execute EmulationStation from terminal I need to use malirun which is basically X11 packaged blob drivers. Using Wayland drivers results in a crash:
libGL error: MESA-LOADER: failed to open rknpu: /usr/lib/dri/rknpu_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: rknpu libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: swrast X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 149 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 105 Current serial number in output stream: 106
-
@StonedEdge said in joy2key not working - Orange Pi 5 (Ubuntu Jammy 22.04):
Hmm, this might be why. I am having trouble installing RetroArch at the moment (didnt realise that was a dependency of joy2key).
It's not a direct dependency, but
joy2key
reads the RetroArch's configuration profile for the gamepad and the default configuration - if you have neither it will not work anyway.At the moment when I try to install Retroarch from the setup script, I am encountering this log:
Can you post the complete log ?
In order to execute EmulationStation from terminal I need to use malirun which is basically X11 packaged blob drivers. Using Wayland drivers results in a crash: [...]
I have briefly tested Wayland on the OrangePi5 since my installation was nuked by an Armbian update. You should try to get a working system, which doesn't require this sort of fiddling with the drivers - have you tried https://github.com/Joshua-Riek/ubuntu-rockchip ?
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.