OpenPHT (Optional x86/x64) Package Issues (and possible fix)
-
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...
- 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.
- 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
-
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
-
Has this still worked overtime? Or have you run into issues with updating?
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.