lively icon indicating copy to clipboard operation
lively copied to clipboard

Sleep not working when video wallpaper with audio is playing (mpv player)

Open rocksdanister opened this issue 2 years ago • 16 comments

Discussed in https://github.com/rocksdanister/lively/discussions/1107

Originally posted by Kuimera March 8, 2022 Hi,

I'm having issues with sleep/standby, with Lively on my pc wont go to sleep.. I check your solution, and the video is set to mpv as instructed, still, it won't go to sleep.

Any ideas?

Thank you.

rocksdanister avatar Mar 08 '22 17:03 rocksdanister

This still happening, what I thought it was a fix, it was not, seems it was not using the audio drivers cause the desktop was out of focus, I did test the default wallpapers that comes with Lively, and this issue does not happen, only when I add custom video wallpapers.. The option to mute the wallpaper mutes the sound but it seems the software still using the sound drivers somehow..

Has a possible solution I checked Wallpaper Engine, and they have this in their options that fixes the issue:

Screenshot 2022-03-13 105348

Maybe when you got the time, you can do something for Lively? Option to disable the sound altogether would fix this.

Sorry to bother ya with this, really like Lively, just my computer not going to sleep is a problem for me..

Kuimera avatar Mar 13 '22 11:03 Kuimera

Try this and see if sleep is working: Create the file mpv.conf as follows: <Lively install location>\plugins\mpv\portable_config\mpv.conf

mpv.conf:

--aid=no

For more information: https://github.com/rocksdanister/lively/wiki/Video-Guide#mpv https://mpv.io/manual/master/#options-aid

rocksdanister avatar Mar 13 '22 12:03 rocksdanister

Mr. Danister, you are awesome! Works like a charm!

Screenshot 2022-03-13 133006

And I just test ti, it went to sleep.

Kuimera avatar Mar 13 '22 13:03 Kuimera

Great, I'll add a settings option later.

rocksdanister avatar Mar 13 '22 14:03 rocksdanister

This is still an issue a year later. Was this resolved or not? @rocksdanister

I have the Windows Store version, and do not see the directory mentioned to configure the mpv:

image

Should I install the version from this repo?

megaroeny avatar May 29 '23 03:05 megaroeny

For Microsoft Store version of Lively, create the mpv.conf here by creating portable_config folder: %LocalAppData%\Packages\12030rocksdanister.LivelyWallpaper_97hta09mmv6hy\LocalCache\Local\Lively Wallpaper\Mpv\portable_config\

https://github.com/rocksdanister/lively/wiki/Video-Guide#mpv

rocksdanister avatar May 29 '23 04:05 rocksdanister

This is still an issue a year later. Was this resolved or not? @rocksdanister

This is marked for v2.1 release milestone, so no. I am going to do disable audio similar to the solution listed here (this only affects some system soundcards.) so you can follow the workaround listed and don't have to wait for fix from my side.

ps. You don't have to ping me, I am subbed to all issues here.

rocksdanister avatar May 29 '23 04:05 rocksdanister

mpv.conf:

--aid=no

For more information: https://github.com/rocksdanister/lively/wiki/Video-Guide#mpv https://mpv.io/manual/master/#options-aid

Do I add this line to a new blank file for mpv.conf? Sorry, new to this. Otherwise, I'll just wait for the next release. Thanks!

megaroeny avatar May 29 '23 04:05 megaroeny

Yes, its mpv player configuration file: https://github.com/mpv-player/mpv/blob/master/etc/mpv.conf

rocksdanister avatar May 29 '23 05:05 rocksdanister

Yes, its mpv player configuration file: https://github.com/mpv-player/mpv/blob/master/etc/mpv.conf

I added this line in the new file, but it won't go to sleep and also won't present the "Lock" screen when stopping the screensaver. Guessing I did something wrong?

image

megaroeny avatar May 30 '23 01:05 megaroeny

Did you verify with powercfg whats causing the problem in the first place?

rocksdanister avatar May 30 '23 01:05 rocksdanister

Did you verify with powercfg whats causing the problem in the first place?

I see this, but the only thing coming up is my backup service. This never effected my screensaver/lock screen from appearing until I used Lively.

image

megaroeny avatar May 30 '23 01:05 megaroeny

This is getting way off topic, what wallpaper are you running when sleep not working?

rocksdanister avatar May 30 '23 01:05 rocksdanister

This is getting way off topic, what wallpaper are you running when sleep not working?

How is this off topic? The screen saver is causing my PC to not go to sleep. Isn't that what this issue is about?

I'm using the Rain wallpaper, but I don't even hear any sound. So what else would it be? I don't want to bother you if that's what I'm doing, but I wanted to find a post that met my issue, instead of opening a new one. Let me know how I can help otherwise. Thanks for your time.

megaroeny avatar May 30 '23 01:05 megaroeny

This issue is about video wallpaper using player mpv player.. Rain is web wallpaper.

In your current Windows powerplan change Multimedia Settings > When Sharing Media to Allow the computer to enter away mode or Allow the computer to sleep.

rocksdanister avatar May 30 '23 01:05 rocksdanister

This issue is about video wallpaper using player mpv player.. Rain is web wallpaper.

In your current Windows powerplan change Multimedia Settings > When Sharing Media to Allow the computer to enter away mode or Allow the computer to sleep.

Ohhhhh! I never noticed that. It wouldn't surprise me if someone else misses that too. Especially non-technical users. I just changed my power plan settings, that should do it. Thanks! Hopefully this helps someone else too!

megaroeny avatar May 30 '23 01:05 megaroeny