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

    OpenPHT (Optional x86/x64) Package Issues (and possible fix)

    Scheduled Pinned Locked Moved Help and Support
    pulseaudioopenpht plexportsoundaudio
    3 Posts 2 Posters 1.7k 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.
    • johnodonJ
      johnodon
      last edited by johnodon

      Pi Model: N/A...Lenovo Thinkpad T420
      RetroPie Version Used: 4.1
      Built From: Source
      USB Devices connected: None ATM
      Controller used: Keyboard
      Error messages received: None (see below)
      Log found in /dev/shm/runcommand.log (if relevant):
      Guide used: https://github.com/RetroPie/RetroPie-Setup/wiki/RetroPie-Ubuntu-16.04-LTS-x86-Flavor
      File:
      Emulator: OpenPHT
      Attachment of config files:
      How to replicate the problem: Perform basic install of Ubuntu 16.04.1 x64. apt-get upgrade. git clone retropie_setup script. Perform basic Retropie install via retopie_setup script. Install optional OpenPHT package via setup script. Launch OpenPHT from Ports menu in RP.

      Preface...

      I LOVE OpenPHT and am very glad to see a package available in RP! Even though it is only available for x86/x64, this suits my needs as I run my HTPC in an unRAID VM with GPU passthrough.

      Issues...

      1. OpenPHT hangs when trying to exit back to RP. I have added my user to the suoers list but that has not helped. If I launch OPHT manually (not via RP), I am able to quit back to desktop without issue.
      2. No audio when trying to play a movie in OpenPHT. I am able to get navigation sounds but nothing during playback. If I launch OPHT manually (not via RP), sound works fine.

      Troubleshooting...

      I decided to install the Kodi port to see if that behaved as expected and it did. I then noticed that OPHT has several audio devices listed when launched via RP whereas it has only 2 when launched directly. After a bit of digging, I found that OPHT is being called differently from RP than Kodi is (emulators.cfg).

      Contents of /opt/retropie/configs/ports/kodi/emulators.cfg

      kodi = "kodi"
      default = "kodi"

      Contents of /opt/retropie/configs/ports/openpht/emulators.cfg

      openpht = "pasuspender -- env AE_SINK=ALSA openpht"
      default = "openpht"

      I suspect that this entry is made by design due to some issues with PulseAudio. However, I made a backup of the existing file and created a new one that looked more like the Kodi one...

      openpht = "openpht"
      default = "openpht"

      Using this cfg file, I am able to exit OPHT withhout issue and also have audio during playback when launched via RP. So, where do we go from here?

      I have yet to test connecting to my TV via HDMI. I plan on doing this later and report back.

      John

      1 Reply Last reply Reply Quote 0
      • johnodonJ
        johnodon
        last edited by

        UPDATE...

        I connected my laptop via HDMI to my TV. All I had to do was change the default audio device in Ubuntu sound settings (from builtin speaker to HDMI/Displayport) and I have perfect sound output in OPHT when launched from RP.

        AWESOMENESS!!! :)

        John

        1 Reply Last reply Reply Quote 1
        • G
          gmoney2123
          last edited by

          Has this still worked overtime? Or have you run into issues with updating?

          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.