mupen64plus / mupen64plus-user-issues

Issue reports from users go here
http://www.mupen64plus.org/
17 stars 3 forks source link

raspberry GPIO pins hijacked ? #687

Open Aryetis opened 7 years ago

Aryetis commented 7 years ago

Hello,

It is gonna be a very specific issue but interesting (I hope so ...) issue.

For starters : I'm reporting problems ocuring on my Raspberry 3b using retropie V1.14.5 (latest version) and using mupen64Plus(Glice/Rice/HiRes or not, it doesn't matter). And here's the basics. I'm using a fan to cool down my pie, I regulate its spinning speed using a npn transistor wired to the pwm pin (like in this tutorial for instance : https://hackernoon.com/how-to-control-a-fan-to-cool-the-cpu-of-your-raspberrypi-3313b6e7f92c#.k6qc5ibix ), and I'm using my own little C program to control the speed ( https://github.com/Aryetis/PiPwmIncrementalFanController ). It works perfectly fine 99% of the time

Except when I run Mupen64plus .... As soon as I run Mupen64plus the fan goes fullspeed, even thought the speed is still correctly updated in the "temperature file". So there is some low level shenanigans hapenning there between Mugen64plus and wiringPI library. Also it happens only with Mupen64Plus-Glide/Rice core, it does not happen with the libretro version. And once the emulator is started there is no turning back, the fan will go fullspeed forever, killing the emulator won't resolve the bug. I have to restart the pie to get back to normal fan speed. (Obviously I checked, that the fan is not going fullspeed because of temperature)

I checked the gpio pins states using "gpio readall" but nothing came out of it (here's the logs : http://pastebin.com/cnHp95Cy )