wtnh wrote: > Well, this may be a big "nevermind" on my part. I am using a GPIO pin to > toggle a relay which switches out a battery for my DAC when piCorePlayer > is quiescent or shut off by LMS using the PowerSave plugin. > > When the player is active, the battery is switched in and powers the DAC > (via an Allo isolator). When it is switched out, the battery gets > connected to a charging circuit. > > In my initial testing, I could swear there were a couple of times when > LMS did not shutdown piCorePlayer. When the player was paused, either > through Jivelite or a remote app, it always worked. But there were a > couple of times when I think it did not (like after a reboot). I am > trying to reproduce, but so far it is working so this may be a big > no-op. > > However, I still think it would be better to take LMS (and the PowerSave > plugin) out of the loop, and use the Jivelite screensaver as the trigger > for the relay circuit. As far as a script goes, I am thinking it could > query Jivelite to sense the state of the screen saver - or ping the pi > touchscreen controller to see if the screen is lit up. Not being > familiar with the Jivelite code or a way to access the dislplay > controller via software, I thought I would ask here. > > Thanks > > Whit
I have used "PowerSave" and the GPIO to control my poweramp(s) since before it was an integral part of pCP (a good few years). This would be thousands of on/offs (at least 3 per day) and not once have I had the GPIO not turn of the amps. Jeff *Players:* SliMP3,Squeezebox3 x3,Receiver,SqueezeLite-X,PiCorePlayer x3 *Server:* LMS Version: Latest Nightly on Centos 7.5 VM on ESXi 6.5.0U2 on Dell T320 *Plugins:* AutoRescan/BBCiPlayer/PowerSave/PowerSwitchIII/Squeezecloud/Spotty/Player Groups *Remotes:* iPeng9/Orangesqueeze/PC/Jivelite/SqueezeLite-X *Music:* 522GB,1660 albums with 23087 songs by 5204 artists mostly FLACs *Want a webapp ?* See http://forums.slimdevices.com/showthread.php?104305-Webapp-for-LMS ------------------------------------------------------------------------ Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290 View this thread: http://forums.slimdevices.com/showthread.php?t=103330 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix