[WiP] - PowerScheduler: Prevent standby when an RDP or VNC client is connected

Discussion in 'Area 51 - Testing Area' started by regeszter, December 9, 2014.

  1. regeszter
    • Premium Supporter

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,152 / 18
    Home Country:
    Hungary Hungary
    Hi all,



    It is created for own usage but I share it.

    How it works? The PS is checking the default RDP (3389) or VNC (5900) ports and prevent to standby if it is active. There is no any configurable option. It works by default.

    JIRA

    bye,
    regeszter
     

    Attached Files:

    Last edited: August 29, 2015
    • Thank You! Thank You! x 3
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,422
    Likes Received:
    2,503
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,166 / 13
    Home Country:
    France France
    Show System Specs
  4. regeszter
    • Premium Supporter

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,152 / 18
    Home Country:
    Hungary Hungary
    I do not think if the teamviewer uses 3389 or 5900 port. I can hardcode any port to check but you need to check it with netstat -a if it works.

    It is an example to RDP

    TCP [::]:3389 LISTENING
     
  5. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,422
    Likes Received:
    2,503
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,166 / 13
    Home Country:
    France France
    Show System Specs
  6. regeszter
    • Premium Supporter

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,152 / 18
    Home Country:
    Hungary Hungary
    Please test it with netstat -a before and after you connected with teamviewer and send me the result.
     
  7. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,422
    Likes Received:
    2,503
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,166 / 13
    Home Country:
    France France
    Show System Specs
  8. regeszter
    • Premium Supporter

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,152 / 18
    Home Country:
    Hungary Hungary
    Is it interesting to include to the next build?
     
    • Like Like x 3
  9. The_Stig
    • Premium Supporter

    The_Stig Retired Team Member

    Joined:
    April 5, 2005
    Messages:
    2,176
    Likes Received:
    288
    Ratings:
    +426 / 5
    Great idea! And now the unavoidable but: but what if someome configures his ports weirdly and uses these for other purposes...will we ever find out in the logs why PS isn't suspending the system?
     
  10. regeszter
    • Premium Supporter

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,152 / 18
    Home Country:
    Hungary Hungary
    There is log regards Standby Prevented by this handler.
     
  11. Lightning303
    • Premium Supporter

    Lightning303 MP Donator

    Joined:
    September 12, 2009
    Messages:
    798
    Likes Received:
    384
    Gender:
    Male
    Ratings:
    +578 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Yes please.
     
    • Thank You! Thank You! x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!