[Approved] Fix for disabling the screen saver. (1 Viewer)

Lehmden

Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,534
    3,927
    Lehmden
    Home Country
    Germany Germany
    Hi
    ATM I don't have Internet at home. DSL should be connected here September 26th but is delayed until October 7th so I can't download much. And I don't have recent source at home. A small binary I could download but not if I need to compile whole MP2....
    BTW this did not made it into a3
     

    mrj

    Portal Pro
    January 27, 2012
    252
    100
    Should work on alpha 3.
    I added one line
    settings.ScreenSaverEnabled = screenSaverEnabled;

    after the change
    function looks like this

    public void ConfigureScreenSaver(bool screenSaverEnabled, double screenSaverTimeoutMin)
    {
    AppSettings settings = ServiceRegistration.Get<ISettingsManager>().Load<AppSettings>();
    settings.ScreenSaverTimeoutMin = screenSaverTimeoutMin;
    settings.ScreenSaverEnabled = screenSaverEnabled;
    ServiceRegistration.Get<ISettingsManager>().Save(settings);
    _screenSaverTimeOut = TimeSpan.FromMinutes(screenSaverTimeoutMin);
    _isScreenSaverEnabled = screenSaverEnabled;
    }
    /mrj
     

    mrj

    Portal Pro
    January 27, 2012
    252
    100
    Hi
    To make everybody happy I have compiled the fix for alpha 3.
    Still works.
    Added the dll
    /mrj
     

    Attachments

    • SkinEngine.zip
      301.8 KB

    Users who are viewing this thread

    Similar threads

    I tried setting the windows screensaver to power off the display on my MP1 HTPC but in fact it only blanks the screen ("no video signal") on the TV I suspect the AVR has something to do with that. If I manually put the TV only into standby when TV is playing but paused then on wakeup I could not immediately take it out of pause and...
    I tried setting the windows screensaver to power off the display on my MP1 HTPC but in fact it only blanks the screen ("no video...
    Hi all, I´m using MP 1.30 at the moment and have a problem which also exists on my system on previous versions. So I don´t think...
    Replies
    3
    Views
    606
    :rolleyes:
    :rolleyes:
    Curious ... Is there a reason "GUI - Screen" is accessed by "Settings/Screen set-up", and also "Settings/GUI/Screen"?
    Replies
    2
    Views
    1K
    I reinstalled 1.24 to get it back, however it was not included in that distro. I have no idea how I got that application in the first place. Anyway I got it back as described here above. I can send you the executables if you like. Let me know.
    I reinstalled 1.24 to get it back, however it was not included in that distro. I have no idea how I got that application in the...
    Hi all, Not a rant, more a sharing of experience (maybe hoping to get some clarification on which wrong turn I took) It has been...
    Replies
    8
    Views
    585
    MP1 MP2 [solved] "Keyboard Help" Screen? DE
    @2BitSculptor @TLD Made small changes to the order of the shortcut items: This will definitely be the official screen in DWHD for the next release ;) XML attacherd ;) Thread marked as solved :D
    @2BitSculptor @TLD Made small changes to the order of the shortcut items: This will definitely be the official screen in DWHD...
    Is there a "Keyboard Help" screen in DefaultWideHD? to list keyboard controls? ... would be useful as a "Settings/General" sub menu.
    Replies
    24
    Views
    2K
    Yes. I've just this minute found the cause of the problem; though I haven't found the exact line of configuration that caused it. I am using a centrally configured system, meaning that some configuration files are stored centrally and are not overridden when installing new versions. It would seem that 1.31 had a change in...
    Yes. I've just this minute found the cause of the problem; though I haven't found the exact line of configuration that caused it...
    Since I installed 1.31 .wtv files display in the top left-hand quadrant of the screen instead of the whole screen. Is this a known...
    Replies
    2
    Views
    662
    Top Bottom