I’m running an Rpi3 at home with RetroPie, which plays a ton of emulated classic games. I’d like to be able to read the system process, and tell either what system is being emulated, or what specific game is being played.
For example, when playing a PS1 game, I get this output from ps aux
on the Rpi:
[truncated]
root 9461 0.0 0.0 0 0 ? I 01:19 0:00 [kworker/3:2]
pi 9776 0.0 0.0 1888 384 tty1 S+ 01:20 0:00 sh -c /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ psx /home/pi/RetroPie/roms/psx/Street\ Fighter\ Alpha\ 3/Street\ Fighter\ Alpha
pi 9777 0.0 0.4 5528 3456 tty1 S+ 01:20 0:00 bash /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ psx /home/pi/RetroPie/roms/psx/Street Fighter Alpha 3/Street Fighter Alpha 3 (US
pi 10069 50.4 7.6 244152 58336 tty1 Rl+ 01:20 11:52 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-pcsx-rearmed/pcsx_rearmed_libretro.so --config /opt/retropie/con
root 10268 0.0 0.0 0 0 ? I 01:27 0:00 [kworker/1:2]
[truncated]
My original thought was to check for the emulated system with something like ps aux | grep roms/psx
, which will return any lines containing roms/psx
, which is the folder where the game file resides.
I also have Glances already setup on the Rpi for system info. Would there be a way to use this instead?