Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Stops After Half Second In Lockscreen #20

Closed
leuchtrakete666 opened this issue Jun 13, 2024 · 12 comments
Closed

Video Stops After Half Second In Lockscreen #20

leuchtrakete666 opened this issue Jun 13, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@leuchtrakete666
Copy link

leuchtrakete666 commented Jun 13, 2024

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
Copy link
Owner

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

@leuchtrakete666
Copy link
Author

It's enabled. My configuration looks like this:

grafik

@leuchtrakete666
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

leuchtrakete666 commented Jun 14, 2024

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
Copy link
Owner

luisbocanegra commented Jun 14, 2024

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

  • Try another distribution (maybe a live USB with one that ships KDE, nvidia proprietary driver and codecs out of the box will be enough to test)
  • Disable either of the GPUs in some way (bios, blacklisting from boot loader, or simply setting the KWin DRM environment variable)

@leuchtrakete666
Copy link
Author

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
Copy link

NietVic commented Jun 18, 2024

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
Copy link
Author

@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 luisbocanegra added the bug Something isn't working label Jun 18, 2024
luisbocanegra added a commit that referenced this issue Jun 18, 2024
- Fix undefined wallpaper property errors
- Fix video stopping in lock screen mode #20
@luisbocanegra
Copy link
Owner

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

Done in commit c488173

@NietVic thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants