Hi there, I have a Raspberry Pi 3b+ RetroPi gaming box with a RetroFlag NESPi+ case that I use for retro gaming, and had the bright idea to set it up as a 'Now Playing' screen on my TV for a little bit of extra visual pizazz (and easy song identification from across the room) while I'm not using RetroPi (most of the time). So I've set up a fresh SD with PCP, disabled SqueezePlay, and installed Jivelite so that it just syncs with the SB3 in my loungeroom. Nice.
Now, the NESPi+ case (http://retroflag.com/nespi-case-plus.html) has on it some soft power buttons that I'd like to use to have it shutdown the RPi then cut the power. I can't find a circuit diagram anywhere, but I've been able to gather the following from the shutdown script made for RetroPi (https://github.com/retroflag/retroflag-picase): There is a latching 'power' switch and momentary 'reset' switch. The latching switch when depressed will power up the RPi inside the case. It is additionally attached to GPIO 3. The momentary reset switch is on GPIO 2. The power switch monitors GPIO 4 for a signal change to signal when to cut the power to the board + fan. Great stuff - this all sounds pretty easy. I went in to the PCP Settings > Tweaks > Poweroff/Shutdown Overlays and set the following: gpio-poweroff: 'yes' pin 4 'Active Low' gpio-shutdown: 'yes' pin 2 'Active Low' 'Pull Up' (I set the 'reset' momentary switch as the one to signal the shutdown, as I couldn't figure out how to get it to react to the latching power switch - although my failures there may actually be related to the below problems. I also had to guess if it was 'active low' or 'active high'). After setting these, I was prompted to install a shutdown-monitor script - although I can find no documentation on this script - and did so. Now, the above settings work - but only for a couple of seconds after it enters into Jivelite. If I disable Jivelite and have it go to only to the command line, I can't get them to work at all. So I have a feeling that the device tree GPIO settings above are being overridden by some other settings (which load instantly at the command line, but take a little while to load if Jivelite is also loading - thus why I can get the switches to work if pressed shortly after boot). DOES THE SHUTDOWN-MONITOR SCRIPT INTERFERE WITH GPIO ASSIGNMENTS? IF SO, WHERE IS IT LOCATED, AND HOW CAN I EDIT IT SO THAT ANY CHANGES WILL PERSIST ACROSS REBOOTS? I also have a question about using a wireless OSMC remote with Jivelite, but I need to get to the bottom of button mappings before I'll address that, so will do it in a separate post once this issue is resolved. Thanks so much for your help! 2x squeezebox classics | 2x squeezebox booms | 1x raspberry pi 2 b w/ picoreplayer, iqaudio dac+, 7\" touch screen | orangesqueeze as android controller lms v7.9.1 running as a docker in unraid on a hp microserver gen8 ------------------------------------------------------------------------ JadeMonkee's Profile: http://forums.slimdevices.com/member.php?userid=20481 View this thread: http://forums.slimdevices.com/showthread.php?t=109404 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
