You can install RetroArch from the Alpine repo:
$ sudo apk add retroarch
RetroArch by default uses the desktop menu. If on mobile device you can use a mobile friendly menu driver called
glui. You can set it in retroarch.cfg (
menu_driver = "glui"
Phosh terminal keyboard seems not working properly to navigate the menu, here are some buttons correspondence:
To enable touchscreen on RetroArch menu the following settings must be set in retroarch.cfg:
menu_mouse_enable = "false" menu_pointer_enable = "true"
In case you're on a scaled display, you have to specify the scale factor in retroarch.cfg:
input_touch_scale = "2"
As of writing,
input_touch_scale is only available in postmarketOS edge.
These are the tested cores so far, if you manage to successfully test a core please add it to the list so everyone can have an idea of what can be potentially executed.
A list of installable cores can be found here: https://pkgs.alpinelinux.org/packages?name=libretro*&branch=edge
Sega Master System
|Custom overlay||ZilogZ92 custom overlays|
# ZilogZ92 Gameboy overlay input_overlay = "./overlay/gb_big.cfg" # Custom aspect ratio and game viewport size/position params aspect_ratio_index = "23" custom_viewport_width = "720" custom_viewport_height = "578" custom_viewport_x = "0" custom_viewport_y = "0"
RetroArch is highly configurable and allows some tweaks to increase performance. Please, if you find some share them here.
By default RetroArch set audio driver to ALSA. This may result in buggy audio. I had to change it to pulse to have a smooth audio:
audio_driver = "pulse"
If this doesn't solve the audio issue it may be that the device is not powerful enought to emulate the game/platform under some conditions (overlays, shaders). Enabling video threading can be a possible solution:
video_threaded = "true"