Retropie setup menu/Runcommand crashing in ES on Ubuntu
-
I've updated by 22.04 install to 24.04, but I can't reproduce this issue. I'm using the default (Wayland session) Gnome session and EmulationStation is started from the RetroPie shortcut (
rpie.desktop
), so running undergnome-terminal
, and there's no issue with runcommand or RetroPie-Setup being started/working.Is
sudo
set-up for your user so as to not require a password ? That could explain why RetroPie-Setup doesn't work from EmulationStation. -
@mitu I believe so. That's where you change the ALL:ALL ALL NOPASSWD or something like that in terminal, correct?
-
@rom11617 said in Retropie setup menu/Runcommand crashing in ES on Ubuntu:
. That's where you change the ALL:ALL ALL NOPASSWD
Yes, that would be it.
-
@mitu yeah, I've done that. Out of the gate. So weird.
-
@rom11617 Hi, I had the same issue and this fixed it for me. In the file scriptmodules/supplementary/retropiemenu.sh try changing the line:
From:
setESSystem "RetroPie" "retropie" "$rpdir" ".rp .sh" "sudo $scriptdir/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty" "" "retropie"
To:
setESSystem "RetroPie" "retropie" "$rpdir" ".rp .sh" "sudo $scriptdir/retropie_packages.sh retropiemenu launch %ROM%" "" "retropie"
Then install the retropiemenu from the setup script.
-
@V0rt3x667 Dude this worked! However, I still cannot get runcommand to function. I press the button 0 on the controller after the game launches but the game just loads.
I have joysticks enabled, menu art disabled, runcommand menu enabled. Any ideas?
-
@rom11617 I think it is an issue with pysdl2. Prior to Retropie switching over to it I never experienced the controller not working on the runcommand launch screen. It also seems to be an issue that only effects x11 or Wayland users. If you run in KMS (no display manager or compositor running) there is no issue. I will see what else I can find out to help.
-
@V0rt3x667 said in Retropie setup menu/Runcommand crashing in ES on Ubuntu:
I think it is an issue with pysdl2.
Sure, it migh be, but that doesn't explain why the setup script works fine outside of EmulationStation -
pysdl2
is used in that case also forjoy2key
. -
-
@V0rt3x667 I installed kitty and set as the default terminal emulator. However when Emulationstation loads, I still get the purple colored terminal screen, it doesn't look like kitty. No change to being able to launch runcommand and change the emulators...
-
@rom11617 Just to clarify did you launch EmulationStation directly from kitty? If you use the RetroPie shortcut it will still launch via gnome-terminal. Thanks.
-
@V0rt3x667 I did launch through retropie shortcut. Duh...I'll try and report back.
-
@rom11617 Hi did you have any luck getting the launch menu working with a controller? Thanks
-
And i have just now found i have problably the same issue......... problably also a very similar issue explained here:
https://retropie.org.uk/forum/topic/35461/controller-not-working-in-retropie-setup-runcommand-etc/12
And here on this thread.I have updated my Mini PC Intel to UBUNTU 24.04.1 LTS..... Emulationstation working.... but if i try to open Retropie Setup or for example the Runcommands setup it's not accept anythigs command!
No moviment at all if i use my Controller....... and if i press one button on KEYBOARD all it's crash and it's bring back emulationstation.For example if i open Retropie_setup it's be launch.. but when i touch a button on keyboard all crash and emulationstation bring back on the screen.
Apparently if i open retropie_setup script from terminal joy2key works and i can move inside all menĂ¹.... retropie_setup for example crash only if i launch it from emulationstation.
EDIT
@mitu the strange things it's every it's be need to run on terminal by Emulationstation goes in crash after a lot seconds.
I have also tryed to open ESThemes.... RunCommand option... Show IP... Config Editor..Every Terminal operation it's opened apparently it's not accept any pressed button from keyboard and from Joystick (so it's joy2key not work??) and the terminal windows crash whitout any apparently error.
When you launch a game if you use a keyboard you can change options from runcommand but runcommand not show if i press one button on joystick....
-
hi @mitu about 1 minutes ago i have obtain this errors on my PC... look:
When i try to open a games i have tryed to open the runcommand menĂ¹.... and this errors it's appears.
Open the details apparently i can't use copy/paste... need other screenshot:
Or full image:
Scroll down:
Also here can provide full screen image:
among the many lines one says:
This package does not appear to be installed correctlyBut it's related to phyton... joy2key himself or again the current kernel ?
Onestly i don't have the necessary knowledge to understand that.The strange issue you can't reproduce the issue.. really ?
-
it's some news as been explored about this issue ?
-
-
@mitu
For a purpose test i have tryed this from a terminal:diabolik@NUC-Ubuntu:~$ /opt/retropie/admin/joy2key/joy2key_sdl.py kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 0x1b 0x00 kpp knp -d diabolik@NUC-Ubuntu:~$ 2024-09-18 17:36:04,786 DEBUG Using SDL Version 2.30.0, PySDL2 version 0.9.16 2024-09-18 17:36:04,838 DEBUG Joystick #0 DragonRise Inc. Generic USB Joystick added 2024-09-18 17:36:04,838 DEBUG Added configuration for known device DragonRise Inc. Generic USB Joystick, hats: {}, buttons: {6: 'pagedown', 4: 'pageup', 0: 'y', 2: 'x', 1: 'b', 3: 'a'}, axis: {0: [(-1, 'left'), (1, 'right')], 1: [(1, 'down'), (-1, 'up')]} 2024-09-18 17:36:12,101 DEBUG Events emitted: ['right'] 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 549, in main event_loop(configs, joy_map, tty_fd) File "/opt/retropie/admin/joy2key/joy2key_sdl.py", line 409, in event_loop fcntl.ioctl(tty_fd, termios.TIOCSTI, c) OSError: [Errno 5] Input/output error
or also in this mode:
It's the crash appears on runcommand windows....
We can confirm it's joy2key create all issue here ?
-
@DjDiabolik said in Retropie setup menu/Runcommand crashing in ES on Ubuntu:
We can confirm it's joy2key create all issue here ?
Could be that, or the SDL2 library present on Ubuntu. Can you post the RetroArch auto-configuration profile for the Dragonrise joystick ?
EDIT: actually, this may not be related to the configuration of the joystick. Can you run, from a terminal:
sudo sysctl -w dev.tty.legacy_tiocsti=1
and - if you don't get an error - repeat the test ?
-
@mitu said in Retropie setup menu/Runcommand crashing in ES on Ubuntu:
Can you post the RetroArch auto-configuration profile for the Dragonrise joystick ?
yes it's not a problems... can you can you remind me the correct path where these files are located?
In theory I should have 2 profiles with a similar name because sometime i use two similar arcade kit on this retropie setup to play with friends on retrogaming evenings :)@mitu said in Retropie setup menu/Runcommand crashing in ES on Ubuntu:
sudo sysctl -w dev.tty.legacy_tiocsti=1
I have to do this after getting the crash above indicated or also the obtain the input/output error ?
After maded this... is this a permanent change or is it only applied temporarily? How do I get back to the default Ubuntu settings? -
Can you post the RetroArch auto-configuration profile for the Dragonrise joystick ?
yes it's not a problems... can you can you remind me the correct path where these files are located?
They're in
/opt/retropie/configs/all/retroarch-joypads
, but I think the test below should be enough.sudo sysctl -w dev.tty.legacy_tiocsti=1
I have to do this after getting the crash above indicated or also the obtain the input/output error ?
Just run it anytime, but repeat the test and see if the crash occurs again, with the new configuration.
After maded this... is this a permanent change or is it only applied temporarily? How do I get back to the default Ubuntu settings?
No, it's temporary until the next restart.
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.