RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    dosbox resolution detection

    Scheduled Pinned Locked Moved Ideas and Development
    dosboxtvservice
    1 Posts 1 Posters 463 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • andreas99A
      andreas99
      last edited by

      Hello,

      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:
      https://retropie.org.uk/forum/topic/25178/dosbox-on-pi-4-game-window-is-fullscreen-but-not-centered-on-screen/67

      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?

      regards
      Andreas

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.