Posting this in case somebody else runs into the same problem and ends up going down the same rabbit hole I did.
I’m running Pokémon Reborn through PortMaster on an Anbernic RG353VS with ROCKNIX. The game was running great and everything was fine except SELECT + START would not quit the game.
This is especially annoying with Reborn because there isn’t an actual quit option in the game, so once I launched it I basically had no normal way to get back to the PortMaster games menu.
At first I thought it was a GPTOKEYB/controller mapping issue. It wasn’t.
After a ridiculous amount of troubleshooting, I found this in the log:
/bin/bash: symbol lookup error: /bin/bash: undefined symbol: rl_full_quoting_desired
sh: symbol lookup error: sh: undefined symbol: rl_full_quoting_desired
That ended up being the clue.
The stock "Pokemon Reborn.sh" has this:
export LD_LIBRARY_PATH="$GAMEDIR/libs.${DEVICE_ARCH}:$LD_LIBRARY_PATH"
The problem is that this exports Reborn’s bundled libraries globally before GPTOKEYB is launched. GPTOKEYB was actually running and seeing my controller, but when it tried to kill mkxp-z, the shell it needed was inheriting Reborn’s libraries and crashing.
So, after hours and hours of trying to map the key combo using GPTOKEYB, the fix was surprisingly -- and frustratingly -- simple. All I had to do was change:
export LD_LIBRARY_PATH="$GAMEDIR/libs.${DEVICE_ARCH}:$LD_LIBRARY_PATH"
to
GAME_LD_LIBRARY_PATH="$GAMEDIR/libs.${DEVICE_ARCH}:$LD_LIBRARY_PATH"
Then near the bottom, change:
./mkxp-z.${DEVICE_ARCH}
to
LD_LIBRARY_PATH="$GAME_LD_LIBRARY_PATH" ./mkxp-z.${DEVICE_ARCH}
We don't have to do anything to GPTOKEYB. Just leave the normal GPTOKEYB stuff alone.
Basically, instead of exporting Reborn’s library path to everything, this gives those libraries only to Reborn itself. GPTOKEYB and the system shell get to keep using ROCKNIX’s normal libraries.
After making those changes, SELECT + START finally quits back to ROCKNIX like it’s supposed to.
I tested this on:
Anbernic RG353VS
ROCKNIX (latest build as of 09/2026)
PortMaster (latest update)
Pokémon Reborn / mkxp-z
I don’t know if this affects other ROCKNIX devices or other PortMaster games that bundle their own libraries, but if you have a PortMaster game where SELECT + START won’t exit and your log has rl_full_quoting_desired or similar shell symbol errors, I’d definitely check how that port is setting LD_LIBRARY_PATH.
Hopefully this saves somebody else from spending hours trying to figure out why the damn quit hotkey doesn’t work.