RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    runcommand-onstart.sh not working on Rpi4b and Pi2Jamma for super res

    Scheduled Pinned Locked Moved Help and Support
    pi2jammajammasuper reshdmitimingsruncommand
    2 Posts 2 Posters 338 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.
    • M
      my3awds
      last edited by my3awds

      Hi. The setup is a Pi2Jamma adapter connected to a Rpi4b and CGA arcade monitor.

      I'm having issues trying to get Retropie on a RPi4b to switch to a custom super res before loading any game. It worked before on a Retropie RPi3b+ on the same jamma adapter. But on a fresh Retropie 4.8 install on this Rpi4b, it doesn't seem to want to load my onstart or onend settings placed in /opt/retropie/configs/all/. Has anything changed recently that I need to do to enable Retropie to read from /opt/retropie/configs/all/runcommand-onstart.sh before any game is loaded?

      1. Fresh install of Retropie 4.8 from Raspberry PI Imager
      2. Change config.txt to include:
        disable_audio_dither=1
        dtparam=audio=on
        dtoverlay=vga666
        enable_dpi_lcd=1
        display_default_lcd=1
        dpi_group=2
        dpi_mode=87
        hdmi_timings=320 1 16 30 34 240 1 2 3 22 0 0 0 60 0 6400000 1 #240p
      3. Connect RPi4b to Pi2Jamma adapter in Arcade machine and setup WIFI and SSH
      4. SSH into Pi with default Pi user/pass and create /opt/retropie/configs/all/runcommand-onstart.sh with the following line:
        vcgencmd hdmi_timings 1600 1 70 150 215 240 1 4 3 15 0 0 0 60 0 32000000 1
        tvservice -e "DMT 87"
        fbset -depth 8 && fbset -depth 16 -xres 1600 -yres 240

      Result: Emulationstation loads correctly in the Arcade machine at 320x240, but when loading a game, it stays at 320x240 instead of the desired 1600x240.

      Any help is appreciated.

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by mitu

        tvservice doesn't work correctly with the KMS/DRM drivers, which the Pi4 is using since it was released. Your Pi3 setup and script(s) are not going to work on a Pi4.

        Furthermore, the entire legacy GPU stack has been discontinued in recent RaspiOS version, starting with Bullseye (Debian 11) and continuing with Bookworm (Debian 12). tvservice is not even available anymore on the latest RaspiOS (Bookworm).

        EDIT: if you're trying to use a 'super resolution', look up the 'SwitchRes' support in RetroArch, which understands KMS/DRM.

        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.