dosbox resolution detection
andreas99 last edited by
I put some effort to get my old DOS games running with RetroPie. I tried the libretro variant, but wasn't satisfied with the speed and went on with dosbox binary.
But I've some problems with correct resolution detection. The speed was very slow and I found some hints to work around this here:
if I call 'tvservice -e "CEA 1" in the runcommand-onstart.sh script it works. But several games have slightly different resolutions.
So I tried to debug why runcommand.sh doesn't set the correct video mode that I select for this rom. This is the point where I run today:
line ~113 ff:
if [[ -n "$DISPLAY" ]] && $XRANDR &>/dev/null; then HAS_MODESET="x11" # copy kms tool output to global variable to avoid multiple invocations elif KMS_BUFFER="$($KMSTOOL -r 2>/dev/null)"; then HAS_MODESET="kms" elif [[ -f "$TVSERVICE" ]]; then HAS_MODESET="tvs" fi
First here the script detects "kms" and not "tvs". This is the reasons later in function mode_switch() it runs into the "kms" elif.
If I add a hard tvservice call short before it works as it should in my hard coded resolution. But if I just change the detection to "tvs" and let the script call it I get an error as tvstation doesn't understand the parameter -e "49 0" or something.
So is here anyone known of the runcommand.sh script and might help me to fix the dosbox use case?