[WiP] PowerScheduler: Prevent standby when an RDP or VNC client is connected (1 Viewer)

regeszter

Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    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
     

    Attachments

    • PowerScheduler_for_MP1.12.zip
      50.8 KB
    Last edited:

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    it work for teamviewer too ?

    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
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    Please test it with netstat -a before and after you connected with teamviewer and send me the result.
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    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?
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    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?

    There is log regards Standby Prevented by this handler.
     

    Users who are viewing this thread

    Top Bottom