luisbocanegra / plasma-smart-video-wallpaper-reborn

Smart Video Wallpaper for KDE Plasma 6
https://store.kde.org/p/2139746
GNU General Public License v2.0
45 stars 1 forks source link

Video Stops After Half Second In Lockscreen #20

Closed leuchtrakete666 closed 3 weeks ago

leuchtrakete666 commented 3 weeks ago

I have installed the plugin with AUR. The desktop wallpaper works. But I don't need this. I want to have the lockscreen video.

But this stops after half second. Nothing crashes, no freeze, just the video stops.

The test.qml runs fine.

dmesg.txt journal.txt lspci.txt qml_video_test_log.txt sysinfo.txt

luisbocanegra commented 3 weeks ago

Hi, please check that Lock screen mode is enabled the wallpaper settings. I can reproduce the exact behavior after disabling it

leuchtrakete666 commented 3 weeks ago

It's enabled. My configuration looks like this:

grafik

leuchtrakete666 commented 3 weeks ago

Only yesterday, I set up the system fresh, after the Plasma 6 upgrade made some problems. One of the problems was your plugin. But unfortunetly, all the effort was invane. The plugin still don't work and all the other small issues, that f*** my workflow are still present. A really bugy release. I really like Arch and Manjaro, but in this case, they should have waited at least 3-4 month longer until they let the upgrade out in the wild.

luisbocanegra commented 3 weeks ago

Sorry I overlooked something in your log (translated) it seems to be something wrong in your system:

Jun 13 17:21:54 ZEUS ksmserver[4576]: Failed to open VDPAU backend libvdpau_va_gl.so: Cannot open the shared object file: File or directory not found
Jun 13 17:21:54 ZEUS ksmserver[4576]: [h264_cuvid @ 0x59075b7c0900] Invalid pkt_timebase, passing timestamps as-is.
leuchtrakete666 commented 3 weeks ago

I resolved the VDPAU error by installing libvdpau_va_gl driver package and setting env VDPAU_DRIVER=va_gl. Unfortunetly this did not resolve the problem.

I have a hybrid intel/nvidia laptop. maybe this is the problem.

I just looked in the journal when using a video background for the desktop. The same h264_cuvid error show there also. But on the desktop the video is working.

With the Plasma5 version of the plugin, everything worked.

I have no idea.

luisbocanegra commented 3 weeks ago

I have a hybrid intel/nvidia laptop. maybe this is the problem.

It could be, forcing the intel to do the decoding https://wiki.archlinux.org/title/Hardware_video_acceleration#Configuring_VA-API may work, you could also try switching to gstreamer backend as per the readme

leuchtrakete666 commented 3 weeks ago

Nope, also don't work. As it worked in Plasma 5, i think KDE changed something in the way the screenlock is handled.

I changed to gstreamer, the video don't start at all in the lockscreen. I aditionally installed the gst-plugin-va. I veryfied that everything is detected with vainfo and gst-inspect-1.0 va. rm ~/.cache/gstreamer-1.0/registry.*.bin was also issued. So from the driver side of things everything is good. And also in "Desktop Mode" the video works with gstreamer. So i guess it's the way the screenlocker is handeling this.

luisbocanegra commented 3 weeks ago

Okay here are some things you can try to verify if this is a problem with your install or naybe nvidia/hybrid graphics related:

leuchtrakete666 commented 3 weeks ago

Thanks for the tips, this would have been also my next steps. This Reddit post I also found whilst my research and found it very interesting. The X-Server is running on my Nvidia and all the rest is on Intel.

I will do some testing over the weekend.

NietVic commented 3 weeks ago

Hi I had the same issue you should make sure that the setting screen lock pauses video is disabled before entering lock screen mode. Screenshot_20240618_141248

leuchtrakete666 commented 3 weeks ago

@NietVic Hey, thats cool! Great it works now. Thanks for this easy solution.

@luisbocanegra Would be good if Lock screen mode is selected, Screen lock pauses video will be automatically deactivated.

luisbocanegra commented 2 weeks ago

Would be good if Lock screen mode is selected, Screen lock pauses video will be automatically deactivated.

Done in commit https://github.com/luisbocanegra/plasma-smart-video-wallpaper-reborn/commit/c488173035e138f87fec60a354e2e4a171bb6449

@NietVic thank you.