This setup was working well in the 2.1 images and below. However, I recently installed the 2.5 image and found that it no longer worked. The same issue is occurring with the 2.6 (I performed a clean install from scratch to rule out any setup mistakes on my part).
I’ve also run some tests to make sure that this isn’t being caused by a hardware issue. I took a clean (non-RetroPie) card image I have and installed the switch daemon there. It worked fine.
I’m not really sure how to go about trouble shooting this on the software side. Does anyone have any ideas?
I decided to go on and close this one out because it doesn’t seem to be unique to the RetroPie Project’s images. I downloaded the latest Raspbian image and installed the Python program there. I got the same results. I can only assume that a recent Raspbian update broke the program.
I ended up falling back to the shell script provided by Mausberry. I had to bump up my overclock settings to compensate for the script’s CPU drain but things seem to be working now.
Really I guess I should try writing my own shutdown script. Maybe this will serve as a motivator to finally learn Python…