-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sound issue on pi3 clone (le potato) #295
Comments
A couple chunks of the log file
Ran
And the audio error. I have tried installing pulse, but it dosen't seem to resolve the issue. |
So I'm trying to see if there are 2 sound operations happening at once when starting the program. It appears that piaudio.py
does initialize the audio settings. Changing these values changes the output to the soundcard. cat /proc/asound/card0/pcm0p/sub0/hw_params
I've experimented using different settings such as using 48000 or 44100. Both settings result in RW_INTERLEAVED being output instead of MMAP. It appears that the InitAudio is started from both update.py and piparty.py. |
Interesting work! There might be some settings that could improve performance, the period might also work, Joustmania did used to run on a pi3, but the modules have been updated since then too. One way that could also work is to have a setting in the yaml settings that disables the audio changing speeds, thus reducing the load on the cpu. |
Thanks! I've commented out all calls to update.py and all references to performing updates. It does not appear to be an issue with the update.py conflicting with piparty. But I'm still not sure I completely understand everything. I'll try messing with the audio speed change, but cpu seems to be maxed out even in the menu before those speed changes would happen. |
So I've messed with audio a bit, voices are now working while background audio is not. Still getting Also, now when starting a match and then ending it, the system drops to only 80% CPU usage in the main menu and one of the 3 heaviest python3 processes disappears. Sometimes on game exit, things hang and a python process gets left running, killing it manually throws a piaudio error. It seems to confirm that the background audio is malfunctioning and is chewing up the CPU. Maybe preprocessing of audio? |
I have tried running pulseaudio in system-wide mode and now /proc/asound/card0/pcm0p/sub0/hw_params reads
This is consistent with what I would expect from pulseaudio. However, I still see the "Device or resource busy" error. The strange thing is that if I set |
The sound effects and narrator are using pygame to play them, that's probably why you are seeing that I would think! |
I tried using system libraries instead of venv, with varying results. I tried feeding Eventually I tried just forcing dmix systemwide via /etc/asound.conf. This works!!, EDIT: I got everything working on my fork. |
Does this mean it will no longer work on the Pi 3? I've been trying to run it on one, and it reboots after install, but nothing happens. |
I'm running this on an AML-S905X-CC which is roughly equivalent to a Pi 3b+. It works but maxes out the cpu at all times. Try running the |
I don't think there is anything theoretically stopping it from running on a pi3, I have only tested on pi4s since they launched. @DrDecagon may have the closest solution. The cpu is usually maxed on a pi4 as well. Also recently the price of pi4s has started to decrease! Hopefully this is a trend |
I noticed the prices had dropped too, so I picked up a pi4 since it seemed like it would run better there anyway. I'm able to run the ./setup.sh command and it successfully reboots, however it doesn't reboot into the game, and controllers don't pair. Is there another command I should be running to get the game to run? |
You can try sudo ./joust.sh to run joust in a terminal and see if there are any issues(this also could be why it's not running on the pi3 at the moment) |
That did it thanks! Now to fix the sound issue. I've got controllers paired, but no sound yet. |
A simple solution that might work, is making sure that the audio output is through the headphone jack(usually the top right corrner of the screen there is a sound option) and that you have headphones plugged in too. |
That did the trick! Thank you so much. |
With the shortage of affordable Raspberry Pi hardware, I've decided to try Le Potato. (Libre Computers Pi 3B+ clone) This board is Raspbian compatible, has the same cores with higher clocks, and more/faster ram than the official Pi 3B+.
This game used to work on the Pi 3 but some have mentioned performance issues.
#182
#226
I have gotten the game successfully installed and the controllers paired, but sound does not work (it works fine before installing). Often I cannot connect more than 4 or 5 controllers. CPU utilisation is completely maxed out all the time.
I have tried Raspbian 10 (both ARMv6 and v8), Raspbian 11, and some straight Debian builds. I have also tried headless images to try to make things as lite as possible. I've tried altering the setup.sh in the old v2.0 release of joustmania to account for slightly different repos available on Le Potato.
Can anyone confirm this still works on the Pi 3B or has anyone gotten it to work on Le Potato?
The text was updated successfully, but these errors were encountered: