RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    [Merged] Power Saver feature

    Scheduled Pinned Locked Moved Ideas and Development
    emulationstatiotestingpowersaver
    164 Posts 10 Posters 67.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • HexH
      Hex
      last edited by

      @Sano are you compiling the binary?

      Sent from 20,000 leagues under the sea.

      Powersaver Emulation station : https://github.com/hex007/EmulationStation
      ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

      SanoS 1 Reply Last reply Reply Quote 0
      • SanoS
        Sano @Hex
        last edited by

        @Hex compiled via @meleu script, yes !

        1 Reply Last reply Reply Quote 0
        • HexH
          Hex
          last edited by Hex

          Need testers to update and build to verify all changes. Finally please report any bugs (undocumented behaviour)

          Final changes are made:

          • PS enabled by default
          • Removed PS enable warning
          • Works nicely with all screensavers
          • Gameinfo is shown with PS enabled too
          • mVersion no longer shows PS state. Restored to default.

          Sent from 20,000 leagues under the sea.

          Powersaver Emulation station : https://github.com/hex007/EmulationStation
          ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

          1 Reply Last reply Reply Quote 2
          • cyperghostC
            cyperghost
            last edited by cyperghost

            @Hex
            I've uploaded binary to my github >> https://github.com/crcerror/emulationstation-binary-archive (only PI2/3)

            This is an merged version with your and @pjft favorite branch!

            sadly it's an older release but it works the same way as @sano got -- CPU load is only 0,3%. Thank you mate. I'm sure this will be implented it's better as my suggestion ... the Standard ES branch still got a CPU load of 3% if Screensaver is enabeld.

            1 Reply Last reply Reply Quote 0
            • HexH
              Hex
              last edited by

              Testers please check if GameInfo (XX Games bar) is properly shown when PS is enabled and all screensavers (video,dim,blank) are properly triggered. Thanks

              Sent from 20,000 leagues under the sea.

              Powersaver Emulation station : https://github.com/hex007/EmulationStation
              ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

              SanoS 1 Reply Last reply Reply Quote 1
              • SanoS
                Sano @Hex
                last edited by Sano

                @Hex Compiled, tested. GameInfo display is back to normal.
                Edit : and the screen just dimmed by itself after screensaver timeout.

                cyperghostC 1 Reply Last reply Reply Quote 1
                • cyperghostC
                  cyperghost @Sano
                  last edited by cyperghost

                  @Sano Please set screensaver to 1 min and wait if Dimming, Video and Blank are working
                  EDIT: Thanks for testing dimming - what about BLANK and Video?

                  SanoS 1 Reply Last reply Reply Quote 0
                  • SanoS
                    Sano @cyperghost
                    last edited by Sano

                    @cyperghost Black screen is ok too, but this minute is pretty long, I think the timer is buggy.
                    Currently I don't have any video to test video screensaver.

                    cyperghostC 1 Reply Last reply Reply Quote 1
                    • cyperghostC
                      cyperghost @Sano
                      last edited by

                      @Sano Thank you can you make further tests please? It's important to hunt down possible bugs before a merge to the main branch can be done.

                      1 Reply Last reply Reply Quote 0
                      • HexH
                        Hex
                        last edited by

                        @Sano The minute is correct. I have timed it. It is just counting after some delay which you dont know about. The delay is present to finish any remaining animations and delayed displays like game count extra.

                        Sent from 20,000 leagues under the sea.

                        Powersaver Emulation station : https://github.com/hex007/EmulationStation
                        ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                        1 Reply Last reply Reply Quote 0
                        • meleuM
                          meleu @felleg
                          last edited by

                          @felleg said in Testers needed :: Power Saver features :: PR #172:

                          This is a problem if you want to avoid screen burn-in. I'd much rather have the screensaver be able to start automatically, although, don't get me wrong, being able to start it manually is great in its own right.

                          I think that playing a video is not a "power saving" action. But now I think I better understood what the @Hex 's change is about.

                          It seems to be a fix in the logic, and not an addition of a new optional feature.

                          @Hex am I right saying that?

                          • Useful topics
                          • joystick-selection tool
                          • rpie-art tool
                          • achievements I made
                          1 Reply Last reply Reply Quote 0
                          • HexH
                            Hex
                            last edited by

                            @meleu said in Testers needed :: Power Saver features :: PR #172:

                            .

                            Yes, It was a logic problem but such things get overlooked quite often. As I said, Aloshi's work might not have been optimized for Pi but it can be.

                            I agree Video screensaver is not a power saving feature but it is not intended to be. It is for systems that have a constant source of power and hence not battery friendly. But that does not mean that the feature is useless. A lot of effort and time went into making it worthwhile. :)

                            The option to enable or disable is just for your satisfaction. The functionality is not compromised at all. It just got better at doing nothing :P

                            Sent from 20,000 leagues under the sea.

                            Powersaver Emulation station : https://github.com/hex007/EmulationStation
                            ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                            meleuM 1 Reply Last reply Reply Quote 0
                            • meleuM
                              meleu @Hex
                              last edited by meleu

                              Once you fixed all those "issues" related with screensaver (video/dim/blank), then will it be enabled by default and with no option to toggle it?

                              • Useful topics
                              • joystick-selection tool
                              • rpie-art tool
                              • achievements I made
                              1 Reply Last reply Reply Quote 0
                              • HexH
                                Hex
                                last edited by

                                @meleu All bugs are fixed. The option is still there. Do you think the option should not be present?

                                Sent from 20,000 leagues under the sea.

                                Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                meleuM 1 Reply Last reply Reply Quote 1
                                • meleuM
                                  meleu @Hex
                                  last edited by meleu

                                  @Hex here's my reasoning:

                                  1. your change does power saving (optimizes the logic).
                                  2. dim/blank/video screensaver works fine no matter if the PS is enabled (by the way, you should update this info on OP).
                                  3. there isn't any advantage in leaving PS disabled.

                                  Then here's the big question: Why the heck would anyone leave this option disabled?

                                  If there's no answer for that question, then the conclusion is "leave it always enabled and remove the option to disable it"

                                  • Useful topics
                                  • joystick-selection tool
                                  • rpie-art tool
                                  • achievements I made
                                  1 Reply Last reply Reply Quote 1
                                  • HexH
                                    Hex
                                    last edited by Hex

                                    @meleu Okay let me remove the option.

                                    EDIT : Why are you highlighting it?? I wrote a lengthy answer and deleted everything. In short the answer is to disable PS if it misbehaves and yet not be shackled by a broken feature. On the other hand we have lots of Options already so screw it :D

                                    Sent from 20,000 leagues under the sea.

                                    Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                    ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                    meleuM 1 Reply Last reply Reply Quote 1
                                    • meleuM
                                      meleu @Hex
                                      last edited by

                                      @Hex said in Testers needed :: Power Saver features :: PR #172:

                                      Why are you highlighting it?

                                      I don't mean to sound like screaming, sorry if I sounded like that. :-)

                                      I was just trying to emphasize the conclusion. Maybe we can continue this conversation on the PR thread to get Jools opinion. I'll paste my reasoning above there.

                                      • Useful topics
                                      • joystick-selection tool
                                      • rpie-art tool
                                      • achievements I made
                                      1 Reply Last reply Reply Quote 0
                                      • HexH
                                        Hex
                                        last edited by

                                        That would be a good idea

                                        Sent from 20,000 leagues under the sea.

                                        Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                        ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                        J 1 Reply Last reply Reply Quote 0
                                        • J
                                          jdrassa @Hex
                                          last edited by

                                          @Hex @meleu I haven't had a chance to test this yet, but based on my understanding of how it works, it seems likely that power saver will disable text scrolling for game descriptions and game names in the gamelist. If I am correct, this would be a reason to keep it as an option.

                                          Another reason to do so would be to prevent any conflicts with future development. For example, there have been requests for the ability to include animated images in themes. If power saver was not an option, implementation of this feature would be dependent on implementing a way to detect and disable PS when necessary. I would hate to see a potential contributor decide not to implement something because of the extra effort involved with making it compatible with PS.

                                          Get latest build of EmulationStation for Windows here

                                          1 Reply Last reply Reply Quote 1
                                          • HexH
                                            Hex
                                            last edited by Hex

                                            @jdrassa Firstly the text scrolling works as expected. That feature is what convoluted the entire logic from being very simple. I am glad that i got to implement this.

                                            Secondly I concur with you on this but.... Features like animated images would be useful and it woult be easy to implement PS+animations as I have already done it for videos and users can just copy how i did it for Videos. Its two lines, one to stop powersaver when images are animated/video and another to start it again when images end. I thought about it a lot. Remember we are developing for Raspberry pi primarily. Thus we should strive to save as much processing as possible. Had it been difficult to incorporate in further development I would have said that switch would be ideal.

                                            See the systemscreensaver.cpp here and tell me if i can make it easier.

                                            Sent from 20,000 leagues under the sea.

                                            Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                            ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                            J 1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post

                                            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.