batocera-linux/batocera-emulationstation

Access to the terminal through the menu

Mr-Bajs opened this issue · 7 comments

Issue description

I think it would be a QoL improvement if the terminal would be accessed through system settings or similar like that.

@nadenislamarre What's your point of view ?

if it already available via f1 => application => terminal

What would be nice is the ability to bring up the terminal and type a few quick emergency commands by using a virtual keyboard without the need of a keyboard at all.

batocera is a gaming console, not a windows system :-P
in worst case, batocera supports power off.
and if you really want, you can connect from a pc or a phone via ssh.

and if you really want, you can connect from a pc or a phone via ssh.

Agreed. However, the currently provided F1 option requires me to have a keyboard ready to plug into the console. Occasionally, I need to use the terminal to kill hung processes (e.g, using btop). Also, the application config UI stuff is helpful from time to time. Having the ability to go into desktop mode with a controller and using the analogue sticks to control the mouse paired up with a virtual keyboard would also be useful. But I understand that's lots of effort to develop - so I will keep a keyboard around in the TV room.

yes, it is not simple to add for the benefit.
but maybe the question is : why do you need to kill processes ? it should not happen.

yes, it is not simple to add for the benefit.
but maybe the question is : why do you need to kill processes ? it should not happen.

It's because, from time to time, I run wine games, and they don't get cleaned up properly by the Batocera launch processes. Also, I've noticed apps such as custom scripts don't get cleaned up properly when I exit a game. For example, I use Antimicrox for gzdoom as the built-in controller support, and Batocera virtual keyboard mapping doesn't work as expected. Sometimes antimicrox is still running when the game exits. This is the script I use:

#!/bin/bash
# script to run gzdoom with antimicrox with a PS5 controller because the 
# built in gzdoom controller and batocera pad2key support is broken
 
if [[ "$2" == "gzdoom" ]]; then
    case $1 in
        gameStart)
            echo "processing the gzdoom antimicrox gameStart event"
            profile=/userdata/system/pro/antimicrox/home/gzdoom.gamecontroller.amgp
            if [ ! -f "$profile" ]; then
                echo "gzdoom antimicrox profile does not exist: $profile"
                exit 1
            fi
            /userdata/system/pro/antimicrox/Launcher \
            --profile  $profile \
            --hidden \
            --no-tray \
            &
        ;;
        gameStop)
            echo "processing the gzdoom antimicrox gameEnd event"
            pid=$(pgrep -f 'AppRun\.wrapped.*antimicrox')
            if [ -n "$pid" ]; then
                kill "$pid"
            fi
        ;;
    esac
fi