Request for additional Screen Saver functionality
-
Hi,
First off thanks for all the hard work. The newest version of RetroPie is great and I spend a lot of time using the built in functionality to customize my setup - it's a lot of fun.
I have 2 suggestions for the screensaver functionality.- Add an option to run a script on screen saver start and stop. (I would like to run a script to turn a GPIO pin off and then on again when the screen saver starts and stops. I could see this being used by others for different functions.)
- Add a screen saver option to shut down the Pi after a certain amount of time idle (the screen saver is running for X amount of time, gracefully shut down the RetroPie.)
I didn't see these feature request anywhere else, hopefully I didn't miss it.
Thanks for considering, I appreciate it!
Kind regards
-
I gave you suggestion here
No comment, nuff said, downvote -
I'm seriously confused why this would be downvoted. I agree with your suggestion you made, but this was a request for a new feature so it could be part of configuration. Why the hate?
Edit: Especially since in the same message you link to I noted I was going to ask it for it from the devs if it wasn't a configuation I had missed. This seriously bums me out, cuz I thought I was going through the proper process.
-
Upvoted. This looks like it would be useful.
-
It's not difficult to add this if you're able to compile your own version of emulationstation locally. Here's how you can do that.
I just added some hooks in Window::onSleep and Window::onWake to run some scripts specified in es_settings. I use it to disconnect my dualshock4 when ES goes to sleep so it doesn't murder the batteries when I invariably forget to turn it off.
I'll make a pull request when I get around to it, it's non-invasive and can't see why it wouldn't be useful in some cases to handle events when ES goes idle or wakes up, but I have no idea how receptive the ES project is to contributions, I've only started playing around with it. :)
-
@sirsonic Could you please make a guide on how to do this? I would like to test this out before the PR
-
I'm looking to do the same thing for my retropie build. Would it be easiest to just make a service that's completely independent from emulationstation that handles it? e.g. make a python script that looks for inputs and performs the desired actions when no input is detected for X minutes. It might not be exactly synched with emulationstation but it would probably be close enough, and it sure sounds easier than messing with emulationstation's source code.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.