rocksdanister / lively

Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3.
https://rocksdanister.com/lively
GNU General Public License v3.0
14.49k stars 1.03k forks source link

Desktop/Wallpaper frozen after sleep until I power cycle my monitor. #2178

Open Calab opened 4 months ago

Calab commented 4 months ago

I see some issues related to sleep, but they all appear to be closed.

When my computer has been asleep for a while (20 minutes?) and I wake it up, the desktop appears, but the wallpaper is either not there or not moving. The desktop appears to be frozen but the mouse pointer moves around. Double clicking an icon doesn't appear to do anything. It's like the desktop is frozen. Sleeping for a short period doesn't seem to cause the issue.

If I power cycle my monitor, the desktop and wallpaper operate normally. Any icons that I clicked earlier will have their windows open as they should have been before the power cycle.

When the issue is happening, it's seems like I'm looking at a copy of my desktop, not the actual desktop.

I've tried a few different videos, so I don't think it's related to the wallpaper I choose.

I would expect the desktop and wallpaper to work as normal after sleeping.

This is Windows 11, version 23H2 build 22631.3374. I'm using a nVidia RTX 3060 video card with 12GB of memory. Resolution is 512x1440 on my 48" wide monitor. My power settings are to turn off the monitor after 10 minute and sleep after 15. Hibernation is disabled.

Lively version is v2.0.7.4.

Log file is attached. lively_log_20240331_163623.zip

rocksdanister commented 4 months ago

Can you try turning off GPU Decode under Wallpaper -> Video Player settings.

Calab commented 4 months ago

Setting turned off. I will let you know if that makes a difference.

Calab commented 3 months ago

Still doing the same thing with GPU Decode turned off.

Not sure if it makes a difference, but I had mpv as the video player. I just changed it to wmf and I'll let you know if that changes anything.

Calab commented 3 months ago

When using wmf to play the wallpaper, the computer never goes to sleep.

I manually put the computer to sleep for about 20 minutes and still the same issue when it woke up.

rocksdanister commented 2 months ago

There is already code to restart wallpaper during lockscreen unlock if crashed: https://github.com/rocksdanister/lively/blob/5edc19c47a0999354b95c44f14ccdf5efe07dfa3/src/Lively/Lively/Core/WinDesktopCore.cs#L91-L95

But I am not sure when it is crashing exactly, I can't find this message in the logfile: https://github.com/rocksdanister/lively/blob/5edc19c47a0999354b95c44f14ccdf5efe07dfa3/src/Lively/Lively/Core/Suspend/Playback.cs#L154

Try to recreate the issue and share the logfile with this message.. if its happening few seconds after unlock I may have to take that into account.