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

Lehmden

Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,584
    3,973
    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

    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team will create a Jira ticket, and for each ticket, you’ll make the changes and submit a pull request. This will be transparent and straightforward.
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team...
    I'm very glad to see that mediaportal 1 is on github, where ordinary devs with github accounts can make contributions. Please can...
    Replies
    7
    Views
    1K
    maybe setting loglevel to debug might pinpoint the difference between normal and stuck? Preferable with as much disabled as possible also try to see if anything is happening during stuck for the mediaportal process(resource monitor, disk activity, cpu usage, anything) maybe other programs competing for resouces?
    maybe setting loglevel to debug might pinpoint the difference between normal and stuck? Preferable with as much disabled as...
    Since over a year my MP sometimes stucks while showing the welcome screen. It started once a week now it happens every second time...
    Replies
    4
    Views
    1K
    Great Work, i tried for 10h music and pictures without any problem. Thank you for your help. a Donation is on the way
    Great Work, i tried for 10h music and pictures without any problem. Thank you for your help. a Donation is on the way
    Hi, I use the slideshow when I play MP3-Playlists at partys to make the screen more interesting. Sadly after a couple-pictures I...
    Replies
    2
    Views
    2K
    OK - Will care about ;)
    OK - Will care about ;)
    In version 1.36 (I think), technical specifications were added to the center panel of the movie info screen when 'Movie Info before...
    Replies
    3
    Views
    2K
    Many thanks:).
    Many thanks:).
    I have had to reinstall windows on my development machine (sigh...). I have lost the link to the source code for MP1. Would...
    Replies
    2
    Views
    439
    Top Bottom