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

    A scriptmodule check for Bookworm and Pi5 install

    Scheduled Pinned Locked Moved Help and Support
    bookwormpi5script module
    8 Posts 4 Posters 877 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.
    • DirtBagXonD
      DirtBagXon
      last edited by

      Apologies guys, I haven't been around here for a while.

      I know there are functions in the scriptmodules for isPlatform() etc.

      But is there one that I could use to check if I'm on a Pi5 and Bookworm is installed to make a decision on whether to install an extra package ?

      Or point me to a post.

      Wayland related stuff.

      Thx
      DBX

      Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
      Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
      Hypseus Discord: https://discord.gg/dgCsCfmRfJ

      mituM 1 Reply Last reply Reply Quote 0
      • DirtBagXonD
        DirtBagXon
        last edited by DirtBagXon

        Ok, think I have found what I was looking for:

        if (isPlatform "rpi5")  && [[ "$__os_debian_ver" -ge 12 ]]; then
        

        Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
        Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
        Hypseus Discord: https://discord.gg/dgCsCfmRfJ

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

          @DirtBagXon said in A scriptmodule check for Bookworm and Pi5 install:

          Wayland related stuff.

          You already found the answer (isPlatform "rpi5"), but why would you need wayland related libraries ? RetroPie doesn't use a desktop/compositor to run emulators on a Pi.

          WidgeW 1 Reply Last reply Reply Quote 0
          • WidgeW
            Widge @mitu
            last edited by

            We discovered that Supermodel wouldn't work on a Pi5 running Bookworm Lite unless a certain package was installed.

            retropieuser555R 1 Reply Last reply Reply Quote 1
            • DirtBagXonD
              DirtBagXon
              last edited by DirtBagXon

              It turns out it is more a VC4/V3D change for X11 config.

              But the check is still relevant for our requirements and (hopefully) fixes the SuperModel3 port when we are in that hardware/OS environment. There is a Pi Bookworm repo packages that seems to do exactly what is required, so was foreseen.

              Edit: In reality this should be a Bookworm addition across all the Pi range for that emulator, but early days + only Pi4 and above will run it.....

              Thanks for the reply @mitu and @Widge

              Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
              Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
              Hypseus Discord: https://discord.gg/dgCsCfmRfJ

              1 Reply Last reply Reply Quote 1
              • retropieuser555R
                retropieuser555 @Widge
                last edited by

                @Widge what was the dependant/package that's needed? Not sure if it's the same but I found supermodel 3 would compile and build but not load

                Pi 5 4GB

                Retroflag GPI with raspberry pi zero 2 w/ wifi

                Retroachievements:- lovelessrapture

                WidgeW 1 Reply Last reply Reply Quote 0
                • WidgeW
                  Widge @retropieuser555
                  last edited by

                  @retropieuser555 that's exactly the problem. Try sudo apt install gldriver-test then try launching Supermodel again.
                  That package can then be removed afterwards if you want, it seems to make a permanent change somewhere that allows supermodel to run.
                  This problem didn't occur in the full desktop version of bookworm where that package is already included. Only in Lite where the package is absent.

                  1 Reply Last reply Reply Quote 1
                  • DirtBagXonD
                    DirtBagXon
                    last edited by

                    For those interested:

                    https://github.com/DirtBagXon/model3emu-code-sinden/commit/168606b2c0d8139be84ab6efc1f2d2d2b0b2b198

                    Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
                    Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
                    Hypseus Discord: https://discord.gg/dgCsCfmRfJ

                    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.