kangyu-california / PersistentWindows

fork of http://www.ninjacrab.com/persistent-windows/ with windows 10 update

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screens go out and on multiple times per day.

evilmaran opened this issue · comments

Hi,

Multiple times per day my screens go off and on immediately after, and then within 10 seconds this happens again.
The only things i can find in event viewer are: https://pastebin.com/u6nTQMZv

At first i thought this was related to AMD's Adrenalin software, but fidgetting with the settings there didnt stop this issue from happening.

Most of the event id's im getting when this happens is either 9990 or 9999, and the event viewer mentions:
The description for Event ID 9999 from source Application cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

PersistentWindows is fully up to date and freshly reinstalled, version 5.52.8817.8843.

I'm looking for any insight to try and fix this issue, if you need any other info please let me know.

try command line option -delay_auto_restore 2.5
for more details, please refer to online help

try command line option -delay_auto_restore 2.5 for more details, please refer to online help

sorry, by command line option you mean starting the program in CMD with " -delay_auto_restore 2.5" behind it right?

yes, you may use delay value (in seconds) other than 2.5

Happened again today, from 17:57 to 17:58, 5x 9990 1x 9999
9990's:
PersistentWindows: Display settings changed Display_LocM1920x0_Res1920x1080__Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

PersistentWindows: no need to restore fresh session Display_LocM1920x0_Res1920x1080__Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

PersistentWindows: Display settings changed Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

PersistentWindows: Start restoring window layout back to 21/03/2024 17:51:45 for display setting Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

PersistentWindows: Restore finished in pass 3 with 0 windows recovered for display setting Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

9999:
PersistentWindows: Restore aborted for Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

is there anything else i can try to fix this issue?

Assuming this is not caused by faulty gpu or loose hdmi connection, this problem is typically caused by lack of coordination between PW and Windows OS, when they are competing with each other to restore window position, putting monitor in frequent off-on switching status.

To fix this, the general idea is to let PW yield to Windows OS, which can be done in two flavors,

  1. finetune the -delay_auto_restore command argument
  2. pause auto restore (from PW menu), i.e. manually waiting for Windows OS to finish its job first, then resume PW auto restore.

alright, ill test the pause auto-restore, thanks.

Seems this is a very persistent problem, that just doesnt want to go away.

The monitor switching off and on happens at almost exactly the same time everyday, i cant find anything else in event viewer that seems to interact with this.

today again 4x 9990, no 9999 today.

PersistentWindows: Display settings changed Display_LocM1920x0_Res1920x1080__Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

PersistentWindows: Restore halted due to new display setting change Display_LocM1920x0_Res1920x1080__Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

PersistentWindows: Display settings changed Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

PersistentWindows: Restore halted due to new display setting change Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

1080p is the native resolution of my monitors, it shouldnt change, everything i run runs at 1080p.
tested with different hdmi cables, also doesnt seem to help.
Further more there is no indication the GPU is faulty, besides this issue.

https://prnt.sc/pHqiV2wACrtI

alright, new version installed, ill try this first with the default settings, then try all the things 1 by one again discussed here. and ill keep you updated.

Thanks for your time so far!

I've been having a problem that is similar to issue #276. It started quite recently (probably with the update to v5.52). After browsing this issue, I've just applied PersistentWindows5.52_patch303.zip and this seems to have fixed my problem. Sorry if this is the wrong place to report this.

Ok problem persists with new patch.

9990 events keep happening.

New 9990 event from today:

The following information was included with the event:

PersistentWindows: 5.52.8852.19370; OS version: Microsoft Windows NT 10.0.22631.0; .NET version: 4.0.30319.42000

followed by the usual:
The following information was included with the event:

PersistentWindows: Display config is Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

Then a repeat of these 2 some 20 seconds later, i assume because i have 2 monitors.

Yesterday i had 3 9990 and 1 9999 event:
The following information was included with the event:

PersistentWindows: Display settings changed Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

The following information was included with the event:

PersistentWindows: Start restoring window layout back to 28/03/2024 03:30:04 for display setting Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

The following information was included with the event:

PersistentWindows: Restore finished in pass 3 with 2 windows recovered for display setting Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

The following information was included with the event:

PersistentWindows: no qualified position data to restore minimized window "CurseForge"

Curseforge.exe was minimized to taskbar.
Usually when these events happen if i am playing games, the game freezes and i have to either wait for the windows pop up "this program has stopped working, do you want to wait or exit"
It seems most other programs that are runnign at the time of these events just keep going, multiple browser windows with multiple tabs are not affected, even if playing video in fullscreen, neither are programs like steam or epic games affected. discord, spotify, torrent client etc also just keep on doing their thing.

Yesterday i also noticed that there were no events in event viewer from the second time this "screen off on" happned but the error resulting in a crash for World of warcraft does show in event viewer:
Event ids 1001 and 1002
https://pastebin.com/pa5Pnt3M
https://pastebin.com/TdawABn2

No 9990 or 9999 before these, when usually there are.

Just now i restarted persistentwindows from command line with -delay_auto_restore 2.5, ill check back tomorrow or the day after if it happens again.

so the "-delay_auto_restore 2.5" didnt help again.

5x 9990 and 1x 9999 today.

The following information was included with the event:

PersistentWindows: Display settings changed Display_LocM1920x0_Res1920x1080__Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

The following information was included with the event:

PersistentWindows: Restore aborted for Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

The following information was included with the event:

PersistentWindows: no need to restore fresh session Display_LocM1920x0_Res1920x1080__Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

The following information was included with the event:

PersistentWindows: Display settings changed Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

The following information was included with the event:

PersistentWindows: Start restoring window layout back to 30/03/2024 17:59:00 for display setting Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

The following information was included with the event:

PersistentWindows: Restore finished in pass 2 with 0 windows recovered for display setting Display_Loc0x0_Res1920x1080__Display_Loc1920x0_Res1920x1080

So now i paused auto restore, hoping tmr something different happens.

Progress update:
Screen still go off and on, but no freeze today. Seems the -delay and paused auto restore are doing something.

3x 9990

Still haven't figured out why the screen goes off and on again 2 times in a row.

FYI I upgraded my desktop CPU from I3-6100 to I5-6500T two weeks ago, and the random screen off-on issue is totally gone. Also noticed that auto restore is much faster now. So my theory is that low CPU cores/frequency might be the culprit.

Interesting, I am running an AMD rig.
Ryzen 5 5600X 3700 Mhz with a Radeon RX 6800 XT. Screens are AOC 27G2SAE/BK 165Hz.

Screens still go off and on 2 times in a row, even with everything discussed here.
9990 events at least 4 times a day, 983 total events in my event log going back to 21-01-2024.
9999 events show up less often, but still 714 since 20-1-2024.

When screen on/off event happens, PW is merely reporting these display changed events (9990).
Those 9990/9999 events do not mean the screen on/off is caused by PW.
In case the event logging is indeed the cause of screen off/on, you may disable event logging by running PW in silent mode
the command option is
-silent

I cant figure it out, the only clue i had was PW reporting the events. I've been running for about a week now without PW and still happens. Ive gone through all cables double checking if something is loose. reinstalled graphics drivers and more, it still happens, so if it is a bug i cant find the source. So im choosing to believe it is a built in feature, just a very annoying one.

Thanks for your help and patience with my issue!