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

Lehmden

Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,559
    3,943
    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 was not previously aware of the "Drive Free Space" plugin, and it is not easy to find. (There really ought to be an easier way of finding plugins.) There is this thread that introduces the plugin, and this thread that details some changes to the Titan skin made by Gary Martyn (from 2013 :eek: ). I installed the plugin on my Aorus...
    I was not previously aware of the "Drive Free Space" plugin, and it is not easy to find. (There really ought to be an easier way of...
    I have a multiseat MP setup running version 1.33. I use the Titan skin and yesterday I decided I would update all my plugins on my...
    Replies
    20
    Views
    3K
    Just those I attached. I messed about with task priorities MP/TV-Server/SQL-Server and the issue changed to the skin.. I would do something, but it would be 10's of seconds before the action happened. Doing an Alt-Tab would flush the actions. Too weird lol!! So, with some flak from the family, I had to give in. I just did a...
    Just those I attached. I messed about with task priorities MP/TV-Server/SQL-Server and the issue changed to the skin.. I would do...
    So, this one has me quite stumped. Have tried ) and a few things - driver updates, kicking the box, threatening it with a static...
    Replies
    8
    Views
    595
    When my AVR bit the dust recently I took the opportunity to upgrade my projector to an LS11000 to gain 4K. Install went fine until I switched to my HTPC which is my primary source. When I switch to the HTPC the screen goes blank for a long time and then I have sound, no picture, and in the lower left hand corner: "Source: HDMI 1 Not...
    When my AVR bit the dust recently I took the opportunity to upgrade my projector to an LS11000 to gain 4K. Install went fine until...
    When my AVR bit the dust recently I took the opportunity to upgrade my projector to an LS11000 to gain 4K. Install went fine until...
    Replies
    0
    Views
    277
    Solved with 1.34. Somehow I managed to install part 32 bit and part 64 bit. Completely uninstalled and reinstalled and now DVDs play faultlessly.
    Solved with 1.34. Somehow I managed to install part 32 bit and part 64 bit. Completely uninstalled and reinstalled and now DVDs...
    I'm running Mediaportal 1.33 on Windows 11 Home 23H2. If I try to play a DVD after watching TV or movies, all I get is a grey...
    Replies
    3
    Views
    1K
    Thanks for your reply. In my configuration this setting is set to "no". To avoid misunderstandings, the MP window size changes on screen resolution changes, MP always fulfills the whole screen. Also, the home screen buttons size is adjusted. Only the font size is not adjusted to the new screen resolution.
    Thanks for your reply. In my configuration this setting is set to "no". To avoid misunderstandings, the MP window size changes on...
    I use two monitors - a large display for TV and video watching and a small display for music playback, to get the current track...
    Replies
    2
    Views
    889
    Top Bottom