Maassoft / ColorControl

Easily change NVIDIA display settings and/or control LG TV's
GNU General Public License v3.0
918 stars 42 forks source link

Anyway to have CC disabled when remotely controlling PC? #340

Open SD777x opened 6 months ago

SD777x commented 6 months ago

I have CC enabled to turn on my monitors when my PC resumes from sleep, it works ok although sometimes it doesn't turn them on, but that's another matter. My question is if it's possible to enable the monitor to turn on EXCEPT if I'm remotely connected to the PC. What's happening is that CC is turning the monitor on when I remote into that PC, but I want it to stay off, conversely when I'm home and in front of that PC I want CC to turn the monitor on.

Maassoft commented 6 months ago

CC should detect if you 'disconnect' from the console (i.e. you login remotely), but it's pretty finicky so it could be broken at the moment. I'll have to test if connecting through RDP is properly detected and if powering on the TV is skipped then. Do you see the following line in the log when you connect remotely?

Detected a disconnect from the console

SD777x commented 6 months ago

I’m not sure where to access the logs.


From: Maassoft @.> Sent: Monday, March 25, 2024 5:09:45 PM To: Maassoft/ColorControl @.> Cc: SD777x @.>; Author @.> Subject: Re: [Maassoft/ColorControl] Anyway to have CC disabled when remotely controlling PC? (Issue #340)

CC should detect if you 'disconnect' from the console (i.e. you login remotely), but it's pretty finicky so it could be broken at the moment. I'll have to test if connecting through RDP is properly detected and if powering on the TV is skipped then. Do you see the following line in the log when you connect remotely?

Detected a disconnect from the console

— Reply to this email directly, view it on GitHubhttps://github.com/Maassoft/ColorControl/issues/340#issuecomment-2018921094, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIUQ7LUI2K4NAL3XY4F4JQDY2CHBTAVCNFSM6AAAAABFB6K2GGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJYHEZDCMBZGQ. You are receiving this because you authored the thread.Message ID: @.***>

Maassoft commented 6 months ago

On the Options-tab there's a Logging button where you can view the Application and Service logs. In the Application log you should see something like this:

2024-03-29 17:26:35.0028|DEBUG|ColorControl.Shared.EventDispatcher.SessionSwitchDispatcher|Detected a disconnect from the console
2024-03-29 17:26:35.7860|DEBUG|ColorControl.Shared.Forms.FormUtils|Detected NotificationState change from QUNS_ACCEPTS_NOTIFICATIONS to QUNS_NOT_PRESENT
2024-03-29 17:26:38.0551|DEBUG|ColorControl.Shared.Forms.FormUtils|Detected NotificationState change from QUNS_NOT_PRESENT to QUNS_ACCEPTS_NOTIFICATIONS
2024-03-29 17:27:29.0284|DEBUG|ColorControl.Shared.Forms.FormUtils|Detected NotificationState change from QUNS_ACCEPTS_NOTIFICATIONS to QUNS_NOT_PRESENT
2024-03-29 17:27:30.2560|DEBUG|ColorControl.Shared.EventDispatcher.SessionSwitchDispatcher|Detected a connect to the console
2024-03-29 17:27:30.2560|DEBUG|ColorControl.Shared.EventDispatcher.SessionSwitchDispatcher|Session state switched to local

This was when using RDP connection from my phone.

SD777x commented 6 months ago

That’s odd, my options tab is completely blank!


From: Maassoft @.> Sent: Friday, March 29, 2024 12:32:43 PM To: Maassoft/ColorControl @.> Cc: SD777x @.>; Author @.> Subject: Re: [Maassoft/ColorControl] Anyway to have CC disabled when remotely controlling PC? (Issue #340)

On the Options-tab there's a Logging button where you can view the Application and Service logs. In the Application log you should see something like this:

2024-03-29 17:26:35.0028|DEBUG|ColorControl.Shared.EventDispatcher.SessionSwitchDispatcher|Detected a disconnect from the console 2024-03-29 17:26:35.7860|DEBUG|ColorControl.Shared.Forms.FormUtils|Detected NotificationState change from QUNS_ACCEPTS_NOTIFICATIONS to QUNS_NOT_PRESENT 2024-03-29 17:26:38.0551|DEBUG|ColorControl.Shared.Forms.FormUtils|Detected NotificationState change from QUNS_NOT_PRESENT to QUNS_ACCEPTS_NOTIFICATIONS 2024-03-29 17:27:29.0284|DEBUG|ColorControl.Shared.Forms.FormUtils|Detected NotificationState change from QUNS_ACCEPTS_NOTIFICATIONS to QUNS_NOT_PRESENT 2024-03-29 17:27:30.2560|DEBUG|ColorControl.Shared.EventDispatcher.SessionSwitchDispatcher|Detected a connect to the console 2024-03-29 17:27:30.2560|DEBUG|ColorControl.Shared.EventDispatcher.SessionSwitchDispatcher|Session state switched to local

This was when using RDP connection from my phone.

— Reply to this email directly, view it on GitHubhttps://github.com/Maassoft/ColorControl/issues/340#issuecomment-2027459273, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIUQ7LQKSO4U7CWH76WF7ITY2WCRXAVCNFSM6AAAAABFB6K2GGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGQ2TSMRXGM. You are receiving this because you authored the thread.Message ID: @.***>

SD777x commented 5 months ago

On the Options-tab there's a Logging button where you can view the Application and Service logs. In the Application log you should see something like this:

2024-03-29 17:26:35.0028|DEBUG|ColorControl.Shared.EventDispatcher.SessionSwitchDispatcher|Detected a disconnect from the console
2024-03-29 17:26:35.7860|DEBUG|ColorControl.Shared.Forms.FormUtils|Detected NotificationState change from QUNS_ACCEPTS_NOTIFICATIONS to QUNS_NOT_PRESENT
2024-03-29 17:26:38.0551|DEBUG|ColorControl.Shared.Forms.FormUtils|Detected NotificationState change from QUNS_NOT_PRESENT to QUNS_ACCEPTS_NOTIFICATIONS
2024-03-29 17:27:29.0284|DEBUG|ColorControl.Shared.Forms.FormUtils|Detected NotificationState change from QUNS_ACCEPTS_NOTIFICATIONS to QUNS_NOT_PRESENT
2024-03-29 17:27:30.2560|DEBUG|ColorControl.Shared.EventDispatcher.SessionSwitchDispatcher|Detected a connect to the console
2024-03-29 17:27:30.2560|DEBUG|ColorControl.Shared.EventDispatcher.SessionSwitchDispatcher|Session state switched to local

This was when using RDP connection from my phone.

No I'm not seeing that disconnect detection in the options, I had to test at home on the same network because the options are blank on my remote device for some reason. I'm using Splashtop if that makes a difference. The host screens still turn on when resuming remotely, which I'm hoping to somehow avoid. FYI I have to wake up the host PC with another PC on the same local network because I've never been able to get wake on WAN to work, I use the "wakeMeOnLan" program from Nirsoft.

Another issue I've found is how long it takes to turn on a LG screen. I have 2 screens, a Samsung UN43AU8000BXZA and a LG OLED55C3PUA. When resuming from sleep (locally) the Samsung turns on almost instantly, but the LG takes maybe 1-2 minutes to turn on.